Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
Seriously? The documentation for your framework is a bunch of blog posts spread across the Internet? Yeah. That's us: the community where every blogger is an open source contributor to the documentation. That can be awesome, but it can also be a little crazy-making. This project aspires to help by providing a database of links to blog posts that will be annotated with useful info. Lesson 1: Post model and controller Steps that created this app rails blogdocs cd blogdocs/ script/generate rspec cd spec/ mkdir models mkdir controllers vi models/post_spec.rb vi controllers/posts_controller_spec.rb rake db:migrate rake spec To make the spec pass, start with: script/generate model post title:string link:string script/generate controller posts Lesson 2: Views and Controller for Post CRUD This is mostly a default REST implementation, except that I've removed the show controller action and view and made it so create and update re-direct to the posts page