prints a message then the `--bootstrap` option is used.

closes #376.
This commit is contained in:
Lucas Mazza 2012-01-24 18:46:31 -02:00
parent dc2518691d
commit ac81d71e91
2 changed files with 18 additions and 0 deletions

View File

@ -14,6 +14,12 @@ module SimpleForm
engine = options[:template_engine]
copy_file "_form.html.#{engine}", "lib/templates/#{engine}/scaffold/_form.html.#{engine}"
end
def show_readme
if behavior == :invoke && options.bootstrap?
readme "README"
end
end
end
end
end

View File

@ -0,0 +1,12 @@
===============================================================================
Be sure to have a copy of the Bootstrap stylesheet available on your app,
you can get in on http://twitter.github.com/bootstrap.
Inside your views, use the 'simple_form_for' with one of the Bootstrap form
classes, '.form-horizontal', '.form-inline', '.form-search' or
'.form-vertical', as the following:
= simple_form_for(@user, :html => {:class => 'form-horizontal' }) do |form|
===============================================================================