Displaying 2 results from an estimated 2 matches for "main_helper".
2006 Jul 16
1
Helpers for partials too ?
MainController implies main.rhtml, which will automatically have access
to the methods inside MainHelper (in \app\helpers\main_helper.rb).
Should not the partial templates called from main.rhtml via <%= render
:partial => ''partial'' %> also have access to the methods in main_helper
?
I have tried
<% display_dates = create_display_dates(@events) %>
and
<% display_dates = MainHelper::creat...
2006 Aug 04
1
Need a better undersanding of form helpers
...as this one method:
def register
c = User.new(params[:user])
c.save
redirect_to :controller => "main"
end
I think this is correct and the right controller for it to be in since
it relates to the user model / object.
Secondly do I use the form helpers in user_helper or main_helper. I
have some attempt at a form helper in main_helper currently. In the
user controller I have helper :main, but maybe I should just keep the
form helpers in user_helper ?
Lastly after I get whatever it is I need in the helper file, what is
it that I put in the view to call it ?
Sorry, I'...