Sha256: be19df49253ab8a9836921bbd3c3fb5bea40049edf53a8d62b8fad888ce7c77b
Contents?: true
Size: 788 Bytes
Versions: 1
Compression:
Stored size: 788 Bytes
Contents
class ClassifyConcernsController < ApplicationController before_filter :authenticate_user! before_filter :agreed_to_terms_of_service! layout 'curate_nd/2_column' respond_to :html add_breadcrumb 'Upload a file', 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
curate-0.1.3 | app/controllers/classify_concerns_controller.rb |