Hi all,
I’m trying to upgrade my Rails app from 2.3.8 to 3.0.1. From within my
view I have this method:
title (‘test’, true)
In my application_helper file the method header looks like this:
title(title = nil, ignore = nil)
And the error I get is:
syntax error, unexpected ‘,’, expecting ‘)’
When I run it without the parenthesis it works:
title ‘test’, true
So I was wondering if in Rails 3 you can no longer call methods in
views with parenthesis.
croz
October 15, 2010, 10:39pm
2
On Oct 15, 7:00pm, croz [email protected] wrote:
And the error I get is:
syntax error, unexpected ‘,’, expecting ‘)’
When I run it without the parenthesis it works:
title ‘test’, true
So I was wondering if in Rails 3 you can no longer call methods in
views with parenthesis.
did you also upgrade your ruby version? A space between the method
name and the parens certainly used to produce a warning that this
wouldn’t be allowed in future versions.
Fred
croz
October 15, 2010, 10:39pm
3
I went from 1.8.7 to 1.9.2 so perhaps I missed the warning. Thanks for
your help, that fixed it.
On Oct 15, 1:48pm, Frederick C. [email protected]