Adding different title for a single form in rails

I have a Task management applciation where users can add task and edit
it. I am using single form for it. When I render this form for edit and
new, I need to assign the different form title for each. Say “Edit task”
and “Assign new task”. How do I implement it. I am new to rails. Please
help.

simple_form does that

===================
Alexandre Mondaini Calvo

Nossa recompensa se encontra no esforo e no no resultado. Um esforo
total uma vitria completa
.” [Ghandi]

2012/9/29 ruby rails [email protected]

On Fri, Sep 28, 2012 at 11:36 PM, ruby rails [email protected]
wrote:

I have a Task management applciation where users can add task and edit
it. I am using single form for it. When I render this form for edit and
new, I need to assign the different form title for each. Say “Edit task”
and “Assign new task”.

You can set the title in the controller methods, or you can set it in a
view helper based on the request path.


Hassan S. ------------------------ [email protected]

twitter: @hassan