add edit function

This commit is contained in:
Rueshyna authored and chris committed 2012-11-21 07:37:43 +08:00
1 parent a3edebce6a
commit d7599f1ccf
6 files changed
+116 -119

No files matched your search

@@ -1,2 +1,3 @@
<h1>Desktop::JournalPages#edit</h1>
<p>Find me in app/views/desktop/journal_pages/edit.html.erb</p>
<%= form_for @writing_journal, url: desktop_journal_page_path(@writing_journal) do |f| %>
<%= render partial: 'desktop/journal_pages/form', locals: {:f => f} %>
<%end%>
+1 -1
View File
@@ -1,3 +1,3 @@
<%= form_for @writing_journal, url: desktop_journal_pages_path do |f| %>
<%= form_for @writing_journal, html: { multipart: true } , url: desktop_journal_pages_path do |f| %>
<%= render partial: 'desktop/journal_pages/form', locals: {:f => f} %>
<%end%>