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
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