Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

rails 3.0.2

13 views
Skip to first unread message

Stijnster

unread,
Nov 17, 2010, 8:49:19 AM11/17/10
to I18n Routing
Hi there,


I 'm in the progress of migrating my app from Rails 3.0.0 to Rails
3.0.2. I also upgraded my i18n_routing plugin to version 0.4.5

When I try to run the app, I now get the error message;

/ruby-1.8.7-p299/gems/actionpack-3.0.2/lib/action_dispatch/routing/
mapper.rb:120:in `requirements': undefined method `source' for
"nl":String (NoMethodError


To make sure that it isn't only on that specific app, I also created a
clean application with a simple routing file;

Mapping::Application.routes.draw do
localized do
resources :jobs
end
end

And a localized file;

nl:
resources:
jobs: opdrachten


This gives the same error. It seems like there is a problem with a
constraint that is set on line 50 of i18n_routing-0.4.5/lib/
i18n_routing_rails3.rb

constraints[:i18n_locale] = locale.to_s

When I comment out that line, there seems to be no problem, but I'm
not sure what its used for :-)

Best regards,

Stijn

Guillaume Luccisano

unread,
Nov 17, 2010, 10:16:46 AM11/17/10
to i18n-r...@googlegroups.com
Thans for the report !
Probably an issue with the last version of Rails, I will try to fix it in the next few days.

Thanks
Guillaume

2010/11/17 Stijnster <s.mat...@telenet.be>

Stijnster

unread,
Nov 17, 2010, 3:58:18 PM11/17/10
to I18n Routing
Hi Guillaume,


I just spent some time debugging and running the test files provided
with the plugin. It seems like the rails 3.0.2 was just an "in
between" release. I upgraded to rails 3.0.3 which was released just a
day ago and ... all works well.

I upgraded my app to 3.0.3, re-ran the tests and the application and
all is well now!

I don't think that the plugin should be compatible with the 3.0.2
release as it seems like it's not even announced as a "real" version.

Case closed ;-)

Best regards,


Stijn



On Nov 17, 4:16 pm, Guillaume Luccisano
<guillaume.luccis...@gmail.com> wrote:
> Thans for the report !
> Probably an issue with the last version of Rails, I will try to fix it in
> the next few days.
>
> Thanks
> Guillaume
>
> 2010/11/17 Stijnster <s.mathy...@telenet.be>

Guillaume Luccisano

unread,
Nov 17, 2010, 3:59:20 PM11/17/10
to i18n-r...@googlegroups.com
Ah great !

I'm glad to hear that.
Thanks for the investigation :)

2010/11/17 Stijnster <s.mat...@telenet.be>
Reply all
Reply to author
Forward
0 new messages