Displaying 8 results from an estimated 8 matches for "has_one_associ".
2008 Jan 24
1
Uploading files: wrong number of arguments (1 for 0)
I am trying to upload a file (pretty simple stuff right?), but keep
getting the argument error.
I have cross referenced what I have to prior uses and cannot find any
errors with what I have.
---------
/Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations/has_one_association.rb:18:in
`initialize''
/Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations/has_one_association.rb:18:in
`new''
/Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations/has_one_association.rb:18:in
`build''
/Library/Ruby/Gem...
2007 Dec 13
4
Attachment_fu problems on updates
On the creation of a member the member''s picture uploads as it should.
However, when updating the member, while selecting a new picture, an
error is thrown:
can''t convert nil into String
RAILS_ROOT: /Users/chris/Documents/Projects/Rails/CommunityCMS/trunk
Application Trace | Framework Trace | Full Trace
2009 Sep 09
1
Paperclip attachment to AWS - ActiveRecord::AssociationTypeMismatch Going Nuts!
...ion Trace | Framework Trace | Full Trace
c:/devlopment_tools/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/associations/association_proxy.rb:263:in
`raise_on_type_mismatch''
c:/devlopment_tools/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/associations/has_one_association.rb:52:in
`replace''
c:/devlopment_tools/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/associations.rb:1246:in
`graphic=''
c:/devlopment_tools/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/base.rb:2740:in
`send''
c:/devlopment_tools/...
2009 Sep 10
2
Paperclip attachment to AWS - ActiveRecord::AssociationTypeMismatch
...Trace | Framework Trace | Full Trace
c:/devlopment_tools/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/
lib/
active_record/associations/association_proxy.rb:263:in
`raise_on_type_mismatch''
c:/devlopment_tools/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/
lib/
active_record/associations/has_one_association.rb:52:in `replace''
c:/devlopment_tools/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/
lib/
active_record/associations.rb:1246:in `graphic=''
c:/devlopment_tools/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/
lib/
active_record/base.rb:2740:in `send''
c:/devlopment_to...
2007 Mar 26
5
Session trouble
...:order].delivery_location.save
When it gets to session[:order].delivery_location = delivery_location I
get the error
You have a nil object when you didn''t expect it!
The error occurred while evaluating nil.klass
/association_proxy.rb:147:in `raise_on_type_mismatch''
/associations/has_one_association.rb:44:in `replace''
/associations.rb:900:in `delivery_location=''
/delivery_locations_controller.rb:21:in `create''
my Order model has_one :delivery_location
my DeliveryLocation model belongs_to :order
Any suggestions would be awesome.
--
Posted via http://www.ruby-...
2005 Oct 27
0
has_one with Single Table Inheritance - NameError : uninitialized constant
....1/lib/active_record/associations/association_proxy.rb:11:in
`initialize''
g:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.1/lib/active_record/associations/belongs_to_association.rb:6:in
`initialize''
g:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.1/lib/active_record/associations/has_one_association.rb:5:in
`initialize''
g:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.1/lib/active_record/associations.rb:637:in
`new''
g:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.1/lib/active_record/associations.rb:637:in
`wishlist''
g:/ruby/lib/ruby/gems/1.8/gems/activerecord-1...
2008 May 16
0
attachment_fu and/or rmagick on osx -- weird error
...gickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/reflection.rb:129:in
`table_name''
/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations/has_one_association.rb:67:in
`construct_sql''
/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations/has_one_association.rb:6:in
`initialize''
/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i...
2008 Jan 16
0
[CruiseControl] RubyOnRails build 8649 failed
...106:in `save''
./test/../lib/active_record/transactions.rb:118:in `rollback_active_record_state!''
./test/../lib/active_record/transactions.rb:106:in `save''
./test/../lib/active_record/base.rb:577:in `create''
./test/../lib/active_record/associations/has_one_association.rb:10:in `create''
./test/../lib/active_record/associations/has_one_association.rb:83:in `new_record''
./test/../lib/active_record/base.rb:1702:in `with_scope''
./test/../lib/active_record/associations/has_one_association.rb:83:in `send''
./test/...