Friday, January 20, 2006

How to get a collection?

The following code will get a collection from the database.
def edit
@site = Site.find(@params["id"])
@tags = Tag.find_all
end

0 Comments:

Post a Comment

<< Home

eXTReMe Tracker