Guest User

Untitled

a guest
Jul 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. In my controller:
  2. class WorkoutsController < ApplicationController
  3. in_place_edit_for :w_set, :repetitions
  4. in_place_edit_for :w_set, :weight
  5. ...
  6.  
  7.  
  8. in my view:
  9. %td= in_place_editor_field s, 'repetitions'
  10. %td= in_place_editor_field s, 'weight'
  11.  
  12. The error:
  13. RuntimeError in Workouts#edit
  14.  
  15. Showing app/views/workouts/edit.html.haml where line #23 raised:
  16.  
  17. Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
  18.  
  19. where line 23 is: %td= in_place_editor_field s, 'repetitions'
Add Comment
Please, Sign In to add comment