Created
November 4, 2011 15:28
-
-
Save austinbv/1339588 to your computer and use it in GitHub Desktop.
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
<% | |
# all your comment stuff can go here | |
%> |
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
<% | |
# all the stuff to display a single task can go here | |
%> |
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
<% | |
# all the stuff to display a single member can go here | |
%> |
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
#... | |
def show | |
@new_tasks = tasks.newly_added_tasks | |
@new_comments = comments.newly_added | |
@pending_members = project_memberships.pending_joins | |
#... | |
end |
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
<% | |
# projects/show.html.erb | |
# ... | |
%> | |
<%= render partial: "new_task", collection: @new_tasks %> | |
<%= render partial: "new_comment", collection: @new_comments %> | |
<%= render partial: "pending_member", collection: @pending_members %> | |
<% | |
# ... | |
%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment