Displaying 3 results from an estimated 3 matches for "rmdowne".
Did you mean:
mdowle
2006 Jan 07
8
Using find_by_sql to get the sum of a column
Hello,
I was wondering if there was a method in Rails that returns the sum of a
column. For example, I have a column called ''score'' and writing a SQL
statement such a ''select sum(score) from table_name'' does return the sum
of the values in the column. In the past (not too long ago being a
newbie), I defined all sorts of methods only to discover that Rails
2006 Mar 31
2
A.R. Associations problem
Hello,
I''m learning A.R Associations by creating a simple forum that consists
of 3 tables: ahuthors, topics and posts. This is the schema:
class AddAuthorAndTopicAndPostTables < ActiveRecord::Migration
def self.up
create_table :authors do |t|
t.column :username, :string
t.column :email, :string
t.column :created_on, :datetime
end
create_table
2006 Feb 17
5
Rad Rails and rails console
Hello,
In learning Ruby on rails I became hooked on using the Console (ruby
script/console) to interact with models. I have been playing with
RadRails over the past week and haven''t figured out how to get a console
going (or if this feature is even available). Though documentation is
minimal, RadRails is fairly intuitive and overall a nice way to write
apps. I just can''t