Class: ClassifyConcernsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/classify_concerns_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#show_action_bar?, #show_site_search?, #sufia, with_themed_layout

Instance Method Details

#classify_concernObject



8
9
10
# File 'app/controllers/classify_concerns_controller.rb', line 8

def classify_concern
  @classify_concern ||= ClassifyConcern.new(params[:classify_concern])
end

#createObject



17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'app/controllers/classify_concerns_controller.rb', line 17

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

#newObject



13
14
15
# File 'app/controllers/classify_concerns_controller.rb', line 13

def new
  respond_with(classify_concern)
end