No controller for javascript, stylesheets, images
Reported by theworkisdone | June 20th, 2008 @ 07:16 AM
Seems there a routing problems in current trunk.
Start: Fri Jun 20 13:08:59 +0200 2008
~ SELECT "id", "title", "content", "created_at", "published_at", "user_id", "permalink", "published", "formatter" FROM "articles" WHERE "permalink" = '/javascripts/application.js' ORDER BY "id" LIMIT 1
~ Routed to: {:controller=>"javascripts", :format=>"js", :action=>"application", :id=>nil}
~ Controller 'Javascripts' not found - (Merb::ControllerExceptions::NotFound)
Comments and changes to this ticket
-
AJ June 22nd, 2008 @ 07:34 PM
- Assigned user set to AJ
- State changed from new to open
I'm slightly inclined to believe that our Permalink router is a little too overzealous, and should be hardcoded to pass through for static resources such as stylesheets, javascript.. etc.
The current behaviour unfortunately breaks display out of the box, unless you put something like apache2/nginx in front of your Mongrel to serve up the static content.
-
AJ June 23rd, 2008 @ 04:23 AM
- Assigned user changed from AJ to Alexander Flatter
19:46 < aflatter> fujin: I just edited the rack file (re: Stylesheets controller issue)
20:22 < fujin> aflatter: nice work
20:23 < fujin> aflatter: pointing ticket at you
-
Alexander Flatter June 23rd, 2008 @ 04:46 AM
To be more clear: Remove the following comment in config/rack.ru.
... # comment this out if you are running merb behind a load balancer # that serves static files # use Merb::Rack::Static, Merb.dir_for(:public) ...
-
Alexander Flatter June 23rd, 2008 @ 04:46 AM
- State changed from open to resolved
-
Alexander Flatter June 23rd, 2008 @ 04:57 AM
I did create a FAQ wiki page and put the solution on it.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
The core code for Feather, a lightweight Merb-based blogging engine.