search for: befor_filter

Displaying 2 results from an estimated 2 matches for "befor_filter".

Did you mean: before_filter
2006 Mar 23
1
can befor_filter expect other controller''s action?
i put befor_filter :setup_user,:except=>:login in ApplicationController.rb but i want to put action login to other controller how can i do it? does rails has this support? befor_filter :setup_user,:except=>{{controller=>''user'',action=>''login''},...} -- Posted via h...
2007 Feb 18
1
partials with action methods?
...alling render :partial does not trigger methods in the controller class. So how do I get application data into the partial. The partial is invoked by the layout, which doesn''t have access to controller functions so they only way I can see around this is to create the required objects in a befor_filter. Is there a more elegant way to do this? without render_component? --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39...