0
I have an application in Rails that just after loading the page Edit.html.haml rendering the layout returns me an error 500, the table in BD has only one record and is linked to the other table (credential/authorization system), I’m running the application in a bridge mode VM on linux Mint 17 Rebecca
Edit 1 follows the console output just after loading the roles:
Started GET "/clients/new" for 192.168.1.161 at 2015-03-12 18:28:23 -0300
Processing by ClientsController#new as HTML
User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
(0.1ms) BEGIN
(0.2ms) UPDATE `users` SET `last_request_at` = '2015-03-12 21:28:23', `perishable_token` = 'zJ6WIgsox0VkSEzRwGlr', `updated_at` = '2015-03-12 21:28:23' WHERE `users`.`id` = 2
(1.4ms) COMMIT
Role Load (0.1ms) SELECT `roles`.* FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 2 AND `roles`.`name` = 'admin' LIMIT 1
Rendered clients/_form.html.haml (5.9ms)
Rendered clients/new.html.haml within layouts/application (7.0ms)
Completed 500 Internal Server Error in 18ms
Rendered clients/_form.html.haml (3.3ms) Rendered clients/new.html.haml Within layouts/application (3.8ms) Completed 500 Internal Server Error in 17ms
– André Ventura
There’s nothing else on the console?
– Alex Takitani
has some mysql queries to check user, but are exactly the same for any other page, and only appears when it asks for the "_form" (new.erb.html page also gives this problem).
– André Ventura
Post your log on the question.
– Alex Takitani
edited with the log
– André Ventura
The console log is complete, so you can’t see the error.
– Alex Takitani
exact! after mysql querys (which are a 4 for authentication checking) this is ALL that appears. I checked user tables and roles and roles_users but there is no missing record, no merge that does not exist...
– André Ventura