Skip to content

Instantly share code, notes, and snippets.

@lgs
Created September 26, 2009 08:19
Show Gist options
  • Save lgs/194123 to your computer and use it in GitHub Desktop.
Save lgs/194123 to your computer and use it in GitHub Desktop.
root@webby2066:/var/rails/bookuntu# script/generate themed home
uninitialized constant Home
root@webby2066:/var/rails/bookuntu# script/generate themed Home
uninitialized constant Home
root@webby2066:/var/rails/bookuntu# script/generate themed HomeController
undefined method `columns' for HomeController:Class
root@webby2066:/var/rails/bookuntu# script/generate themed HomeController --layout=application
undefined method `columns' for HomeController:Class
root@webby2066:/var/rails/bookuntu# grep home config/routes.rb
map.home '', :controller => 'home', :action => 'index'
map.connect '/:action/:id', :controller => 'home'
root@webby2066:/var/rails/bookuntu# cat app/controllers/home_controller.rb
class HomeController < ApplicationController
caches_page :index
end
root@webby2066:/var/rails/bookuntu#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment