Thursday, March 18, 2010

[Rails] Re: undefined method error despite the fact it doesn't exist

Hi John,
I would check your source code in app/views/resources/index.html.haml
(or a view helper for that view) for a typo since it's looking for a
method named something similar to what you have (e.g change
"render_index_row_action_pprove" to "render_index_row_action_approve")

HTH

On Mar 18, 7:43 pm, John Merlino <li...@ruby-forum.com> wrote:
> Hey all,
>
> I'm getting a strange, unexplainable error. It returns undefined method
> `render_index_row_action_pprove'. I performed a search on my entire
> application and no such method exists. There is a
> render_index_row_action_approve but not a
> render_index_row_action_pprove.
>
> NoMethodError in Student_requests#index
>
> Showing app/views/resources/index.html.haml where line #20 raised:
>
> undefined method `render_index_row_action_pprove' for
> #<ActionView::Base:0x105b3a780>
>
> Extracted source (around line #20):
>
> 17:           = render_index_row_index index
> 18:           - resources_index_row(rsrc).each do |row|
> 19:             = row
> 20:           = render_index_row_actions(rsrc,
> resources_index_row_actions(rsrc), options)
> 21:   - options[:with_limit_selector] = false
> 22:   = render_index_bottom_pagination_bar options
>
> Is this a rails glitch, perhaps it is reading the method name wrong? Is
> there anyway to fix this?
> Thanks for any response.
> --
> Posted viahttp://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment