The in-place editor works for me, but not when I’m iterating over
objects in an array. I have the following in my view:
<% @session_types.each do |s| %>
<%= in_place_editor_field :s, 'name' %>
<% end %>@session_types is an array of objects that have the attribute ‘name’.
However, I’m getting the error message:
Called id for nil, which would mistakenly be 4 – if you really wanted
the id of nil, use object_id