Sha256: f404b46380fb02a554efc4ccafeef96643e452cc935e23b80e2f8fe849019908

Contents?: true

Size: 476 Bytes

Versions: 34

Compression:

Stored size: 476 Bytes

Contents

class VenuesController < ArtfullyOseController
  def edit
    @event = Event.find(params[:event_id])
    authorize! :edit, @event
    @venue = @event.venue
  end
  
  def update
    @event = Event.find(params[:event_id])
    authorize! :edit, @event
    @venue = @event.venue
    @venue.update_attributes(params[:venue])
    if params[:commit].try(:downcase) =~ /next/
      redirect_to prices_event_path(@event)
    else
      redirect_to event_url(@event)
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.10 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.9 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.8 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.7 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.6 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.5 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.4 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.3 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.2 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.1 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre app/controllers/venues_controller.rb
artfully_ose-1.1.0 app/controllers/venues_controller.rb
artfully_ose-1.1.0.rc2 app/controllers/venues_controller.rb
artfully_ose-1.1.0.rc1 app/controllers/venues_controller.rb