search for: dc7d5b98

Displaying 1 result from an estimated 1 matches for "dc7d5b98".

Did you mean: cd7d5b08
2006 Feb 02
3
What is best way to show only records belonging to logged user?
Hi all, What is best way to show only records belonging to logged user? I understand that it is better to handle this in model and not controller. I am thinking of intercepting find methods in model and add clause something like "WHERE id_user = #{user_id}". I would like to hear if you would do it likewise and if yes is it better to hack find_by_sql() or find() method? thanks in