Error 500 when accessing the edit page, ruby 1.9.2, rails 3.2.13

0

I have an application in rails that immediately after loading the edit.html.haml page rendering the layout gives me a 500 error, the table in the DB has only one record and is linked to another table (credentials / authorization system) I'm running the application in a bridge-mode VM on linux mint 17 rebecca

edit 1 follows the console output right after the roles are loaded:

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
    
asked by anonymous 23.02.2015 / 19:31

2 answers

1

Sorry for the inconvenience, in this particular case, due to some reason mine debug screen not working properly could not diagnose that, the problem was the route method "_path ()", grateful for everyone's attention. p>     

16.03.2015 / 19:24
0

It will not be possible to help you without knowing exactly what the error in the code is. It looks like you're running the server in production mode so the debug does not appear on the page.

I suggest running the server in dev mode and posting the error it gave.

To do this: rails server RAILS_ENV = development

    
06.03.2015 / 00:23