codegram/rack-webconsole

UI issues

gucki opened this issue · 5 comments

Hey!

I like really like the idea and so just tested it using an existing rails 3.0.9 project.

However I have the following problems:

  1. The console is always shown. Pressing the ' key does not change anything (wouldnt ^ be a better key anyway?).
  2. The console layer has no scrollbar.

Other than that it seems to be working just fine :)

txus commented

When the console is always shown, it usually means there are JavaScript errors and it's not working at all. Could you please check this with Firebug or some other browser JS debugger? Thanks!

txus commented

Also, does your application load JQuery? If not, you can make Rack::Webconsole inject jquery automatically for its purposes from an initializer for example, with this line:

Rack::Webconsole.inject_jquery = true

@txus Yeah, we use jquery (v1.5.2). I tried with 0.0.5 and just upgraded to 0.1.0, but both dont work. There are no javascript errors. I'll try to investigate... :)

txus commented

Can you please confirm that there is a javascript tag just before the end of the body tag in your HTML source code? Maybe the JS is not injecting properly...

@txus Ok, I think I found the bug. Pull request is here: #13