Skip to content
richlewis14 edited this page Dec 13, 2012 · 1 revision

.find will return 1 record, for example

def show
@recipe = Recipe.find(params[:id])  
end

.where will return an array of results, for example

def show
@worldrecipes = Country.where(:attribute => params[:name])