https://github.com/developertown/rails-templates
A set of starting points for Rails applications to help kickstart development of new applications.
https://github.com/developertown/rails-templates
Last synced: about 1 month ago
JSON representation
A set of starting points for Rails applications to help kickstart development of new applications.
- Host: GitHub
- URL: https://github.com/developertown/rails-templates
- Owner: developertown
- Created: 2012-04-07T04:19:01.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2016-01-29T14:19:23.000Z (about 10 years ago)
- Last Synced: 2023-08-05T21:10:57.058Z (over 2 years ago)
- Language: CSS
- Homepage:
- Size: 125 KB
- Stars: 6
- Watchers: 36
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### DeveloperTown Rails Application Templates
This is a set of starting points for Rails applications to help kickstart development of new applications.
------------------------------------------------------------------------------
#### 1. basic_template.rb
Highlights of this template include:
* Authentication/Authorization with Devise/Authority
* HAML + Twitter Bootstrap (Sass version)
* Simple Form
* Deployment to OpsWorks
* Testing via rspec+factory_girl+guard+spring, coverage with simplecov
To use it, run:
gem install rails --no-ri --no-rdoc # (if you need it)
rails new my_new_app -m https://bit.ly/DTRailsTemplate
##### Important post-build things to do:
1. Ensure you have defined default url options in your environments files. Here is an example of ```default_url_options``` appropriate for a development environment in config/environments/development.rb:
```config.action_mailer.default_url_options = { :host => 'localhost:3000' }```
2. Before deploying to CI, create a CI database and environment configuration.
3. Before deploying to CI, update config/deploy.rb and the associated capistrano environment configs with appropriate configuration.
4. Be sure to change the default ActiveAdmin username/password (u: admin@example.com, p: password)
##### How to create static pages
1. Create a file in the home folder with the same name as the url you want the page to use (i.e. organic.html.haml will be available at localhost:3000/organic)
2. That's it. Magic!
##### How to switch to a fluid layout
1. Delete application.html.haml or rename it to something like application_fixed.html.haml
2. Rename application_fluid.html.haml application.html.haml
3. Modify the default css in application.css to make it work for a fluid layout
##### How to add scaffolding
rails g scaffold Post title:string description:text
rake db:migrate
rails g bootstrap:themed Posts
More info: https://github.com/twbs/bootstrap-sass