Ricardo Franco wrote in post #1105627:
> Maybe hardcoding them in a before_filter on ApplicationController...
>
> Which kind of variables are you talking about? Where do you plan to use
> them?
Yes, "before_filter" works just fine. Yet do not understand the details
how it works but it works :)
I want to have a predefined variable in every method of my controllers.
It is @isAuth = false. I did like this in "application_controller.rb":
before_filter :setAuth
def setAuth
@isAuth = false
end
Thanks.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.