Displaying 20 results from an estimated 40000 matches similar to: "ActiveRecord::Base"
2008 Dec 28
7
2.2.2 simple_captcha upgrade error
So thanks to Craig, i got up and running on rails 2.2.2, though now i''m
dealing with a whole new can of worms. I''ve done a good bit o searching
and haven''t found any solid leads. I''m using the simple_captcha plugin
on my site, and all is well until i call that plugin.
http://www.pastie.org/347721
ActionView::TemplateError (undefined method
2013 Mar 16
7
Connection to PGSQL fails?
I have configured a new server and copied the dovecot-sql.conf file that works a different server to the new server... But when Dovecot tries to connect to the database, the
following error appears..:
Mar 16 22:28:25 smtp dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
Mar 16 22:28:25 smtp dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so
2006 Jul 24
7
[PATCH] Support for DB Clusters/Replication in ActiveRecord (RFC)
Skipped content of type multipart/alternative-------------- next part --------------
Index: connection_adapters/abstract/connection_specification.rb
===================================================================
--- connection_adapters/abstract/connection_specification.rb (revision 4617)
+++ connection_adapters/abstract/connection_specification.rb (working copy)
@@ -1,10 +1,21 @@
require
2005 Sep 14
1
maximum string length in RdbiPgSQL and in R
Because my problem involves the RdbiPgSQL package, I sent a message
similar to this one to the Bioconductor list. But while awaiting
moderator approval of my message (because I am not a member of that
list), it occurred to me to send it to R-help as the problem may be more
general than just RdbiPgSQL.
Here's my situation:
I have been using RdbiPgSQL successfully for a year or two. I
2016 Nov 02
2
how to install postgresql ip4r
on the old postgresql that comes with centos 6?
Ive asked google over and over and he wont tell me. :(
(im trying to install it as a requirement for NIPAP)
Jason
2008 May 30
9
find_by_sql without a model? how to do this?
Hi,
I''d like to do a "find_by_sql" without a model (e.g. <model
name>.find_by_sql("...")) as the results I get back are a once off special,
and I''m happy to handle them as an array. How do I do this?
"ActiveRecord::Base.find_by_sql(...)" does not seem to work?
Background - At the moment I''m doing within a model <model_name>,
2006 Jul 05
10
Scalable alternative to #find_all
Is there any scalable alternative to iterating all the records of a
certain model? #find_all seems to load everything into memory. With
500.000 records it will be a swap storm.
Pedro.
2006 Dec 14
8
ActiveRecord outside of rails
I have a few questions regarding using activerecord outside of rails.
Usage is with legacy databases, which gives rise to some of the
problems.
Probably the first, and most simple question though, is how to capture
the SQL log, with which I can hopefully figure the other stuff out.
I''m currently trying
ActiveRecord::Base.logger = Logger.new STDOUT
Based on random googles, but it
2007 Jan 04
2
postgres and asterisk
I need to retrieve my asterisk to retrieve a values from postgresql, i am
looking for some sort of application like *mysql*() app, I found one but it
is only available on Suse, is there any way for doing this?
Regards,
O.Youssef
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Apr 03
4
How to fake composite primary keys?
I know ActiveRecord doesn''t support composite primary keys, but I need to use
one, and I need it ASAP. I don''t need any composite foreign keys, luckily;
what I have is a table that stores old versions of rows in another table, so
the composite key is an id + date stamp. Would someone tell me a hack I can
use to support this?
--
View this message in context:
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)
2009 Nov 15
3
Database postgresql not able to start
i have installed database POSTGRESQL for storing call details. when i
restart database i get the error.
[root at localhost server]# psql -h
127.0.0.1 -U asterisk Password
psql: could not connect to server:
Connection refused
Is the server running on host "127.0.0.1" and
accepting
TCP/IP connections on port 5432?
THIS IS MY
/VAR/LIB/PGSQL/DATA/POSTGRESQL.CONF
# CONNECTIONS AND
2009 Sep 14
9
ActiveRecord::StatementInvalid (invalid date) with Oracle
Hello all. I am a novice Ruby on Rails programmer, starting my first
project using a legacy Oracle 10 database. Using ''reverse_scaffold'' I
have created the models/controllers/views for my existing Oracle
tables.
All seems to work well, using /model/index, /model/show for most of my
tables, *except* when one of the tables contains a Oracle ''date''
column, for
2007 Apr 10
2
postgres 7 - CentOS 4.4
Hi
Firstly apologies but i have to install an app that uses postgres but i
am more a MySQL/Oracle guy so i maybe doing something really wrong here..
I am following instructions for creating a DB user and encountering this
# createuser -ADP -U postgres foo
Enter password for new user:
Enter it again:
createuser: could not connect to database template1: FATAL: IDENT
authentication failed for
2005 Apr 27
4
has_many syntax
Hi all,
I have the following inside of an AR class definition:
relationships=ActiveRecord::Base.connection.select_all(my_relationships_sql)
relationships.each do |relationship|
has_many RelatedItems, :class_name => relationship[''RelatedClass''],
:foreign_key => relationship[''ForeignKey'']
end
This kind of works, but how can I assign the name of the
2011 Jan 06
4
Not able to insert value in rails console
I am using authlogic for authentication in rails 3.0.3 with ruby 1.9.2
Using activerecord-sqlserver-adapter (3.0.5)
windows with sqlserver database
when i create user details in rails console, i am getting below error,
>User.create(:login=>''test'',:password=>''test123'',:password_confirmation=>''test123'')
2011 Sep 18
9
Rails 3 and postgresql
I have a simple project created around a very, very simple database: one
main table packs with just three rows
Column | Type |
Modifiers
--------+-----------------------------+----------------------------------------------------
id | integer | not null default
nextval(''packs_id_seq''::regclass)
nombre | character
2007 Jul 14
1
performance bottleneck
I have got my database in Mysql. I used ferret to index a table with 10
million rows. On limiting the selection of data to 1000 initial retrieval,
it takes 200 seconds but for the whole table it took more than four hours
and after which i had to close my indexing application. I used the
StandardAnalyser for it. There is no problem from the database side as
retrieval of all the data in the table
2016 Nov 03
2
how to install postgresql ip4r
ok, so I removed the default postgresql install and installed it from
the software collections..
following the instructions at
https://www.softwarecollections.org/en/scls/rhscl/rh-postgresql95/
and I get this
[root at home1p /home/jason]$scl enable rh-postgresql95 bash
[root at HOME1P jason]# postgresql-setup --initdb
* Initializing database in
2006 Aug 15
2
has_many + finder_sql & :include
Hello,
In a model I have:
has_many :things, :finder_sql => '' select * from other_things '' +
'' where id = #{id} ''
When I do MyClass.find(:all, :include => :things) I get a weird error:
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract_adapter.rb:120:in