Ruby on Rails Community Forum

Bonsai vs AWS Elasticsearch?

1
General
Any recommendation?
Chris Oliver replied

How do I implement a default_scope order when I'm using searchkick?

1
General
Before I implemented searchkick/elasticsearch on my rails app, the default_scope -> { order(created_at: :desc) } works. But after implementing searchkick/elasticsearch, it doesn't work anymore.
Chris Oliver replied

A series on Turbolinks 5

3
Site Feedback
Reading through the Turbolinks 5 documentation, there are mentions of several use cases, like eg. in the Making Transformations Idempotent sections (but there are more). It would be great if you co...
Adam D replied

Multi select form & DB search

1
General
Hi there, I want to allow a user to select multiple brands and teams in a select form field. I am using the user's input to create CSV through running a query. So far I only can query single tea...
Chris Oliver replied
Solved

How do I validates uniqueness of parent of parent?

0
General
Hi guys! I have 3 models: lectures > chapters > lessons With a has_many through relationship. The problem: each lecture should have a lesson with the same step for ordering. In lesson....
Adrien Nhem posted

Refile uploading via rails console

6
General
So I'm using Refile and I'm trying to migrate some existing data that I need when I seed the database (migrating to Refile from existing solution and need to keep existing data). When I try testi...
Chris Oliver replied

How do i create another table when a user signs up?

2
Rails
When a user signs up, i ask them for their company name so i can then associate that user with a company. How would i go about doing this? I am using devise, so somehow i will need to store the com...
Alan Reid replied
Solved

searchkick's autocomplete does not work on my iphone safari?

3
General
I've implemented elasticsearch/searchkick on my rails app and it works both in development and production on desktop browsers. But I noticed that the autocomplete does not work on safari on my phon...
Chris Oliver replied

Putting SignIn and SignUp in single page using devise rails

2
Rails
Is it possible to have sign in and sign up forms on the same page,and after sign in or sign up redirect to the index page?like twitter or facebook?
Alvi Mahadi replied
Solved

how to setup elasticsearch on Heroku?

3
Servers
I implemented the elasticsearch/searchkick on my app and it works on develoment. But it's not working on production. I did heroku logs and these are the errors: "Completed 500 Internal Server Erro...
Joe Guerra replied

Old Rails 2 Delayed_Job User_Mailer Question

1
General
So I'm having an interesting issue. I'm trying to get this gem delayed_job to send an invitation email to sign up to an email address. The process seems to be working, and it is telling me that the...
Chris Oliver replied

Verifying iOS in-app purchase receipts

1
General
Anyone have any experience with handling iOS in-app purchase receipts? I know there's a Gem called Venice, but couldn't find much documentation or tutorials online. Appreciate any advice!
Chris Oliver replied

Devise: Add a select to my signup form

14
Rails
Hi all, me again! haha So i have got my app working as i want so far. All is good and i am picking up Rails really quickly thanks to GoRails. I am however a little stuck, I can't seem to add in a ...
Jacob Montgomery replied

Is anyone using Rails 5 yet?

6
Rails
The setup guides on the site recommend using Rails 4.2.6. I'm curious to know if we should be using Rails 5 now as it's been out for almost a month? Cheers
Alan Reid replied
Solved

Hi Chris How do I add jquery and ajax to the comments form from your tutorial?

0
General
I wrote some jquery to accomplish this here is the code. $(window).load(function(e){ $("#comment_body").on('click',function(){ $(this).removeAttr('placeholder'); }); var comment =...
emmanuel alcime posted

How do I get devise to use my custom routes inside of the authenticate_user!

0
Rails
I've declared custom routes in my app for a few of the devise actions, they are as follows: ```` devise_scope :user do get 'signup', to: 'devise/registrations#new', as: :signup get 'login', ...
Alan Reid posted

How do i implement a trending function like twitter or facebook on my rails app?

1
General
I want to implement a trending function for last 24 hours hottest topic discuss or mentioned most in my website,i want to know is there anyway to implement this function in ruby on rails application?
Chris Oliver replied

Searchkick search_data not working

4
Gems / Libraries
I'm playing around with elasticsearch and searchkick, but I can't seem to get search_data working. Searchkick seems to ignore it all together. If I only put one attribute in, it still searches on ...
Chris Oliver replied

Devise redirects to /users when there is an error editing profile

6
Gems / Libraries
I would like to know how i can change the redirect path so that when my editing a user fails it redirects back to `users/edit` and not to `/users`. To replicate this i am entering a duplicate emai...
Alan Reid replied
Solved

Is there a good reason to not use keyword arguments always?

1
General
I have used keyword arguments for some of my methods before, but haven't really thought about why not use it for all methods with arguments? Seems like there is no good reason to have the caller ...
Chris Oliver replied
Solved

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.