Class: ClassifyConcernsController
Instance Method Summary
collapse
#show_action_bar?, #show_site_search?, #sufia, with_themed_layout
Instance Method Details
#classify_concern ⇒ Object
8
9
10
|
# File 'app/controllers/classify_concerns_controller.rb', line 8
def classify_concern
@classify_concern ||= ClassifyConcern.new(params[:classify_concern])
end
|
#create ⇒ Object
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
|
#new ⇒ Object
13
14
15
|
# File 'app/controllers/classify_concerns_controller.rb', line 13
def new
respond_with(classify_concern)
end
|