Skip to content

Instantly share code, notes, and snippets.

@bob
bob / gist:3483115
Created August 26, 2012 19:54
bundle install debug
DEBUG_RESOLVER=true bundle install --verbose --local
@bob
bob / label with custom id
Created January 10, 2011 10:11
internationalized form control label with custom id (in case when you can't change id of control)
<%= f.label :link, nil, {:for => "link"} %>
<%= f.text_field :link, {:id => "link"} %>
gives
<label for="link">Link to this product in your e-shop</label>
<input type="text" value="" size="30" name="widget_products_data[link]" id="link">