Use a form builder. See the api doc.


On May 19, 3:04 am, poseid <mulder.patr...@gmail.com> wrote:
> hello,
>
> I want to make a table within a form by making a new form_tag. The
> following code in ApplicationHelper fails:
>
> def tabular_form_for(name, object = nil, options = nil, &proc)
>   concat("<table>", proc.binding)
>   form_for(name,
>            object,
>            (options||{}).merge(:builder => TabularFormBuilder),
>            &proc)
>   concat("</table>", proc.binding)
> end
>
> But using this tag in my view, I get errors with my :errors, :name
> fields of the form.
> Any ideas how to make this custom tag work?
>
> --
> 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-t...@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to