Tom Davies
2005-Jul-07 11:46 UTC
Possible bug in Rails 0.13 (action_view/base.rb:272:in `evaluate_locals'')
I am new to rails and ruby, so I am not sure if this is as designed.
In Rails .12.1, if you have a view with the following (notice it is
commented out intentionally):
<%= #debug(@params) %>
Nothing would be displayed, but it was handled gracefully. However in
Rails .13 it throws the following unhelpful error:
--------------
Showing /layouts/application.rhtml where line #19 raised:
compile error
(erb):19: syntax error
_erbout
^
(erb):19:in `evaluate_locals''
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/action_view/base.rb:272:in
`evaluate_locals''
<SNIP>
--------------
If this a bug, and if you would like me to log it I would be happy to.
Thanks,
Tom
Johan Sörensen
2005-Jul-07 11:53 UTC
Re: Possible bug in Rails 0.13 (action_view/base.rb:272:in `evaluate_locals'')
On 7/7/05, Tom Davies <atomgiant-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am new to rails and ruby, so I am not sure if this is as designed. > In Rails .12.1, if you have a view with the following (notice it is > commented out intentionally): > > <%= #debug(@params) %>I believe the correct way in erb is: <%#= debug(@params) %> -- http://johansorensen.com http://theexciter.com