Rails L. wrote:
In my application I need to track user’s application state such as in
which city or category he/she is in and based on that i need to perform
Think of hidden fields as a shortcut to populate a
the params[:model] is convenient to use.
Which one is the best choice in terms of performance and security. The
data being passed is not sensitive, they just query parameters.
Use a session, because a session is a cookie, and abusing the cookie
with extra data is tacky - unless the cookie should last a while.
Also consider using the database - this user’s favorite city. The
there to write stuff in, sometimes even if you might consider that stuff