class Services::SiteSignupsController < ServicesController # GET /site_signups # GET /site_signups.xml def index @site_signups = SiteSignup.all respond_to do |format| format.html # index.html.erb format.xml { render :xml => @site_signups } end end # GET /site_signups/1 # GET /site_signups/1.xml def show @site_signup = SiteSignup.find(params[:id]) respond_to do |format| format.html # show.html.erb format.xml { render :xml => @site_signup } end end # GET /site_signups/new # GET /site_signups/new.xml def new @site_signup = SiteSignup.new respond_to do |format| format.html # new.html.erb format.xml { render :xml => @site_signup } end end # GET /site_signups/1/edit def edit @site_signup = SiteSignup.find(params[:id]) end # POST /site_signups # POST /site_signups.xml def create @site_signup = SiteSignup.new(params[:site_signup]) respond_to do |format| if @site_signup.save format.html { redirect_to([:services, @site_signup], :notice => 'Site signup was successfully created.') } format.xml { render :xml => @site_signup, :status => :created, :location => [:services, @site_signup] } else format.html { render :action => "new" } format.xml { render :xml => @site_signup.errors, :status => :unprocessable_entity } end end end # PUT /site_signups/1 # PUT /site_signups/1.xml def update @site_signup = SiteSignup.find(params[:id]) respond_to do |format| if @site_signup.update_attributes(params[:site_signup]) format.html { redirect_to([:services, @site_signup], :notice => 'Site signup was successfully updated.') } format.xml { head :ok } else format.html { render :action => "edit" } format.xml { render :xml => @site_signup.errors, :status => :unprocessable_entity } end end end # DELETE /site_signups/1 # DELETE /site_signups/1.xml def destroy @site_signup = SiteSignup.find(params[:id]) @site_signup.destroy respond_to do |format| format.html { redirect_to(services_site_signups_url) } format.xml { head :ok } end end end