Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with Rails 3 #4

Closed
grosser opened this issue May 14, 2010 · 3 comments
Closed

Not working with Rails 3 #4

grosser opened this issue May 14, 2010 · 3 comments

Comments

@grosser
Copy link

grosser commented May 14, 2010

/home/micha/.rvm/gems/ree-1.8.7-2010.01/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:440:in `load_missing_constant': ActionDispatch::Routing is not missing constant Mapper! (ArgumentError)

can be fixed with:

klass = if ActionPack::VERSION::MAJOR >= 3
  ActionDispatch::Routing::DeprecatedMapper
else
  ActionController::Routing::RouteSet::Mapper
end


# allows to install a filter to the route set by calling: map.filter 'locale'
klass.class_eval do

next errors are strangerer.... good luck with them :D

@hukl
Copy link
Collaborator

hukl commented May 14, 2010

the locale use case can be directly addressed with rails 3 without using routing-filter. so if thats what you're after don't use routing-filter in rails3 and use the "native" :scope instead

@grosser
Copy link
Author

grosser commented May 15, 2010

resources :categories, :scope => 'cms' does not work, it still produces /categories, not /cms/categories, we build a rack middleware to do the trick for now, but using routing_filter would be nicer :)
http://github.com/grosser/rack-path_prefixer

@svenfuchs
Copy link
Owner

routing_filter should now work with rails 3. unfortunately the changes aren't backwards compatible. so people using rails 2.x need to stick to the 0.0.x tags (installing it as a plugin). the 0.1.x gems are targeted at rails 3 ... not that widely used/tested in the wild yet :)

closing this ...

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants