Sha256: 3fabc62c25af81a623500f9b668a2d5265bdca8ca575a9bf679237a093027075
Contents?: true
Size: 909 Bytes
Versions: 6
Compression:
Stored size: 909 Bytes
Contents
module Worthwhile class ClassifyConcernsController < ApplicationController include Worthwhile::ThemedLayoutController with_themed_layout '1_column' respond_to :html before_filter :authenticate_user! load_and_authorize_resource add_breadcrumb 'Submit a work', lambda {|controller| controller.request.path } def classify_concern @classify_concern end helper_method :classify_concern def new respond_with(classify_concern) end 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 end end
Version data entries
6 entries across 6 versions & 1 rubygems