Method: InnerPlan::ListsController#create
- Defined in:
- app/controllers/inner_plan/lists_controller.rb
#create ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'app/controllers/inner_plan/lists_controller.rb', line 18 def create @list = InnerPlan::List.new(list_params) @list.user = current_inner_plan_user if @list.save redirect_to lists_path else render InnerPlan::Lists::NewView.new(list: @list), status: :unprocessable_entity end end |