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.3.6 after_templates/addons/chartkick/_.rb
rails_app_generator-0.3.5 after_templates/addons/chartkick/_.rb
rails_app_generator-0.3.4 after_templates/addons/chartkick/_.rb
rails_app_generator-0.3.3 after_templates/addons/chartkick/_.rb
rails_app_generator-0.3.2 after_templates/addons/chartkick/_.rb
rails_app_generator-0.3.1 after_templates/addons/chartkick/_.rb
rails_app_generator-0.3.0 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.43 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.42 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.41 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.40 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.39 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.38 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.37 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.36 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.35 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.34 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.33 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.32 after_templates/addons/chartkick/_.rb
rails_app_generator-0.2.31 after_templates/addons/chartkick/_.rb