The If Works / This dirt was a building before The If Works Feed
  • ARCHIVE / LabelHelper
  • LabelHelper is now part of Rails core

    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 [...]

    Posted on Sep 24.07 to LabelHelper, Rails, Ruby   Add a Comment   

  • Stop repeating your labels

    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) %>
    [...]

    Posted on Jun 14.07 to LabelHelper, Rails, Ruby   Add a Comment   

INSIDE    ←


The If Works


FUN / PAGES

  • Flagger
  • Grape
  • Reiterate

    FIND / SEARCH


FEEDS / RSS

  • Entries
  • Comments

FOOTER / LEST WE FORGET
Copyright © 2007–2008 by The If Works, unless otherwise noted. All rights reserved. Powered by WordPress. Modio theme by Upstart Blogger.