OSDN Git Service

fix
[pettanr/pettanr.git] / app / views / scroll_panels / _append_panel.html.erb
index 241bcf8..136ac11 100644 (file)
@@ -4,18 +4,18 @@
     <%= link_to author_icon(:object => panel.author, :size => 17), author_path(panel.author) %>
   </td>
   <td>
-    <%= link_to h(truncate(h(panel.caption), :length => 40)), :controller => 'stories', :action => :comic, :id => comic.id %>
+    <%= link_to h(truncate(h(panel.caption), :length => 40)), panel_path(panel) %>
   </td>
   <td>
     <%= l panel.updated_at %>
   </td>
   <td>
-    <% @story = Story.new :comic_id => comic.id, :panel_id => panel.id -%>
-    <%= form_for(@story) do |f| %>
-      <%= f.hidden_field :comic_id %>
+    <% @scroll_panel = ScrollPanel.new :scroll_id => scroll.id, :panel_id => panel.id -%>
+    <%= form_for(@scroll_panel) do |f| %>
+      <%= f.hidden_field :scroll_id %>
       <%= f.hidden_field :t %>
       <%= f.hidden_field :panel_id %>
-      <%= f.submit t('stories.comic.append') %>
+      <%= f.submit t('scroll_panels.append.panel') %>
     <% end %>
   </td>
 </tr>