search for: control_for

Displaying 3 results from an estimated 3 matches for "control_for".

Did you mean: control_dir
2008 Feb 05
1
Unknown method error with control_for
Is there a trick to using control_for in forms? I''ve been trying to make a simple form with a couple of text fields and I keep getting a unknown method error. Thanks!
2007 Aug 06
0
new patch adding control_for :boolean to create a checkbox
I''m sorry I didn''t have time working on the tests/models generator but here is a tiny patch I wrote to help you creating form check boxes. http://merb.devjavu.com/projects/merb/ticket/114 -Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/merb-devel/attachments/20070805/e42cd930/attachment.html
2007 Jul 15
0
errors_for
...<ul> #{error_messages} </div>" else '''' end end in your _form.herb, you simply call error_messages_for <%= error_messages_for ''article'' %> <dl> <dt>Title</dt> <dd><%= control_for @article, :title, :text %></dd> <dt>Intro</dt> <dd><%= control_for @article, :intro, :textarea, :rows => 10, :cols => 50 %></dd> <dt>Body</dt> <dd><%= control_for @article, :body, :textarea, :rows => 20, :cols => 50 %>&l...