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