It’s official — as of changeset 7541, I’m a Rails Contributor. Hurrah! and so forth. LabelHelper, my plugin for DRY-ing up label tags in forms, is now in Rails core and will presumably be part of Rails 2.0 when it comes out. Now how’s about we get some of these committed as well? Oh, and [...]
I don’t know about you, but I do like a bit of form_for. I’m not so fond of having to repeat myself when writing labels though: <% form_for(:post, …) do |f| %> <label for="post_title">Title</label> <%= f.text_field(:title) %> <label for="post_body">Body</label> <%= f.text_area(:body) %> <% end %> You have to write the object name out every time, [...]
© The If Works. Powered by WordPress using the DePo Skinny Theme.