OSDN Git Service

t#30009:fix views
[pettanr/pettanr.git] / app / views / comics / show.html.erb
index f77abc2..83b669f 100644 (file)
@@ -1,18 +1,9 @@
+<h1>コミックの表示</h1>
 <p id="notice"><%= notice %></p>
 
 <p>
   <b>Title:</b>
-  <%= h @comic.title %>
-</p>
-
-<p>
-  <b>width:</b>
-  <%= @comic.width %>
-</p>
-
-<p>
-  <b>height:</b>
-  <%= @comic.height %>
+  <%= link_to h(@comic.title), :controller => 'stories', :action => :comic, :id => @comic.id %>
 </p>
 
 <p>
@@ -21,8 +12,8 @@
 </p>
 
 <p>
-  <b>author_id:</b>
-  <%= @comic.author_id %>
+  <b>author:</b>
+  <%= link_to h(@comic.author.name), author_path(@comic.author) %>
 </p>
 
 <p>
@@ -30,4 +21,6 @@
   <%= @comic.updated_at %>
 </p>
 
+<%= link_to 'edit', edit_comic_path(@comic) %>
+
 <%= link_to 'Back', comics_path %>