class SitesController < ApplicationController #layout 'set_up' def index @site = Site.first redirect_to :action => :new unless @site end def new @site = Site.new end end