Step by Step Guide in creating Project

  • Rails project_name
  • Delete public/index
  • Generate controller - Plural
  • Generate model - Singular
  • Setup database.yml
  • Rake db:create then migrate
  • Setup config/routes
  • Setup controller
  • Setup model
  • Setup view
Pattern for model, view, controller
  • index
  • show
  • new
  • create
  • edit
  • update
  • delete
Install and test plugins
  • paperclip - photo attachment
  • thinking_sphinx - full text search
  • will_paginate - pagination

0 comments:

Post a Comment