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 […]