Sha256: 91a635ed03b865d68f869aa75a2549fdd48434acc91d4f98bb31445d49c8b0df
Contents?: true
Size: 833 Bytes
Versions: 13
Compression:
Stored size: 833 Bytes
Contents
class ClassifyConcernsController < ApplicationController before_filter :authenticate_user! before_filter :agreed_to_terms_of_service! before_filter :force_update_user_profile! 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
13 entries across 13 versions & 1 rubygems