search for: active_recor

Displaying 10 results from an estimated 10 matches for "active_recor".

Did you mean: active_record
2006 Apr 20
1
has_many.count not accepting options hash
...to use near ''includecourse))'' at line 1: SELECT count(*) AS count_ all FROM ap_requirements WHERE (ap_requirements.academic_program_id = 1 AND (con ditionscourses.name LIKE ''a%''includecourse)) from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_recor d/connection_adapters/abstract_adapter.rb:120:in `log'' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_recor d/connection_adapters/mysql_adapter.rb:185:in `execute'' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_recor d/conn...
2007 Feb 08
5
a possible bug in Has_many :through using :soucre
...ips.create :user => u Notice t he assignment of the object instead of the id field. The trickiest part of all this is that I get a really strange error message: ActiveRecord::AssociationTypeMismatch: User expected, got User from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2 /lib/active_recor d/associations/association_proxy.rb:148:in `raise_on_type_mismatch'' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2 /lib/active_recor d/associations/belongs_to_association.rb:22:in `replace'' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2 /lib/activ...
2007 Jan 16
3
odd error with sqlite3 adaptor
Any idea what would cause this? >> icps = Icp.find(:all) ActiveRecord::StatementInvalid: SQLite3::SQLException: unsupported file format: SELECT * FROM icps from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_recor d/connection_adapters/abstract_adapter.rb:120:in `log'' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_recor d/connection_adapters/sqlite_adapter.rb:137:in `execute'' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_recor d/conne...
2006 Apr 06
4
Record retrieval in Many-to-many using :through not working
...uot;symptom"=>"migraine"}> >> f.symptoms NameError: c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.0 /lib/active_support /dependencies.rb:89:in `const_missing'': uninitialized constant Symptoms from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0 /lib/active_recor d/base.rb:1242:in `compute_type'' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.0 /lib/active_suppo rt/dependencies.rb:120:in `const_missing'' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.0 /lib/active_suppo rt/dependencies.rb:122:in `const_missing...
2006 Dec 20
4
undefined method `fullname' for #<User:0x357e380>, BUT works on first view?
...</div> 9: <div class="comment_author"> 10: <%= comment.user.fullname -%> <%= time_ago_in_words(comment.created_at) -%> ago 11: </div> 12: <hr> 13: </div> /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4.5618/lib/active_recor d/base.rb:1848:in `method_missing'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4.5618/lib/active_recor d/associations/association_proxy.rb:123:in `send'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4.5618/lib/active_recor d/associations/association_proxy.rb:123:in...
2007 Nov 15
0
Problems connecting to remote Oracle DB on windows using active record
...y>ar_connect_ss.rb env.c:257:in oci8lib.so: ORA-12514: TNS:listener does not currently know of serv ice requested in connect descriptor (OCIError) from c:/ruby/lib/ruby/site_ruby/1.8/oci8.rb:228:in `initialize'' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/ active_recor d/connection_adapters/oracle_adapter.rb:585:in `new'' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/ active_rec If I change the adapter to ''oracle'' I get C:\rb-play>ar_connect_ss.rb env.c:257:in oci8lib.so: ORA-12154: TNS:could not resolve the co...
2006 Jan 16
2
ActiveRecord: table name with spaces?
...uot;tablename with spaces", but I can''t get find(:all) to work. I get the following error (because apparently it''s not putting [ ] around the name as is required for SQL Server for names with spaces. ------------------- c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_ adapters/abstract_adapter.rb:88:in `log'': DBI::DatabaseError: Execute (ActiveRec ord::StatementInvalid) OLE error code:80040E14 in Microsoft OLE DB Provider for SQL Server Incorrect syntax near the keyword ''all''. HRESULT error code:0x80020009...
2008 Sep 13
4
Setting up RoR with Postgresql ---heeellpp!
...adapters (ruby-postgres, activerecord-jdbcpostgresql-adapter, postgres-pr). I''ve tried writing adapter: postgresql in the .yml file. But when I try to run the server (ruby script/server), I get the following error msg: G:/program files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_recor d/connection_adapters/abstract/connection_specification.rb:232:in `establish_con nection'': Please install the postgresql adapter: `gem install activerecord-postg resql-adapter` (no such file to load -- pg) (RuntimeError) I try what this msg says, but it doesn''t work, it just says...
2007 Feb 07
3
Gem problem with ActiveRecord/Oracle (without rails)
...installed, the newest version of gems and the newest version of ActiveRecord. When I run the code I''m getting the follow error following my code. It seems to be an issue with gems as far as I can tell. Any help? Thanks, Drew Code: require ''ruby_gems'' require ''active_record'' ActiveRecord::Base::establish_connection( :adapter=>"oci", :host=>"***", :database=>"***", :user=>"***", :password=>"***") class Employee < ActiveRecord::Base set_table_name "EMPLOYEE" end Employ...
2006 Oct 13
3
Validation errors in has_one/belongs_to relationships.
...uot;quote_input_id"=>nil, "created_at"=>nil, "state"=>""}> >> ins.save! ActiveRecord::RecordInvalid: Validation failed: Name can''t be blank, Zip code co de is invalid from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_recor d/validations.rb:748:in `save!'' from (irb):97 from ♥:0 >> qi = QuoteInput.new => #<QuoteInput:0x36fb040 @new_record=true, @program_answers=[], @attributes={"p rogram_id"=>0, "updated_at"=>nil, "program_quote_input_type"=>...