When I visit 0.0.0.0:3000, my refinery-based website used to go to the
"Home" page, but it doesn't any more. Now it shows a message that "The
page you were looking for doesn't exist."
This started happening after I accidentally called rake db:reset on my
local database and had to re-enter all the page content by hand. Once
I set up the pages in refinery again, the pages work fine if I specify
them directly by url. (i.e. 0.0.0.0:3000/home or 0.0.0.0:3000/about),
but 0.0.0.0:3000 doesn't route to 0.0.0.0:3000/home any more, which is
the desired behavior.
Any ideas?
Here's what show's up in the terminal:
Started GET "/" for 127.0.0.1 at 2011-11-25 12:30:31 -0500
Processing by PagesController#home as HTML
Parameters: {"locale"=>:en}
SQL (1.0ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
SQL (0.4ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
Page::Translation Load (0.2ms) SELECT page_id AS id FROM
"page_translations" WHERE "page_translations"."locale" = 'en'
Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE
"roles"."title" = 'Refinery' LIMIT 1
User Load (1.0ms) SELECT * FROM "users" INNER JOIN "roles_users" ON
"users".id = "roles_users".user_id WHERE ("roles_users".role_id = 1 )
Page Load (0.2ms) SELECT "pages".* FROM "pages" WHERE
"pages"."link_url" = '/' LIMIT 1
Page Load (0.1ms) SELECT "pages".* FROM "pages" WHERE
"pages"."menu_match" = '^/404$' LIMIT 1
Rendered public/404.html (0.4ms)
User Load (60.3ms) SELECT "users".* FROM "users" WHERE "users"."id"
= 1 LIMIT 1
Role Load (0.2ms) SELECT * FROM "roles" INNER JOIN "roles_users" ON
"roles".id = "roles_users".role_id WHERE ("roles_users".user_id = 1 )
Completed 404 Not Found in 365ms (Views: 12.7ms | ActiveRecord: 3.0ms)
Thanks,
Jeremy