Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Some Controller
- def something
- otheruser = 1
- otheruserurl = animals.find :url, :conditions => {:user_id = ?, otheruser}
- @user = User.find(params[:id])
- @show = @user.animals.find :all, :conditions => {:user_id = ?, @user, :url !=> otheruserurl}
- end
- find all and display @user url that are not equal to otheruser's url
Add Comment
Please, Sign In to add comment