Answer the question
In order to leave comments, you need to log in
What is the correct way to implement city change functionality in Ruby on Rails?
Hello. I'm going to create a new thread for this question because I can't figure it out.
There is a "sypexgeo_method_city" method in the controller that returns the city by IP. Then I use this method like this
@data = Model....where( city: sypexgeo_method_city )
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question