Making your first Rails applicaiton
We’re going to follow the basic flow of the [Rails Getting Started Guide] (http://guides.rubyonrails.org/getting_started.html), highlighting the important parts and the commands you need to run to create your first Rails Appplication. We’ll assume you have, (1) Rails environment setup, and (2) Sqlite or Postgresql (Sqlite is fine, but using Postgresql will enable you to deploy it to Heroku fast and easily). This means you can do this in the terminal,
ruby -v
rails -v
psql -v
Rails is built using Model-View-Controller components. Not sure what these are? Read this. http://guides.rubyonrails.org/getting_started.html#the-mvc-architecture.
- http://guides.rubyonrails.org/getting_started.html#creating-a-new-rails-project
- use postgresql if you have Postgresql installed and want to deploy to Heroku
- http://guides.rubyonrails.org/getting_started.html#getting-up-and-running-quickly-with-scaffolding
- Using Rails’ templating system, “generators”. We’ll use these at first, but teach you what they do so that you’ll be free of use generic components.
- Follow these steps. https://devcenter.heroku.com/articles/quickstart
- Follow these steps. https://devcenter.heroku.com/articles/rails3