Skip to content
Rails sample app just to keep my skills up to date
Ruby CoffeeScript JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
bin
config
db
doc
features
lib
log
public
script
spec
vendor
.gitignore
.rspec
.travis.yml
Gemfile
Gemfile.lock
Guardfile
README.md
Rakefile
config.ru

README.md

Ruby on Rails Tutorial: sample application

Sharpening my skillz :) (too many years on python...)

Starting Guard (always):

$ bin/guard

Run specs manually:

$ bin/rspec spec/

Adding executables to the project (from gems):

Each time a new executable is added, needed to be executed with bundle exec executable-added, run:

$ bundle --binstubs

This will generate a binary in bin/ to speed up things.

Model Annotation

Everytime a migration is added, theres this gem that annotates the Models so you can see all the fields inside the model class. To make it update, type:

$ bin/rake db:migrate $ bin/annotate --position before

Also, update the test database:

$ bin/rake db:test:prepare

This is the sample application for Ruby on Rails Tutorial: Learn Rails by Example by Michael Hartl.

Something went wrong with that request. Please try again.