On Thu, Apr 06, 2006 at 09:10:29PM -0400, Hampton wrote:
[...]
> #Now, to show how this could really increase code readability... here is a
> re-write of the code earliest in this post.
> 
> <% for @row in @rows
>    o start_form_tag
>    o text_field(:row, :name)
>    o hidden_field(:row, :id)
>    o end_form_tag
> end %>

No comment on whether this is a good idea in general.

However, it would seem to me to make more sense to maintain the
syntactic indicator that you're inside a tag, and have it be this
instead:

<% for @row in @rows
   % start_form_tag
   % text_field(:row, :name)
   % hidden_field(:row, :id)
   % end_form_tag
end %>


--
                                - Adam

** Expert Technical Project and Business Management
**** System Performance Analysis and Architecture
****** [ http://www.adamfields.com ]

[ http://www.aquick.org/blog ] ............ Blog
[ http://www.adamfields.com/resume.html ].. Experience
[ http://www.flickr.com/photos/fields ] ... Photos
[ http://www.aquicki.com/wiki ].............Wiki
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to