Skip to content

Instantly share code, notes, and snippets.

@kareemgrant
Last active August 29, 2015 14:18
Show Gist options
  • Save kareemgrant/337275f44dd50ee63687 to your computer and use it in GitHub Desktop.
Save kareemgrant/337275f44dd50ee63687 to your computer and use it in GitHub Desktop.

Basic Rails App

Goals

  • Get familiar with creating a Rails app and the basics, be sure your Ruby is up to par.

Assignment

  • Rails: Create a new Rails application for a blog with a Post model and Posts controller. The app should two views: One that lists all posts and one show the detail of a specific post.
  • When a user navigates to the root path of your app, they should be directed to a view that lists all posts.

Recommended Activity

Read the Rails overview: http://rubyonrails.org/

Sinatra vs Rails, What's the difference? http://www.airpair.com/ruby-on-rails/posts/rails-vs-sinatra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment