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

https://github.com/plataformatec/simple_form

===================
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]
http://about.me/hassanschroeder
twitter: @hassan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs