Ok … I am having one more problem for you guyz …
Actually …
i am taking records into an array with command …
array = ModelName.find(:all, :conditions) …
And then again i have to give conditions on array records … which i can
access easily by for loop …
Can i do it … ?
Hemant B. wrote:
Done …
Thanks …
Hemant B. wrote:
Ok … I am having one more problem for you guyz …
Actually …
i am taking records into an array with command …
array = ModelName.find(:all, :conditions) …
And then again i have to give conditions on array records … which i can
access easily by for loop …
Can i do it … ?
if you put your solution down here, it would be useful for some one who
is looking for answers to similar challenges.
i just compiled an for loop for array like this …
for record in array
and then here had taken whatever i want … like record.id
end
May not be the best solution but its fine …
Cheers …
Rails L. wrote:
Hemant B. wrote:
Done …
Thanks …
Hemant B. wrote:
Ok … I am having one more problem for you guyz …
Actually …
i am taking records into an array with command …
array = ModelName.find(:all, :conditions) …
And then again i have to give conditions on array records … which i can
access easily by for loop …
Can i do it … ?
if you put your solution down here, it would be useful for some one who
is looking for answers to similar challenges.