 <p>You start by adding a method to your controller</p> <pre><code>def update_fname # get the parameters fname = params[:fname] # get the employee ID id = params[:id] # find the employee @employee = Employee.find(id) # update the employee employee.update_attributes(fname: fname) redirect_to @employee end </code></pre> <p>Then, in your route, you add:</p> <pre><code>resources :employees do get 'update_fname' end </code></pre> <p>And you call the route, who should be <code>http://localhost:3000/employees/{:id}/update_fname?fname={your_fname}</code></p>