Class: Bently::BackboneRails

Inherits:
RailsRecipe show all
Defined in:
lib/bently/recipe/backbone-rails.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

#initializeBackboneRails

Returns a new instance of BackboneRails.



6
7
8
9
10
11
12
13
14
# File 'lib/bently/recipe/backbone-rails.rb', line 6

def initialize
  gem 'rails-backbone'
  bundle
  generate 'backbone:install'
  usage 'Generators:'
  say 'rails g backbone:model', ''
  say 'rails g backbone:router', ''
  say 'rails g backbone:scaffold', ''
end