Sha256: 3e17c9ed78e4e03b7bae58106b0bd1656c69bcfda7ea3089f52a941c728ed5dd

Contents?: true

Size: 194 Bytes

Versions: 4

Compression:

Stored size: 194 Bytes

Contents

class TodosController::TodoParams < Aldous::Params
  def permitted_params
    params.require(:todo).permit(:description, :user_id)
  end

  def error_message
    'Missing param :todo'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aldous-1.1.3 examples/basic_todo/app/controller_actions/todos_controller/todo_params.rb
aldous-1.1.2 examples/basic_todo/app/controller_actions/todos_controller/todo_params.rb
aldous-1.0.1 examples/basic_todo/app/controller_actions/todos_controller/todo_params.rb
aldous-1.0.0 examples/basic_todo/app/controller_actions/todos_controller/todo_params.rb