Retrieving value in controller - NoMethodError (undefined me

How can I retrieve the values in my controller for the text field
below? The “35” is the id of the item I want to update.

My controller is:

def update
@timesheet = Timesheet.find(params[:id])[:timesheet_item])

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs