Method: Worthwhile::ClassifyConcernsController#create
- Defined in:
- app/controllers/worthwhile/classify_concerns_controller.rb
#create ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'app/controllers/worthwhile/classify_concerns_controller.rb', line 20 def create classify_concern.attributes = params[:classify_concern] 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 |