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
Do you mean set the "forward this page" setting on my "Home" page?
That wouldn't produce the effect I am looking for. I don't want to
forward traffic from 0.0.0.0:3000/home to 0.0.0.0:3000. I want to do
the opposite. I need Refinery to forward users from the root of my
site 0.0.0.0:3000 to 0.0.0.0:3000/home. So that when users go to my
site, they automatically go to the "Home" page that I have created.
It seems like it's some setting in the guts of refinery, perhaps in
the database, that I need to fix. Any ideas?
Jeremy
Try what I suggested :-)
--
You received this message because you are subscribed to the Google
Groups "Refinery CMS" group.
To post to this group, send email to refine...@googlegroups.com
To unsubscribe from this group, send email to
refinery-cms...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/refinery-cms?hl=en
http://www.refinerycms.com
Refinery pages extension is looking for a page with the url '/' to be the home page. So by telling the page titled "Home" that you want it to have the url '/' you're setting it as the definitive homepage as far as Refinery pages extension is concerned.
--