M
M
mrruslan2014-08-02 17:29:02
Sessions
mrruslan, 2014-08-02 17:29:02

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

1 answer(s)
I
Ilya Kaznacheev, 2014-08-02
@mrruslan

cookies

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question