Sha256: e5a552ab345210483a674eea66f82610b714277e91079e5dcd6a09dba7524d6c
Contents?: true
Size: 789 Bytes
Versions: 3
Compression:
Stored size: 789 Bytes
Contents
class ClassifyConcernsController < ApplicationController before_filter :authenticate_user! before_filter :agreed_to_terms_of_service! with_themed_layout '1_column' respond_to :html add_breadcrumb 'Submit a work', lambda {|controller| controller.request.path } def classify_concern @classify_concern ||= ClassifyConcern.new(params[:classify_concern]) end helper_method :classify_concern def new respond_with(classify_concern) end def create if classify_concern.valid? respond_with(classify_concern) do |wants| wants.html do redirect_to new_polymorphic_path( [:curation_concern, classify_concern.curation_concern_class] ) end end else respond_with(classify_concern) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
curate-0.3.2 | app/controllers/classify_concerns_controller.rb |
curate-0.3.1 | app/controllers/classify_concerns_controller.rb |
curate-0.2.0 | app/controllers/classify_concerns_controller.rb |