Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
missed the new folder of app/view/things
- Loading branch information
Jonathan Hoyt
authored and
Jonathan Hoyt
committed
Dec 12, 2008
1 parent
ef57ef6
commit 2eb84b4
Showing
4 changed files
with
51 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<h1>Editing attachment</h1> | ||
|
||
<% form_for(@attachment) do |f| %> | ||
<%= f.error_messages %> | ||
|
||
<p> | ||
<%= f.label :name %><br /> | ||
<%= f.text_field :name %> | ||
</p> | ||
<p> | ||
<%= f.submit "Update" %> | ||
</p> | ||
<% end %> | ||
<%= link_to 'Show', @attachment %> | | ||
<%= link_to 'Back', attachments_path %> |
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,20 @@ | ||
<h1>Listing attachments</h1> | ||
|
||
<table> | ||
<tr> | ||
<th>Name</th> | ||
</tr> | ||
|
||
<% for attachment in @attachments %> | ||
<tr> | ||
<td><%=h attachment.name %></td> | ||
<td><%= link_to 'Show', attachment %></td> | ||
<td><%= link_to 'Edit', edit_attachment_path(attachment) %></td> | ||
<td><%= link_to 'Destroy', attachment, :confirm => 'Are you sure?', :method => :delete %></td> | ||
</tr> | ||
<% end %> | ||
</table> | ||
|
||
<br /> | ||
|
||
<%= link_to 'New attachment', new_attachment_path %> |
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,15 @@ | ||
<h1>New attachment</h1> | ||
|
||
<% form_for(@attachment) do |f| %> | ||
<%= f.error_messages %> | ||
|
||
<p> | ||
<%= f.label :name %><br /> | ||
<%= f.text_field :name %> | ||
</p> | ||
<p> | ||
<%= f.submit "Create" %> | ||
</p> | ||
<% end %> | ||
<%= link_to 'Back', attachments_path %> |
Empty file.