forked from ging/planet2012
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mejora de vistas para añadir comentarios
- Loading branch information
Marina González
committed
Apr 13, 2012
1 parent
32ad377
commit 5de9dd8
Showing
6 changed files
with
32 additions
and
8 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
<p> | ||
<%= comment.coment %> | ||
</p> | ||
|
||
<p> | ||
<%= link_to 'Destroy Comment', [comment.site, comment], | ||
:confirm => 'Are you sure?', | ||
:method => :delete %> | ||
</p> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
|
||
<p> | ||
<%= link_to 'Destroy Comment', [comment.site, comment], | ||
:confirm => 'Are you sure?', | ||
:method => :delete %> | ||
</p> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<%= form_for([@site, @site.comments.build]) do |f| %> | ||
<div class="field"> | ||
<%= f.label :coment %><br /> | ||
<%= f.text_area :coment %> | ||
</div> | ||
|
||
<div class="actions"> | ||
<%= f.submit %> | ||
</div> | ||
<% end %> |
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
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