thessrb / thessrbio

Thessaloniki Ruby Meetup home
3 stars 12 forks source link

Add Home page #13

Closed xarisd closed 9 years ago

xarisd commented 9 years ago

STEP 1 : Copy static files for styling …

  1. CSS
  2. Images

STEP 2 : Create controller, action and view

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

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

  1. Add root 'home#index' to config/routes.rb

BONUS STEP : Add an integration test for Home page …

  1. Check only that the response code is 200 (:success)