simple Rails preference storage
So you’ve got some Rails application and you need to store information from the users across their interactions with the app. Here’s a simple, straightforward way to do that. In your controller: if params[:option] @option = session[:option] = params[:option] elsif … Continue reading