Processing StaticContentController#show (for 127.0.0.1 at 2010-03-03 09:36:04) [GET]
Parameters: {"action"=>"show", "path"=>["products"], "controller"=>"static_content"}
Cache miss: Spree::Config ({})
Preference Load (0.5ms) SELECT * FROM preferences WHERE (preferences.owner_id = 1 AND preferences.owner_type = 'Configuration')
Configuration Columns (1.8ms) SHOW FIELDS FROM configurations
Configuration Load (0.5ms) SELECT * FROM configurations WHERE (configurations.id = 1)
CACHE (0.0ms) SELECT * FROM configurations WHERE (configurations.id = 1)
CACHE (0.0ms) SELECT * FROM configurations WHERE (configurations.id = 1)
CACHE (0.0ms) SELECT * FROM configurations WHERE (configurations.id = 1)
Cache write (will save 7.05ms): Spree::Config
Page Columns (1.8ms) SHOW FIELDS FROM pages
Page Load (0.4ms) SELECT * FROM pages WHERE (pages.slug = '/products') AND (pages.visible = 1) ORDER BY position ASC LIMIT 1
CACHE (0.0ms) SELECT * FROM pages WHERE (pages.slug = '/products') AND (pages.visible = 1) ORDER BY position ASC LIMIT 1
Rendering /Users/pasha/Sites/darite/public/404.html (404)
Completed in 163ms (View: 2, DB: 9) | 404 Not Found [http://localhost/products]
Looks like this route
map.static '*path', :controller => 'static_content', :action => 'show'
override others. Commit rollback solves the problem.
Your last commit http://github.com/PeterBerkenbosch/spree-static-content/commit/ae903a1f4b10f3b38491c71e73e27d5990db16de makes spree process only static pages. Here is a part of my log
Processing StaticContentController#show (for 127.0.0.1 at 2010-03-03 09:36:04) [GET] Parameters: {"action"=>"show", "path"=>["products"], "controller"=>"static_content"} Cache miss: Spree::Config ({}) Preference Load (0.5ms) SELECT * FROM
preferences
WHERE (preferences
.owner_id = 1 ANDpreferences
.owner_type = 'Configuration') Configuration Columns (1.8ms) SHOW FIELDS FROMconfigurations
Configuration Load (0.5ms) SELECT * FROMconfigurations
WHERE (configurations
.id
= 1) CACHE (0.0ms) SELECT * FROMconfigurations
WHERE (configurations
.id
= 1) CACHE (0.0ms) SELECT * FROMconfigurations
WHERE (configurations
.id
= 1) CACHE (0.0ms) SELECT * FROMconfigurations
WHERE (configurations
.id
= 1) Cache write (will save 7.05ms): Spree::Config Page Columns (1.8ms) SHOW FIELDS FROMpages
Page Load (0.4ms) SELECT * FROMpages
WHERE (pages
.slug
= '/products') AND (pages
.visible
= 1) ORDER BY position ASC LIMIT 1 CACHE (0.0ms) SELECT * FROMpages
WHERE (pages
.slug
= '/products') AND (pages
.visible
= 1) ORDER BY position ASC LIMIT 1 Rendering /Users/pasha/Sites/darite/public/404.html (404) Completed in 163ms (View: 2, DB: 9) | 404 Not Found [http://localhost/products]Looks like this route map.static '*path', :controller => 'static_content', :action => 'show' override others. Commit rollback solves the problem.