search for: basicobject

Displaying 8 results from an estimated 8 matches for "basicobject".

2012 Jan 21
4
why doesn't an instance of Object get Class's new instance method?
"Object is the root of Ruby''s class hierarchy. Its methods are available to all classes unless explicitly overridden." Wouldn''t Class class be at the root of the class hierarchy? After all, look at this: 1.9.2p290 :006 > Object.instance_of? Class => true Object is an instance of class, after all we can use one of Class'' instance methods on Object:
2007 Dec 24
2
backgroundrb script crashing on startup
...for backgroundrb now? I can''t figure any other reason it would fail... backgroundrb_server.log shows: ==> log/backgroundrb_server.log <== /usr/lib/ruby/site_ruby/1.8/active_support/dependencies.rb:264:in `load_missing_constant'': uninitialized constant ActionView::Helpers::BasicObject (NameError) from /usr/lib/ruby/site_ruby/1.8/active_support/dependencies.rb:453:in `const_missing'' from /var/www/apps/rpg/releases/20071224034514/vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb:1068 from /usr/lib/ruby/site_ruby/1.8/rubygems/cu...
2013 Nov 18
1
wrong number of arguements (1 for 0) on ActiveRecord::Base#send
...and returns it. It works great. So I can enter: m = Modeller.new(<params for connecting to db>) model = m.retrieve_model(''page'') And I get back a model called Page, connected to the database and ready to go. But a problem occurs when I try to call methods on it with BasicObject#send. I take a list of fields from a yaml file (user supplied) then attempt to update the fields with BasicObject#send. yaml file example - content: some content parent_id: 1 children_count: 0 etc. So my code ends up like this: model.send(''content'', ''...
2012 Sep 22
4
Class, Module, Object
>> reload! Reloading... => true >> puts Class < Module true => nil >> puts Module < Class false => nil >> puts Module < Object true => nil >> puts Object < Module false => nil >> Object.parent => Object The above indicates that the Class object instance inherits from the Module object instance and the Module object instance
2007 Oct 10
9
Rspec Textmate bundle errors
Hello all, Having a problem with the Rspec textmate bundle and having quizzed the guys in #textmate to no success about the errors, I''ve been suggested to try you guys! When I run the "Run Behaviour Description" command, I get the following errors: /Users/alastair/Library/Application Support/TextMate/Bundles/ RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:34:in
2007 Dec 20
0
Fwd: [ mocha-Patches-16424 ] Ruby 1.9 Compatibility
...yforge.org/tracker/?func=detail&atid=7479&aid=16424&group_id=1917 As of revision 206, thanks to Joshua Peek, trunk should be Ruby 1.9 compatible. Please let us know if you run into any problems. I can see some opportunities for simplifying some of the implementation e.g. using the new BasicObject class, but that can wait for now. -- James. http://blog.floehopper.org http://tumble.floehopper.org
2008 Jan 02
0
Re: RubyOnRails build 8525 failed
...committed by bitsweat on 2008-01-02 09:03:56 > db:sessions:clear task uses session_table_name method. Closes #10631 [Cheah Chu Yeow] > > M /trunk/railties/lib/tasks/databases.rake > > Revision 8523 committed by bitsweat on 2008-01-02 09:08:14 > Ruby 1.9 compat: add #raise to AS::BasicObject, fixup Duration argument error. Closes #10594. > > M /trunk/activesupport/lib/active_support/basic_object.rb > M /trunk/activesupport/CHANGELOG > M /trunk/activesupport/test/core_ext/duration_test.rb > M /trunk/activesupport/lib/active_support/duration.rb > > Revision 8...
2010 Feb 20
23
Rails 3 possible bug in Routing
Hi, I just ran into this ActionController::RoutingError and just wanted to check if someone can confirm this as a bug in the Rails 3 beta gem. config/routes.rb contains: get ''login'' => ''session#new'' post ''login'' => ''session#create'', :as => :login GET /login works fine: Started GET