Displaying 4 results from an estimated 4 matches for "rlnntfrnnmt15sufhrigw".
2005 Aug 23
10
Creating a simple sum (or: I suck at blocks!)
I''ve been hacking on this for awhile and am not even getting close.
Consider the following...
results = Sample.find(:all)
total_counter = results.each{|result| #Add together result.counter}
I just want to simply iterate through the list and sum the counter field
for each row into an aggregation. I could do it in a full for loop, but
is there a nice one liner I''m missing?
2005 Aug 22
2
Symbols as Parameters
Hey all,
I''ve been staring at the pickaxe, experimenting, and looking through
some of the Rails API but I can''t put this simple thing together. I
want to create a method that can have zero or more parameters and some
of those are symbols. A very simple example would look something like this:
find(options = {})
if options[:unique]
puts ''Do the unique
2005 Jul 25
0
Loading the Clipboard with Data
Hey all,
I have an app where it would be handy to load data into the clipboard.
I looked around on google and, while I found many discussions, they all
seemed very dated and/or hackish. Is there a clean way to get this
done? I am basically just looking to create a clickable element (just a
text link would work, or a form button, image, whatever) that can load
info that is statically
2005 Jul 16
14
Thoughts on Second-Tier Documentation
In the course of this argument, keep in mind that I think Rails is
making excellent progress in the development of documentation and
community. I am only trying to develop discussion of where we need to
go next.
A consistent theme we are seeing on this list, I believe, is frustration
caused by the lack of second-tier documentation. So far we have...
-- the various tutorials which are