Skip to content

rjayroach/rails-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rails-templates

http://guides.rubyonrails.org/rails_application_templates.html

rails new todo-app -m https://raw.githubusercontent.com/rjayroach/rails-templates/master/4-main.rb
bin/rake rails:template LOCATION=https://raw.githubusercontent.com/rjayroach/rails-templates/master/5-api.rb
rails new todo-app --api -m https://raw.githubusercontent.com/rjayroach/rails-templates/master/5-api.rb
rails new todo-app --api -m path-to-rails-templates/5-api.rb

Plugins

A Rails plug-in is just a bare bones gem with a railtie

Passing the --full option will create a full app structure which is aka an engine

Passing the --mountable additionally adds isolate_namespace = true and requires to mount engine routes in the application's config/routes.rb

rails plugin new todo-engine --api --full -m path-to-rails-templates/5-api.rb -T --dummy-path=spec/dummy

TODO

About

Consistent bootstrap of Rails projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors