Sha256: 2715b8de575bfe78b7ac195648ab72d609ea6a2f46082eacad222c5777440205

Contents?: true

Size: 684 Bytes

Versions: 22

Compression:

Stored size: 684 Bytes

Contents

class ConcertosController < ApplicationController
  expose(:concertos) { Concerto.all }
  expose(:concerto)
  
  def index
  end

  def guest
  end

  def admin_account
  end

  def show
  end

  def new
  end

  def create
    if concerto.save
      redirect_to concerto, :notice => "Successfully created concerto."
    else
      render :new
    end
  end

  def edit
  end
  
  def update
    if concerto.update_attributes(params[:concerto])
      redirect_to concerto, :notice => "Successfully updated concerto."
    else
      render :edit
    end
  end
  
  def destroy
    concerto.destroy
    redirect_to concertos_url, :notice => "Successfully destroyed concerto."
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
cantango-0.9.4.7 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.9.4.6 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.9.4.5 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.9.4.3 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.9.4.2 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.9.4.1 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.9.4 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.9.3.2 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.8.9.5 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.8.9.4 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.8.9.3 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.8.9.2 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.8.9.1 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.8.9 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.8.8.1 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.8.8 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.8.7 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.8.6.2 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.8.6.1 spec/dummy/app/controllers/concertos_controller.rb
cantango-0.8.6 spec/dummy/app/controllers/concertos_controller.rb