On Sep 6, 8:11 am, Tjad Clark
<tja...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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.
Why set them at all? you could define methods such as
def session_feature_x
session[:x] || ''default''
end
Fred
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.