Displaying 20 results from an estimated 4000 matches similar to: "activerecord: column named ''type'' silently ignore (pgsql)"
2006 Feb 02
8
How to get all selected rows in the mutli-selection listbox?
Hi,
I have created a multiple selection listbox with
rails, when I try to get the rows selected by user,
rails send back only the first one, how can I get the
other selected rows????
I created the listbox with the following function:
select_tag("form__list1",
options_for_select(["A","B","C","D"], selected = "A"),
html_options =
2006 Jan 25
9
connection_specification and adapter
Hi,
I wish to know, how those class work exactly, where
can I find the documentation? or can someone explain
to me how a connection is made via those class???
Thanks you very much!!!!
Saiho
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
2006 Feb 08
8
Strategies for Unit testing 2 databases
Hi,
My application spans 2 (or more) databases for some very specific
reasons... My models are working fine, even dynamically establishing
connections as needed at runtime, and spanning relationships across the
databases (which really impressed me). The problem is, I can''t seem to
force Units for these models (that use a secondary db) to load their
fixtures into and use the
2005 Dec 21
10
can an active records maps to N tables?
Hi,
Is it possbile that one active record maps to N
tables, actually the relation is 1 to 1, I wonder it
is possible.
also can a ruby object map to N tables, instead of an
active records?
Thanks you very much:)
Saiho
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
2005 Jun 06
1
iptables bug results in confusion
The current thread on the User''s List entitled "Multi-ISP in 2.4.0" includes
the following tcrules file:
############################################################################
##
#MARK SOURCE DEST PROTO PORT(S) CLIENT USER
TEST
# PORT(S)
201:P eth2 ppp1
2005 Dec 21
2
ActiveRecord Error with << in Collection
Hi
I get a following error:
ActiveRecord::AssociationTypeMismatch in Cmdb#create
ConfigurationItemAttributeValue expected, got Array
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/associations/association_collection.rb:128:in
`raise_on_type_mismatch''
2006 Jul 14
1
ActiveRecord, can it save more than one row at a time????
Hi,
I wonder if there is some fonctions which allow an
activeRecord to save more than one row at a time???
As I understand, when we create an object from
AC::Base, it represents one row of the table. So if I
want to save more than one row, I have to create the
object one by one and then save them one by one. If I
have 10, it is fine, but if I have more than 1000, so
it will a lot of time.... So
2006 Jan 17
6
database.yml and remote mysql database
I can''t seem to connect to a remote database. Here is what I''ve tried.
the database,username,password, and host have been changed to protect
the innocent.
development:
adapter: mysql
database: database
username: username
password: password
host: host
port: 3306
Here is the error
/usr/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 11, col 2:
`
2007 Jun 11
3
ActiveRecord::StatementInvalid error
Hi,
I have an application that is running fine on two different machines,
but when I ported the code to a third machine, it doesn''t seem to
work. More specifically, for users with a significant amount of info,
it seems to stop working. All the functionality seems to be working
properly on a small test set, but with a larger set I get the
following error:
AssociatedAp Load (0.000000)
2006 Mar 23
1
validations.rb of ActiveRecord - bug or misunderstanding?
Either I''m not understanding how things are used, or this might be a bug
in ActiveRecord. I''m using version 1.13.2.
In my version of activerecord/lib/active_record/validations.rb (the svn
trunk version is browsable at
http://dev.rubyonrails.org/browser/trunk/activerecord/lib/active_record/validations.rb
), I have:
def update_attribute_with_validation_skipping(name,
2006 Jan 28
3
App running fine on Webrick, ActiveRecord::ConnectionNotEstablished in lighttpd
My app runs fine on webrick, but I get a
ActiveRecord::ConnectionNotEstablished when I try to run it on
lighttpd. Here''s the app''s lighttpd config:
$HTTP["host"] =~ "(www\.)?mysite\.com" {
server.document-root = "/home/pergesuteore/public/"
server.error-handler-404 = "/dispatch.fcgi"
fastcgi.server = ( ".fcgi" =>
(
2006 Apr 14
1
CLOB handling in ActiveRecord 1.14.2
We recently switched to Rails 1.1.2, which includes the latest version
of ActiveRecord.
This version seems to have introduced an error with the handling of
non-binary large objects.
The OCI adapter in 1.13.2 seemed to have treated CLOB and BLOB
identically. The new Oracle adapter distinguishes between the two types
and gives CLOB a type of :text, where as BLOB are :binary
When it comes to
2006 Jan 14
1
(ActiveRecord::AdapterNotSpecified) Error
All,
I am on Mac OS X 10.4, went through all the installation steps for mysql
and ruby on rails. Now, I am getting this error when
trying to start webrick or when trying to create the tables:
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/
connection_adapters/abstract/connection_specification.rb:73:in
`establish_connection'': development database is not
configured
2006 Feb 21
2
ActiveRecord before_ callbacks question
Hi!
I need to set the primary key in a model and postgres table to something
different than id. View Edit and such works in the scaffolded
controller. However if I click in the controller below the list of data
onto New then I get an error message like this:
Showing app/views/admin/_form.rhtml where line #5 raised:
undefined method `nr_before_type_cast'' for
2008 Jan 19
1
yum install foobar, silently ignore the unknown foobar package -> Nothing to do
# yum install foobar
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do
Here is the output of my centos 4
# yum install foobar
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
No
2006 Jan 05
3
ActiveRecord model classes not allowed in :expects
Hi,
I have a strange problem while using WebService API which expects an
ActiveRecord derivate.
This is the code of the API ...
------
class HarvesterApi < ActionWebService::API::Base
api_method :send_measurand,
:expects => [{:measurand => Measurand}, {:eaiSystemName =>
:string}]
end
------
... and this of my Model
------
class Measurand < ActiveRecord::Base
2006 Jan 13
1
ActiveRecord: using with multiple threads/DB connections
Hi,
I''m totally new to Ruby and Rails and I''m trying to set up a prototype
web site. Unfortunately, I''m having problems with ActiveRecord using
multiple threads.
What I want to do is fairly simple. I have a Controller that receives
and saves data from the web in the DB, but once that''s done I want to
process this data in another thread and then save the
2006 Jan 16
2
ActiveRecord: table name with spaces?
Howdy.
I''m trying to work with a legacy SQL Server database where some of the
table names have spaces in them.
I''ve done set_table_name "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.
2006 Jan 19
0
Activerecord error
Could anyone please tell me what this error means, and how to fix it?
Thanks.
2 error(s) on assignment of multiparameter attributes
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1697:in
`execute_callstack_for_multiparameter_attributes''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1677:in
`assign_multiparameter_attributes''
2007 Dec 07
7
activerecord 2.0.1 gem
I have tried to install activerecord 2.0.1 both through gem update and
by manually downloading it and doing gem install. They both fail with
MANUAL:
C:\DRC\ruby>gem install activerecord-2.0.1
ERROR: Error installing gem activerecord-2.0.1[.gem]: buffer error
REMOTE:
R:\workzone\dwell-aware\trunk>gem update --source
http://gems.rubyonrails.com
Updating installed gems...
Attempting remote