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. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Oct 15, 7:00 pm, croz <secros...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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.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 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
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:48 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Oct 15, 7:00 pm, croz <secros...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > 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. > > 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-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.