Class: Bently::SimpleForm

Inherits:
RailsRecipe show all
Defined in:
lib/bently/recipe/simple_form.rb

Constant Summary

Constants inherited from RubyRecipe

RubyRecipe::GEMFILE

Instance Method Summary collapse

Methods inherited from RailsRecipe

#generate, #migrate

Methods inherited from RubyRecipe

#bundle, #gem, #gem_group

Methods inherited from Recipe

#append, breakdown, category, #code, #create, description, homepage, #insert, #modify, #operate, #operations, #prepend, #remove, #requirement, #run, #say, title, #todo, #usage, version, #warn

Constructor Details

#initializeSimpleForm

Returns a new instance of SimpleForm.



9
10
11
12
13
14
15
16
17
18
# File 'lib/bently/recipe/simple_form.rb', line 9

def initialize
  gem 'simple_form'
  bundle
  generate 'simple_form:install'
  todo 'If you want to use the country select, you will need the country_select gem:'
  say 'gem \'country_select\'', ''
  todo 'SimpleForm can be easily integrated to the Twitter Bootstrap. To do that you have to use the bootstrap option in the install generator, like this:'
  say 'rails generate simple_form:install --bootstrap', ''
  say 'You have to be sure that you added a copy of the Twitter Bootstrap assets on your application.', ''
end