question,
using aaa and fetching all records that belong to a user, is
current_user.login what is use?
for example if user has_many notes, notes belong_to user…
@usernotes = Note.find(:all, :conditions => [“user_id = ?”,
current_user.id
])
question,
using aaa and fetching all records that belong to a user, is
current_user.login what is use?
for example if user has_many notes, notes belong_to user…
@usernotes = Note.find(:all, :conditions => [“user_id = ?”,
current_user.id
])
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs