Sample code snippets for Rails 4. This include few models, controllers and views.