Displaying 3 results from an estimated 3 matches for "add_named_route".
2007 Mar 06
4
Rails 1.2 / Theme support plugin issue: Fix
...# Go to vendor/plugins/theme_support/lib/patches/routeset_ex.rb
# Replace "draw" method with following
def draw
clear!
create_theme_routes
yield Mapper.new(self)
named_routes.install
end
# In create_theme_routes method
- replace named_route with add_named_route
- replace connect with add_route
So your create_theme_routes should look like this
def create_theme_routes
add_named_route ''theme_images'', "/themes/:theme/images/:filename",
:controller=>''theme'', :action=>''images''
a...
2009 Jul 28
2
Basic question map.root question
...y/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/routing.rb:
1199:in `add_route''
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/routing.rb:
1205:in `add_named_route''
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/routing.rb:
992:in `root_without_deprecation''
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-1....
2006 Aug 03
1
routeset mapper problem
...me, *args, &proc )
if name.to_s.starts_with?( '''' )
opts = (args.last.is_a?(Hash)) ? args.pop : {}
opts[:named_route] = name.to_s #[9..-1]
content_root( *(args << opts) )
else
super unless args.length >= 1 && proc.nil?
@set.add_named_route(name, *args)
end
end
end
I''m at a loss over how to debug this... while I read up on routes, any
pointers or ideas would be greatly appreciated! :)
thanks
Oliver
--
Posted via http://www.ruby-forum.com/.