Ruby on Rails
Wednesday, November 25, 2015
I deleted all the rows in the categories table and re-created the categories following the instructions in awesome_nested_set cheat sheet but still only a blank page loads Here's the latest from development.log ~ thanks
Started GET "/store/catalog/1" for 127.0.0.1 at 2015-11-25 20:01:20 -0500
Processing by StoreController#catalog as HTML
Parameters: {"id"=>"1"}
[1m [35mCategory Load (0.2ms) [0m SELECT `categories`.* FROM `categories` WHERE `categories`.`id` = 1 LIMIT 1
[1m [36mCACHE (0.0ms) [0m [1mSELECT `categories`.* FROM `categories` WHERE `categories`.`id` = 1 LIMIT 1 [0m [["id", "1"]]
[1m [35m (0.4ms) [0m SELECT COUNT(*) FROM `categories` WHERE (`categories`.`lft` >= 1) AND (`categories`.`lft` < 8) AND (`categories`.`id` != 1)
descendants count = 3
[1m [36mCategory Load (0.2ms) [0m [1mSELECT `categories`.* FROM `categories` WHERE (`categories`.`lft` >= 1) AND (`categories`.`lft` < 8) AND (`categories`.`id` != 1) ORDER BY `categories`.`lft` [0m
[1m [35mListing Load (0.2ms) [0m SELECT `listings`.* FROM `listings` WHERE `listings`.`category_id` = 2
[1m [36mListing Load (0.2ms) [0m [1mSELECT `listings`.* FROM `listings` WHERE `listings`.`category_id` = 3 [0m
[1m [35mListing Load (0.2ms) [0m SELECT `listings`.* FROM `listings` WHERE `listings`.`category_id` = 4
Rendered store/catalog.html.erb within layouts/store (7.8ms)
[1m [36mAdmin Load (0.2ms) [0m [1mSELECT `admins`.* FROM `admins` WHERE `admins`.`id` = 1 ORDER BY `admins`.`id` ASC LIMIT 1 [0m
Completed 200 OK in 113ms (Views: 109.3ms | ActiveRecord: 1.6ms)
-- Started GET "/store/catalog/1" for 127.0.0.1 at 2015-11-25 20:01:20 -0500
Processing by StoreController#catalog as HTML
Parameters: {"id"=>"1"}
[1m [35mCategory Load (0.2ms) [0m SELECT `categories`.* FROM `categories` WHERE `categories`.`id` = 1 LIMIT 1
[1m [36mCACHE (0.0ms) [0m [1mSELECT `categories`.* FROM `categories` WHERE `categories`.`id` = 1 LIMIT 1 [0m [["id", "1"]]
[1m [35m (0.4ms) [0m SELECT COUNT(*) FROM `categories` WHERE (`categories`.`lft` >= 1) AND (`categories`.`lft` < 8) AND (`categories`.`id` != 1)
descendants count = 3
[1m [36mCategory Load (0.2ms) [0m [1mSELECT `categories`.* FROM `categories` WHERE (`categories`.`lft` >= 1) AND (`categories`.`lft` < 8) AND (`categories`.`id` != 1) ORDER BY `categories`.`lft` [0m
[1m [35mListing Load (0.2ms) [0m SELECT `listings`.* FROM `listings` WHERE `listings`.`category_id` = 2
[1m [36mListing Load (0.2ms) [0m [1mSELECT `listings`.* FROM `listings` WHERE `listings`.`category_id` = 3 [0m
[1m [35mListing Load (0.2ms) [0m SELECT `listings`.* FROM `listings` WHERE `listings`.`category_id` = 4
Rendered store/catalog.html.erb within layouts/store (7.8ms)
[1m [36mAdmin Load (0.2ms) [0m [1mSELECT `admins`.* FROM `admins` WHERE `admins`.`id` = 1 ORDER BY `admins`.`id` ASC LIMIT 1 [0m
Completed 200 OK in 113ms (Views: 109.3ms | ActiveRecord: 1.6ms)
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a21a8351-25d4-4b70-a779-745b9c0514fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment