Forum: Rails I18n problem in before_filter

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Preethi S. (Guest)
on 2009-02-09 13:34

I've a session data that is generated when a user logs in.
I'm trying to access that session data, in before_filter, in a different
controller for passing parameter to the before_filter function.

before_filter :only => [:index] do |obj|
    user = session[:user]

But i'm not able to do that. What might be the reason?

One more thing,
I'm not able to call params[],redirect,or anything inside before_filter.
Could anyone help? Thanks
This topic is locked and can not be replied to.