Record Route


Ruby on Rails Routing Public New

Easy  

3min

Consider the following controller and view definitions:

class RecordsController < ApplicationController
  def update
    @record = Record.find(params[:id])
    @record.update(record_params)
  end
end
<%= form_for @record do |f| %>
<%= render 'form', f: f %>
<% end %>

Select all the statements that can be used to update a record.