Guard watches a directory and runs commands when it sees changes to files.
This is great for automating your rspec tests!
Add guard and guard-rspec to your Gemfile
| # What about including `pry`, `rspec` or `guard`? | |
| # They're loaded automatically as dependencies | |
| group :development, :test do | |
| # Annotates ActiveRecord Models, routes and others based on the database schema | |
| gem "annotate" | |
| # generates entity relationship diagrams based on Active Record models | |
| # Postscript bugs may be fixed with: |
Implement a Ruby class called Translater with a class method called to_pig that takes a word (string) as an argument and returns its pig latin equivalent. Description of the rules from Wikipedia:
For words that begin with consonant sounds, the initial consonant or consonant cluster is moved to the end of the word, and "ay" is added, as in the following examples:
Heroku Checklist
To enable features such as static asset serving and logging on Heroku please add rails_12factor gem to your Gemfile.
# Gemfile
gem 'rails_12factor', group: :production
You should be running the same version of Ruby on Heroku that you're running locally.
| {"name": "xavier"} |
| Demo |
| Demo |
| Demo |