Sha256: 83884e5d11b7c4e0eb461e36b87aefc3ebc9023a6b6007a0680e6cde76fb4372

Contents?: true

Size: 1.25 KB

Versions: 33

Compression:

Stored size: 1.25 KB

Contents

# frozen_string_literal: true

# Create beautiful JavaScript charts with one line of Ruby
#
# exe/rag addons/chartkick

self.local_template_path = File.dirname(__FILE__)

gac 'base rails 7 image created'

prepare_environment

add_controller('home', 'index')
route("root 'home#index'")

force_copy

copy_file 'app/controllers/home_controller.rb'            , 'app/controllers/home_controller.rb'
copy_file 'app/views/home/index.html.erb'                 , 'app/views/home/index.html.erb'

copy_file 'app/views/layouts/_alerts.html.erb'            , 'app/views/layouts/_alerts.html.erb'
copy_file 'app/views/layouts/_navbar.html.erb'            , 'app/views/layouts/_navbar.html.erb'
copy_file 'app/views/layouts/_footer.html.erb'            , 'app/views/layouts/_footer.html.erb'
template  'app/views/layouts/application.html.erb'        , 'app/views/layouts/application.html.erb'

template  'db/seeds.rb'                                   , 'db/seeds.rb'

copy_file 'config/initializers/chartkick.rb' , 'config/initializers/chartkick.rb'

after_bundle do
  setup_db
  db_seed
end

def setup_db
  add_scaffold('yogurt', 'flavour')
  add_scaffold('people', 'name')
  copy_file 'app/views/people/_person.html.erb'             , 'app/views/people/_person.html.erb'
  
  db_migrate
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
rails_app_generator-0.2.30 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.29 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.28 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.27 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.26 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.25 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.24 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.23 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.22 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.21 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.20 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.19 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.18 after_templates/addons/chartkick/_.rb