diff options
Diffstat (limited to 'app/views/wiki/edit.rhtml')
-rw-r--r-- | app/views/wiki/edit.rhtml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/wiki/edit.rhtml b/app/views/wiki/edit.rhtml index b14bfb720..a140e2088 100644 --- a/app/views/wiki/edit.rhtml +++ b/app/views/wiki/edit.rhtml @@ -1,6 +1,6 @@ <h2><%=h @page.pretty_title %></h2> -<% form_for :content, @content, :url => {:action => 'update', :page => @page.title}, :html => {:multipart => true, :id => 'wiki_form'} do |f| %> +<% form_for :content, @content, :url => {:action => 'update', :id => @page.title}, :html => {:multipart => true, :id => 'wiki_form'} do |f| %> <%= f.hidden_field :version %> <%= error_messages_for 'content' %> @@ -10,7 +10,7 @@ <p><%= submit_tag l(:button_save) %> <%= link_to_remote l(:label_preview), - { :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :page => @page.title }, + { :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, :method => 'post', :update => 'preview', :with => "Form.serialize('wiki_form')", |