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.3.0.pre3 app/controllers/venues_controller.rb
artfully_ose-1.3.0.pre2 app/controllers/venues_controller.rb
artfully_ose-1.3.0.pre1 app/controllers/venues_controller.rb
artfully_ose-1.2.0 app/controllers/venues_controller.rb
artfully_ose-1.2.0.beta.1 app/controllers/venues_controller.rb
artfully_ose-1.2.0.alpha.2 app/controllers/venues_controller.rb
artfully_ose-1.2.0.alpha.1 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.27 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.26 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.24 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.23 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.21 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.20 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.19 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.18 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.17 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.16 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.15 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.12 app/controllers/venues_controller.rb
artfully_ose-1.2.0.pre.11 app/controllers/venues_controller.rb