Method: Admin::TopicsController#create
- Defined in:
- app/controllers/admin/topics_controller.rb
#create ⇒ Object
24 25 26 27 28 29 30 31 32 33 |
# File 'app/controllers/admin/topics_controller.rb', line 24 def create @topic = Projects::Topic.new(topic_params) if @topic.save redirect_to admin_topics_path, notice: format(_('Topic %{topic_name} was successfully created.'), topic_name: @topic.name) else render "new" end end |