Without opening a debate on the issue. I find the whole bad form, conventions as interesting as it is frustrating. I need to re-use this button helper in many views several times over for several different buttons. Say...
<%= button_helper(:fruit) %> <%= button_helper(:fungi) %> <%= button_helper(:tree) %> which would require calling initialize on Fungi, Fruit, Tree objects within the helper. If you assigned an instance variable in each controller action for everytime you used the helper you'd actually make re-using the code in many different places more awkward. Not to mention if the number and type of buttons was also dynamic. Conventions are a good building block, but on occasion you may need to stray from them to make life easier. Do you know of any 'Bad Form vs Good Form' Rails articles, I'd be interested in ready some. RobL -- 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.