I receive the following error: Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id when trying to use the in_place_editor_field tag: <% for employee in @employees %> <%= in_place_editor_field :employee, employee.fname %> <% end %> My model is called Employee and is being populated from a controller method employees_list: @employees = Employee.find_all When I take the <%= in_place_editor_field :employee, employee.fname %> out everything is back to normal. ANy ideas, I have performed a search but no luck.
on 2006-03-28 16:00
on 2006-04-05 22:08
Did you have any luck in finding the solution to your problem? In fact I'm stuck at your same point and the email sent to the list later on didn't help too much. In particular I don't get an error when using the following form: <% for task in @tasks %> <%= state_class(task.state_id) %> align='left'><%= @task = task; in_place_editor_field :task , :body %> <% end %> But the resulting field in still *not* editable ...
on 2006-04-05 22:11