search for: undefined_method

Displaying 5 results from an estimated 5 matches for "undefined_method".

2012 Oct 25
0
[Rails 3.2.8] ActiveSupport::BufferedLogger extension, undefined_method
I tried to extend it , with this class , loaded at config time : config.autoload_paths += Dir["#{config.root}/lib", "#{config.root}/lib/**/", "#{config.root}/app/inputs"] lib/extension.rb class ActiveSupport::BufferedLogger def detailed_error(e) error(e.message) e.backtrace.each{|line| error line } end end but calling it in my controller rescue
2006 Mar 04
1
active migration gives undefined_method ''string_to_binary''
has anyone ever seen that: c:\rails\test>rake migrate --trace (in c:/rails/test) ** Invoke migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute migrate rake aborted! undefined method `string_to_binary'' for ActiveRecord::ConnectionAdapters::ColumnDefinition:Class
2006 Sep 05
1
Named routes and current_page? incompatibility
...med route does not default to only_path = true like url_for. Therefore, the current_page? within link_to_unless_current() will not match. Apparently there is a recent alternative so that _path on all named routes is also provided with _url. I tried this (e.g. using public_path(...)) and got an undefined_method error. Does anyone know what package this _path on named routes addition is in? Didn''t say on the trouble ticket (http://dev.rubyonrails.org/ticket/4693). I''m using InstantRails, so probably need to update some Rails components. Also, I have not delved into the new routing c...
2008 Nov 03
1
concerned_with, and maybe require_dependency issues only when running specs?
...ot working is in other specs that end up using the user model, such as some controller specs, and view specs where things aren''t fully stubbed/mocked out. It seems like in those other specs, the User class doesn''t have "something_method" defined. (the failure message is undefined_method "something_method" for #<Class:0x243626c> Anybody have any ideas? I have a feeling it''s related to require_dependency or something, but I''m not really sure. I''ve turned on logging in require_dependency, and it seems like the files are being required. Any...
2011 Sep 26
2
undefined method `options' for #<EventMachine::HttpClien
Hi , I am writing a rake task to consume twitter stream API. The task contains the following code: consumer = OAuth::Consumer.new(CONSUMER_KEY, CONSUMER_SECRET, :site => ''http://twitter.com'') access_token = OAuth::AccessToken.new(consumer,ACCESS_TOKEN,ACCESS_TOKEN_SECRET) oauth_params = {:consumer => consumer, :token => access_token} EventMachine.run do # now,