From: Andrew Stewart Date: 2008-01-24T03:00:19+09:00 Subject: Re: Quick ruby-powered html-forms? On 23 Jan 2008, at 13:50, Casimir wrote: > How to take the pain away from form writing? How to bring back the > POWER? How to avoid dealing with minute form details while trying > to build proper apps/services? > Personally, I am just trying to find the simplest, most intuitive (- > > fastest) way to create html code for forms. Styling > (presentation) happens entirely in css so it has nothing to do with > form content. So I think you have a slight misinterpretation there. > More than words... is what I would like to see... URLs. If you're using Rails you should look into form builders. When you create a form like this: <% form_for @project do |f| %> <%= f.text_field :name %> ... <%= f.submit %> <% end %> ...you are using an instance of Rails' form builder (in the f variable): ActionView::Helpers::FormBuilder. I recommend writing your own form builder to generate exactly the HTML you want. Here are a couple of custom form builders packaged as plugins: http://svn.danwebb.net/external/rails/plugins/enhanced_form_builder/ http://opensource.airbladesoftware.com/trunk/plugins/ air_budd_form_builder/ Regards, Andy Stewart ------- http://airbladesoftware.com