We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This works when I use it in a scaffold edit view but it doesn't work when I use it in the index scaffold view? What is this?
I get an error similar to this:
Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
My view code for index is standard like this:
<% @dogs.each do |dog| %>
The problem is in this code:
def in_place_editor_field(object, method, tag_options = {}, in_place_editor_options = {}) instance_tag = ::ActionView::Helpers::InstanceTag.new(object, method, self)
How can I adapt this to work in my index view?
The text was updated successfully, but these errors were encountered:
I just saw your comment, so it might be a bit late for you if you haven't figured it out by now...
<% @dogs.each do |dog| %> should actually be <% for @Dog in @dogs%>
In Place Editing requires instance variables to work... like you rightly point out in the code. Local variables just don't cut it...
Sorry, something went wrong.
No branches or pull requests
This works when I use it in a scaffold edit view but it doesn't work when I use it in the index scaffold view? What is this?
I get an error similar to this:
Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
My view code for index is standard like this:
<% @dogs.each do |dog| %>
<%= in_place_editor_field :dog, 'age' %> ....The problem is in this code:
def in_place_editor_field(object, method, tag_options = {}, in_place_editor_options = {})
instance_tag = ::ActionView::Helpers::InstanceTag.new(object, method, self)
How can I adapt this to work in my index view?
The text was updated successfully, but these errors were encountered: