Ruby: super-quick guide to push your temp sites and experiments to Heroku

Plagiarizing from here: If you don’t have rails and ruby already on your machine: $ gem install bundler // rails is installed as a gem: $ gem install rails NOTE: If you are in a windows machine, and have trouble at this point installing rails. You need a couple of extra steps: – Download the […]

Rails: controllers

to create a new controller: ruby script/generate controller yourcontrollernamehere Now you just need to add a view file with the HTML under folder: views/yourcontrolernamehere For rails 3: $ rails generate controller Pages home contact This adds the controller pages, and then particular pages “home” and “contact” under that controller This will also generate the needed […]