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