Michal Gabrukiewicz
2007-Dec-16 14:40 UTC
locals dont workd in ApplicationHelper render partial
i have the following method in my application_helper.rb def test render(:partial => ''/application/errors'', :locals => { :detail_msgs => ''testing...'', :headline => [''asd'', ''wwww''], :msgs => [''adssaad'']}) end when I use this within one of my views it does not recognize the locals ... the partials content is taken but whenever i try to access a local var it says that its not defined .. i am using rails 2.0.1 thx for any help! -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---