You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
Hi
I am wondering if it is possible to have default session values set please? I have come across a post stating to add a before filter to the ApplicationController, however this seems a bit inefficient to me. I am looking for a more specific place to load up session variables where they will only be loaded once.
Thanks
Frederick Cheung
unread,
Sep 6, 2011, 8:51:51 AM9/6/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
Why set them at all? you could define methods such as
def session_feature_x
session[:x] || 'default'
end