Sha256: 714699095f215690913d844b64b079da6c8c7f73ac18c6de59c985d9c7d7c15f

Contents?: true

Size: 325 Bytes

Versions: 18

Compression:

Stored size: 325 Bytes

Contents

class RecordsController < ApplicationController
  def create
    Record.create record_params
    render nothing: true
  end

  def update
    Record.find(params[:id]).update_attributes record_params
    render nothing: true
  end

  private

  def record_params
    params.require(:record).permit [:field1, :field2]
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
autonumeric-rails-2.0.0.1 spec/dummy/app/controllers/records_controller.rb
autonumeric-rails-2.0 spec/dummy/app/controllers/records_controller.rb
autonumeric-rails-1.9.46.2 spec/dummy/app/controllers/records_controller.rb
autonumeric-rails-1.9.46 spec/dummy/app/controllers/records_controller.rb
autonumeric-rails-1.9.43 spec/dummy/app/controllers/records_controller.rb
autonumeric-rails-1.9.42 spec/dummy/app/controllers/records_controller.rb
autonumeric-rails-1.9.39 spec/dummy/app/controllers/records_controller.rb
autonumeric-rails-1.9.37 spec/dummy/app/controllers/records_controller.rb
autonumeric-rails-1.9.33 spec/dummy/app/controllers/records_controller.rb
autonumeric-rails-1.9.27 spec/dummy/app/controllers/records_controller.rb
autonumeric-rails-1.9.25.0 spec/dummy/app/controllers/records_controller.rb
autonumeric-rails-1.9.24.0 spec/dummy/app/controllers/records_controller.rb
autonumeric-rails-1.9.22.1 spec/dummy/app/controllers/records_controller.rb
autonumeric-rails-1.9.22 spec/dummy/app/controllers/records_controller.rb
autonumeric-rails-1.9.21 spec/dummy/app/controllers/records_controller.rb
autonumeric-rails-1.9.19.0 spec/dummy/app/controllers/records_controller.rb
autonumeric-rails-1.9.18.1 spec/dummy/app/controllers/records_controller.rb
autonumeric-rails-1.9.18.0 spec/dummy/app/controllers/records_controller.rb