Hi
I am using authlogic and having current_user as a private method in
application controller . Now I would like to know how I can access that
in my actionmailer view Or actionmailer class
Thanks in advance
Tom
Hi
I am using authlogic and having current_user as a private method in
application controller . Now I would like to know how I can access that
in my actionmailer view Or actionmailer class
Thanks in advance
Tom
Hi
Still I can’t solve it.Please help
Tom
Have you tried changing it to protected instead of private?
Hi
I have already tried that. Anyway I could solve it y passing
current_user from controller and called that mail sending in model from
controller
Thanks
Tom
I believe actionmailer view helpers don’t inherit from
actioncontrollers view helpers… therefore you need to pass it
through
OR
at the top of your actionmailer class, set an instance variable with
the information so you can use it in your views.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs