Can anyone tell me what might the issue be here?:
NoMethodError in Todos#index
Showing todos/_toggle_notes.rhtml where line #3 raised:
undefined method `[]' for #<Enumerable::Enumerator:0xb6fbc6cc>
Extracted source (around line #3):
1: <%=
link_to
(image_tag( 'blank.png', :width=>'16', :height=>'16', :border=>'0' ),
"#", {:class => 'show_notes', :title => 'Show notes'}) %>
2: <% apply_behavior 'a.show_notes:click', :prevent_default => true do
|page, element|
3: element.next('.todo_notes').toggle
4: end
5: -%>
6: <div class="todo_notes" id="<%= dom_id(item, 'notes') %>"
style="display:none">
Trace of template inclusion: /todos/_todo.html.erb, /contexts/
_context.rhtml, /todos/index.html.erb
RAILS_ROOT: /var/www/tracks-1.6
Application Trace | Framework Trace | Full Trace
vendor/rails/activesupport/lib/active_support/core_ext/string/
access.rb:43:in `first'
vendor/rails/activesupport/lib/active_support/inflector.rb:151:in
`camelize'
vendor/rails/activesupport/lib/active_support/core_ext/string/
inflections.rb:49:in `camelize'
vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb:
1079:in `method_missing'
vendor/plugins/unobtrusive_javascript/lib/ujs/javascript_proxies.rb:
43:in `__send__'
vendor/plugins/unobtrusive_javascript/lib/ujs/javascript_proxies.rb:
43:in `method_missing'
app/views/todos/_toggle_notes.rhtml:3:in
`_run_erb_47app47views47todos47_toggle_notes46rhtml'
app/views/todos/_toggle_notes.rhtml:2:in
`_run_erb_47app47views47todos47_toggle_notes46rhtml'
app/views/todos/_todo.html.erb:19:in
`_run_erb_47app47views47todos47_todo46html46erb'
app/views/contexts/_context.rhtml:34:in
`_run_erb_47app47views47contexts47_context46rhtml'
app/views/todos/index.html.erb:4:in
`_run_erb_47app47views47todos47index46html46erb'
app/controllers/todos_controller.rb:568:in `render_todos_html'
app/controllers/todos_controller.rb:18:in `index'
Thanks.
Stephen
_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss