Created
March 26, 2011 05:50
-
-
Save kracekumar/888054 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#post/add server log | |
Processing PostController#add (for 127.0.0.1 at 2011-03-26 11:19:43) [POST] | |
Parameters: {"commit"=>"► Publish Post", "action"=>"add", "authenticity_token"=>"A+JmgkBKiCxrpqk1H0n6HZJp6PnwaZFJCPjOp9N0jG0=", "controller"=>"post", "posts"=>{"title"=>"Python django", "content"=>"<p>Is django better</p>"}} | |
User Columns (1.2ms) SHOW FIELDS FROM `users` | |
User Load (0.1ms) SELECT * FROM `users` WHERE (`users`.`id` = 1) | |
CACHE (0.0ms) SELECT * FROM `users` WHERE (`users`.`id` = 1) | |
CACHE (0.0ms) SELECT * FROM `users` WHERE (`users`.`id` = 1) | |
privileges_users Columns (0.6ms) SHOW FIELDS FROM `privileges_users` | |
Privilege Load (0.1ms) SELECT * FROM `privileges` INNER JOIN `privileges_users` ON `privileges`.id = `privileges_users`.privilege_id WHERE (`privileges_users`.user_id = 1 ) | |
Post Columns (1.4ms) SHOW FIELDS FROM `posts` | |
CACHE (0.0ms) SELECT * FROM `users` WHERE (`users`.`id` = 1) | |
SQL (0.1ms) BEGIN | |
Post Create (0.2ms) INSERT INTO `posts` (`created_at`, `title`, `updated_at`, `content`, `author_id`) VALUES('2011-03-26 05:49:43', 'Python django', '2011-03-26 05:49:43', '<p>Is django better</p>', 1) | |
SQL (48.8ms) COMMIT | |
Rendering template within layouts/application | |
Rendering post/add | |
User Load (1.6ms) SELECT * FROM `users` WHERE (`users`.`id` = 1) | |
Reminder Load (0.1ms) SELECT * FROM `reminders` WHERE (recipient = '1') | |
Rendered layouts/_reminder_count (5.6ms) | |
Completed in 139ms (View: 26, DB: 54) | 200 OK [http://localhost/post/add] | |
#post/all | |
Processing PostController#all (for 127.0.0.1 at 2011-03-26 11:20:25) [GET] | |
Parameters: {"action"=>"all", "controller"=>"post"} | |
User Columns (0.9ms) SHOW FIELDS FROM `users` | |
User Load (0.1ms) SELECT * FROM `users` WHERE (`users`.`id` = 1) | |
CACHE (0.0ms) SELECT * FROM `users` WHERE (`users`.`id` = 1) | |
CACHE (0.0ms) SELECT * FROM `users` WHERE (`users`.`id` = 1) | |
privileges_users Columns (0.7ms) SHOW FIELDS FROM `privileges_users` | |
Privilege Load (1.0ms) SELECT * FROM `privileges` INNER JOIN `privileges_users` ON `privileges`.id = `privileges_users`.privilege_id WHERE (`privileges_users`.user_id = 1 ) | |
Rendering template within layouts/application | |
Rendering post/all | |
ActionView::TemplateError (You have a nil object when you didn't expect it! | |
You might have expected an instance of Array. | |
The error occurred while evaluating nil.each) on line #18 of app/views/post/all.rhtml: | |
15: | |
16: <div id="all_news"> | |
17: <ul> | |
18: <% for posts in @posts %> | |
19: <li><%= link_to posts.title, :controller=> 'post', :action=>'view',:id=>posts.id %> | |
20: <%end%> | |
21: </ul> | |
app/views/post/all.rhtml:18:in `_run_rhtml_app47views47post47all46rhtml' | |
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' | |
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' | |
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' | |
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start' | |
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' | |
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start' | |
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each' | |
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start' | |
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start' | |
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start' | |
Rendered rescues/_trace (48.4ms) | |
Rendered rescues/_request_and_response (0.4ms) | |
Rendering rescues/layout (internal_server_error) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment