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. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Alexandre Calvão
2012-Sep-29 13:11 UTC
Re: adding different title for a single form in rails
simple_form does that https://github.com/plataformatec/simple_form ==================*Alexandre Mondaini Calvão* "*Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*." [Ghandi] 2012/9/29 ruby rails <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>> 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. > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Hassan Schroeder
2012-Sep-29 14:01 UTC
Re: adding different title for a single form in rails
On Fri, Sep 28, 2012 at 11:36 PM, ruby rails <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://about.me/hassanschroeder twitter: @hassan -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.