You might want to try:

map.widget '/widget/show/*url', :controller => 'widget', :action =>
'show'

and see if that works. I seem to recall that the dots are the issue,
as the router typically uses them to separate formats from request
params.

--Matt Jones

On Sep 19, 11:04 pm, Richard Schneeman <rails-mailing-l...@andreas-
s.net> wrote:
> I'm building an application that stores links, but i've run into a
> problem with routing. If my routes.rb looks like this:
>
>   map.widget '/widget/show/:url', :controller => "widget", :action =>
> "show"
>
> then when i go to /widget/show/www.example.com then i get an error. If
> i change the route to:
>
>   map.widget '/widget/show', :controller => "widget", :action => "show"
>
> and i enter in /widget/show?url=www.example.comthen everything works
> great, but i'm currious if there is anything i can do to make the first
> routing method work?
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to