Displaying 9 results from an estimated 9 matches for "execute_simple_calculation".
2006 Apr 20
1
has_many.count not accepting options hash
...:in `select_one''
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_recor
d/connection_adapters/abstract/database_statements.rb:16:in `select_value''
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_recor
d/calculations.rb:161:in `execute_simple_calculation''
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_recor
d/calculations.rb:141:in `calculate''
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_recor
d/calculations.rb:64:in `count''
from
c:/ruby/lib/ruby/gems/1....
2007 Oct 08
1
Rails reverses apostrophes
Hi,
I am quite new to Ruby on Rails so this might have a very simple
answer... My problem gives the following error message when I try to
call the count function for an item.
Mysql::Error: Unknown column ''TournamentTemplate'' in ''where clause'':
SELECT count(*) AS count_all FROM action_logs WHERE
(action_logs.loggable_id = 1 AND action_logs.loggable_type =
2006 Apr 06
7
[Fwd: Rails AR/Oracle Unit Test: [4185] failed]
So my automated script caught this issue, though I think my email
headers were bad, so rails-core has put the automated email on hold
pending "moderation".
I''ll fix that issue, and look at the one below as well.
-------- Original Message --------
Subject: Rails AR/Oracle Unit Test: [4185] failed
Date: Thu, 6 Apr 2006 08:32:04 -0700
From: Michael Schoen
2008 Nov 12
5
dynamic condition for has_one and eager loading issue
...1.15.3/lib/
active_record/calculations.rb:184:in `collect''
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/calculations.rb:184:in `construct_calculation_sql''
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/calculations.rb:212:in `execute_simple_calculation''
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/calculations.rb:121:in `calculate''
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/calculations.rb:117:in `catch''
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/li...
2006 Aug 11
0
count not working?
...lations.rb:160:in `add_limit!''
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/
lib/active_record/calculations.rb:160:in `construct_calculation_sql''
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/
lib/active_record/calculations.rb:165:in `execute_simple_calculation''
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/
lib/active_record/calculations.rb:144:in `calculate''
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/
lib/active_record/calculations.rb:66:in `count''
from /opt/local/lib/r...
2006 Jul 07
1
Pessimistic Locking Plugin Breaks ActiveRecord::Base.count()
...ulations.rb:156:in
`add_limit!''
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/calculations.rb:156:in
`construct_calculation_sql''
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/calculations.rb:161:in
`execute_simple_calculation''
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/calculations.rb:141:in
`calculate''
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/calculations.rb:64:in
`count''
from (irb):1
>>
-...
2006 Jul 05
2
Serialized object behaves weird
Hi!
I got a class named EinsatzFilter which I serialized to session. Before
saving to session it works afterwards I keep getting the message:
"undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from
ActiveRecord::Base inherited class.
Code:
class EinsatzFilter
include ApplicationHelper
attr_reader :personen, :monat, :projekte, :kunde
2007 Sep 03
11
MySQL has gone away
...39;
(druby://localhost:3009)
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/database_statements.rb:19:in
`select_value''
(druby://localhost:3009)
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:212:in
`execute_simple_calculation''
(druby://localhost:3009)
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:121:in
`calculate''
(druby://localhost:3009)
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:117:in
`catch''
(druby://lo...
2008 Apr 13
20
uninitialized constant
Hi guys, I''m part way through a RoR application, for some reason
whenever I add new controllers (using scaffold) I get an uninitialized
constant [name of controller] error.
The first few controllers work fine, the only thing I can see that I''ve
changed is the layout file (but scaffold creates a new layout for each
controller so can''t see that being the problem). You