Files
growstuff/app/controllers/home_controller.rb
2013-10-18 11:03:57 +01:00

20 lines
481 B
Ruby

class HomeController < ApplicationController
skip_authorize_resource
def index
# we were previously generating a lot of instance variables like
# @members_count and @interesting_crops in here, but now we call
# the relevant class methods directly in the view, so that fragment
# caching will be effective.
respond_to do |format|
foo = "bar"
@fred = "barney"
raise "ohno! #{@fred}"
format.html # index.html.haml
end
end
end