I'm trying to perform a simple find on a class but am having trouble
What I want to perform a dynamic find for each different user. The
user's location would be variable and I want to display all the
relevant venues for that user.
My code currently looks something like this:
@location = @current_user.location
@nearby_venues = Venue.find(:all, :conditions => location_id =
@location, :order => 'name')
This does not work however. I've tried changing the conditions
statement around a bit but with no luck.
If anybody could tell me how to perform this find, it'd really help me
Thanks in advance.