Forum: Ruby on Rails theme stylesheets not being found by typo trunk

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F885676e2784d2e14bce332b0397aca3?d=identicon&s=25 Mark Aufflick (Guest)
on 2006-06-07 11:37
(Received via mailing list)
Hi all,

I have setup an install of trunk typo using trunk/edge rails.

It's all working swimmingly, except that the theme css is not being
found and I am hoping someone has an idea (or two).

so, the url is /stylesheets/theme/azure.css, the relevant entry in
routes.rb is:

  map.connect 'stylesheets/theme/:filename',
    :controller => 'theme', :action => 'stylesheets'

but it looks like the theme controller is never called. I get a 404 in
my browser, the logger message I put in the stylesheet method in the
theme_controller never gets logged, and the log says:

Processing RedirectController#redirect (for 64.138.9.194 at 2006-06-07
14:39:30) [GET]
  Session ID: f59c658c2e885da754aa2f50e2dcea3a
  Parameters: {"from"=>["stylesheets", "theme", "azure.css"],
"action"=>"redirect", "controller"=>"redirect"}

But the only reference to the redirect controller in routes.rb is
right at the end:

map.connect '*from', :controller => 'redirect', :action => 'redirect'

I don't really know where to look next before debugging the rails
routing code itself.

Thanks,

Mark.

--
Mark Aufflick
 e: mark@pumptheory.com
 w: mark.aufflick.com
 p: +61 438 700 647
 f: +61 2 9436 4737
This topic is locked and can not be replied to.