orbit-basic/app/controllers/sites_controller.rb

15 lines
204 B
Ruby
Raw Normal View History

class SitesController < ApplicationController
#layout 'set_up'
def index
@site = Site.first
2011-08-18 05:43:33 +00:00
redirect_to :action => :new unless @site
end
def new
@site = Site.new
end
end