Does
map.connect ''images/theme/:filename.:format'', :controller
=> ''theme'',
:action => ''images''
work? You might have to play around with that dot and the :format reference
but I think that''s how it''s done. I''ve never used it
myself though. Someone
else with some experience might want to clarify.
RSL
On 3/28/07, Brij Naald
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
>
> Hi, I have a (hopefully) simple problem that just doesn''t want to
work:
>
> I have a mapping in my routes.rb file:
>
> map.connect ''images/theme/:filename'',
> :controller => ''theme'', :action =>
''images''
>
>
> If I then go to url: http://localhost:3000/images/theme/bullet_blue.jpg
>
> I get following error:
>
> Routing Error
> no route found to match "/images/theme/bullet_blue.jpg" with
> {:method=>:get}
>
>
>
> However, if I go to url:
> http://localhost:3000/images/theme/bullet_blue, the action is executed
> correctly.
>
> Why does the mapping not correspond to a real filename containing an
> extension?
>
> thanks!
>
> --
> Posted via http://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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---