Displaying 1 result from an estimated 1 matches for "hypertini".
Did you mean:
hypertiny
2010 Jul 19
1
instance_exec routes -> form helpers
The new router in Rails 3 is clean and concise and marks the
acceptance of instance_exec as a method for writing a gorgeous DSL.
I''m wondering should something similar be applied to the default form helpers?
Moving from this:
<%= form_for(@post) do |f| %>
<%= f.text_field :title %>
<% end %>
to this:
<%= form_for(@post) do %>
<%= text_field :title %>