Last active
December 11, 2015 05:19
-
-
Save nacengineer/4551719 to your computer and use it in GitHub Desktop.
user login objects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <% @user.login_list.each do |n| %> | |
| <li><%= n %></li> | |
| <% end %> | |
| # chain this onto the object | |
| def self.last_five(id) | |
| where(:id => id).limit(5).sort('descending') | |
| end |
kasperlewau
commented
Jan 16, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment