thessrb/thessrbio — pull request #14 by xarisd (2014-12-04 09:53:54+00:00)
Title: Add Members page

Add "Members List" in a similar way …

STEP 1 : Create controller, action and view

1. Create controller MembersController at app/controllers/members_controller.rb
2. Add a public (empty) method index to the controller
3. Create a view at app/views/members/index.html.erb
4. Copy the contents of _design/members.html to the view
5. Tell the controller NOT to use a layout (for now)

STEP 2 : Tell Rails to use them (a.k.a Routing)

* Add get 'members.html', :to => 'members#index' to config/routes.rb

BONUS STEP : Add an integration test for Members page …
* Check only that the response code is 200 (:success)