Method: Ucpengine::EntriesController#create
- Defined in:
- app/controllers/ucpengine/entries_controller.rb
#create ⇒ Object
25 26 27 28 29 30 31 32 33 34 |
# File 'app/controllers/ucpengine/entries_controller.rb', line 25 def create @entry = Entry.new(entry_params) if @entry.save #redirect_to content_entry_path(@entry), notice: 'Entry was successfully created.' redirect_to content_entries_path, notice: 'Entry was successfully created.' else render :new end end |