Created
February 7, 2012 22:52
-
-
Save andypike/1762680 to your computer and use it in GitHub Desktop.
simple_form 2.0.0.rc improved api for twitter bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-# Instead of this simple_form 2.0.0.rc Twitter Bootstrap complication: | |
= form.input :savings, :label => "Your Savings:", :input_html => {:class => 'span2'}, :wrapper => :prepend do | |
%span.add-on= £ | |
= form.input_field :savings | |
%p.help-block Enter the amount of money you have in your savings account | |
-# I'd like to do something like this (simpler) | |
= form.input :savings, :label => "Your Savings:", :class => 'span2', :prepend => '£', :hint => 'Enter the amount of money you have in your savings account' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment