search for: news_item_subject

Displaying 1 result from an estimated 1 matches for "news_item_subject".

2006 Aug 16
4
Overwrite form helper methods and call old ones in new ones?
Hi all All my forms should look the same, so I think always putting the right div etc. tags around them is a violation of the DRY principle. Until now my forms look like that: <div class="text_field"> <label for="news_item_subject">Subject:</label> <%= text_field "news_item", "subject" %> </div> Now I want the default form helper methods to do that all for me: <%= text_field "news_item", "subject", :label => "Subject" %> ...should produc...