Displaying 1 result from an estimated 1 matches for "some_other_vari".
2008 Feb 01
5
ActiveRecord - find
...say
the column is called my_column, and store the result in an array,
which it should be, right?
For example, if I do:
@my_arr = Model.find(:all, :select => "my_column")
This should fill @my_arr with all the values from "my_column", right?
So then I can access the data by some_other_variable = @my_arr[0], or
do I have to reference this as an object and do something like
some_other_variable = @my_arr.my_column?
Sorry, having a hard time getting this to work.
Thanks for your help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subsc...