Created
April 17, 2011 20:52
-
-
Save jkaflik/924459 to your computer and use it in GitHub Desktop.
This file contains 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
%p= site.id |
This file contains 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
@sites = current_user.sites.page( params[:page] ).per( 5 ) | |
#current_user provided by Devise (User model) |
This file contains 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
= render @sites | |
= paginate @sites |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment