Method: Pageflow::StorylinesController#create
- Defined in:
- app/controllers/pageflow/storylines_controller.rb
#create ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/pageflow/storylines_controller.rb', line 8 def create entry = DraftEntry.find(params[:entry_id]) storyline = entry.storylines.build(storyline_params) (:create, storyline) verify_edit_lock!(entry.to_model) storyline.save respond_with(storyline) end |