Answer the question
In order to leave comments, you need to log in
Where is the best place to store a variable that is needed throughout the site?
For example, there is a news site, a poster, and so on refers to a specific city, in the site header there is a select box where you can select a city. Where is it better to store the city variable so that when the next page updates, news and articles are displayed only for the selected city? the user does not need to register. using rails 4
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