On 19 March 2010 14:43, John Merlino <lists@ruby-forum.com> wrote:
> Billee D. wrote:
>> 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
>
>
>
> I run the command find . -print | awk '{print "\""$0"\""}' | grep -v
> \.svn | xargs grep -i "render_index_row_action_pprove"
>
> and this is what I get:
>
> trunk/log/development.log:ActionView::TemplateError (undefined method
> `render_index_row_action_pprove' for #<ActionView::Base:0x10c5ca938>) on
> line #20 of app/views/resources/index.html.haml:
>
> So the only place the method appears is in the development log. When
> someone else downloaded a local copy from the repository, they got no
> such error. So either a modification needs to be made in the development
> log or there's nothing else it appears I can do. Thanks for the
Usually when I get an error shown in a haml file then somewhere (in
log or server window maybe) there will be a full trace which may
identify a line in a helper causing the problem. I wonder if it some
unprintable character is causing the problem so your search does not
find it.
I presume you have checked that you have no locally modified files.
Also check that you have not got any extra files (backup files for
example) in views/resources or helper folders. Rails has been known
to pick up backup files instead of the correct file.
What happens if you check out a new local copy from the repository?
Colin
--
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