Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rack::Webconsole.key_code = "231" Rack::Webconsole.key_code = "231" #43

Open
grigio opened this issue Jan 15, 2012 · 10 comments
Open

Rack::Webconsole.key_code = "231" Rack::Webconsole.key_code = "231" #43

grigio opened this issue Jan 15, 2012 · 10 comments
Assignees

Comments

@grigio
Copy link

grigio commented Jan 15, 2012

I tried to put it in an initializer but it seems the .key_code method doesn't exist. How is possible to overrife it?
thanks

@txus
Copy link
Member

txus commented Jan 15, 2012

What version are you using?

@grigio
Copy link
Author

grigio commented Jan 16, 2012

rack-webconsole (0.1.2)

@grigio
Copy link
Author

grigio commented Jan 16, 2012

Rack::Webconsole.method_defined? 'key_code'
=> false

I tried with "rails c" an it seems it doesn't exist. If I switch to the american keyboard the webconsole works.

@txus
Copy link
Member

txus commented Jan 18, 2012

If you use respond_to?, it returns true.

Rack::Webconsole.method_defined?("key_code") #=> false
Rack::Webconsole.respond_to?(:key_code) #=> true

Would you paste the initializer you were writing? Thanks.

@grigio
Copy link
Author

grigio commented Jan 19, 2012

I tried both in rails console an I get false for both.

rails s
=> Booting WEBrick
=> Rails 3.1.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server

Exiting
/Users/grigio/Code/opentalk/config/initializers/00_rails_config.rb:5: undefined method `key_code=' for Rack::Webconsole:Class (NoMethodError)

Inside 00_rails_config.rb I've:

RailsConfig.setup do |config|
  config.const_name = "Configs"
end

Rack::Webconsole.key_code = "231"

@ghost ghost assigned txus Sep 14, 2012
@txus
Copy link
Member

txus commented Sep 14, 2012

I'll try to reproduce it locally and fix it.

@OneDivZero
Copy link

Yes I'm having exactly the same problem. Any other simple way to configure a default key_code ?

@SeriousM
Copy link

same problem here :(

@ismarsantos
Copy link

same problem here.

"undefined method `key_code=' for Rack::Webconsole:Class (NoMethodError)

About your application's environment
Ruby version 1.9.3 (x86_64-linux)
RubyGems version 1.8.24
Rack version 1.4
Rails version 3.2.13
JavaScript Runtime Node.js (V8)
Active Record version 3.2.13
Action Pack version 3.2.13
Active Resource version 3.2.13
Action Mailer version 3.2.13
Active Support version 3.2.13
Middleware ActionDispatch::Static, Rack::Lock, #ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x0000000345b4f8, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Reloader, ActionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, ActionDispatch::Head, Rack::ConditionalGet, Rack::ETag, ActionDispatch::BestStandardsSupport, Warden::Manager, Rack::Webconsole
Application root /home/ismar/finance
Environment development
Database adapter sqlite3
Database schema version 20130422151531

@txus
Copy link
Member

txus commented Sep 19, 2013

Still no idea what's going on. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants