Skip to content

simonrand/rails_templates

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A place for me to keep any rails templates I come up with. Feel free to fork of course but it's unlikely I'll accept any pull requests for other templates as this is really for my own personal use. Knock yourself out in your own repos though!

.railsrc

You'll need to set the default database etc. in your ~/.railsrc. Mine looks like:

-d postgresql
--skip-test-unit
--skip-bundle

I prefer starting with PostgreSQL, the template installs RSpec so test-unit isn't needed, and bundler is run when we need it to.

Running

Clone the repository somewhere and run:

rails new <app_name> --template=path/to/checkout/<template_name>.rb

Templates

This currently contains only one template. (And maybe only ever will)

default.rb

Inspired (and mostly taken from) Starting a new Rails project. Thanks @mathie!

  • RSpec
  • Capybara
  • Guard
  • PagesController mapped to home
  • DotEnv
  • Pry
  • Puma
  • Bootstrap with skeleton application.html.erb

About

Where I keep my templates for quickly generating new rails apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 59.0%
  • Ruby 40.1%
  • CSS 0.9%