Mercurial > hg > soundsoftware-site
diff app/views/wiki/.svn/text-base/edit.rhtml.svn-base @ 37:94944d00e43c
* Update to SVN trunk rev 4411
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 19 Nov 2010 13:24:41 +0000 |
parents | 513646585e45 |
children | cbce1fd3b1b7 |
line wrap: on
line diff
--- a/app/views/wiki/.svn/text-base/edit.rhtml.svn-base Fri Sep 24 14:06:04 2010 +0100 +++ b/app/views/wiki/.svn/text-base/edit.rhtml.svn-base Fri Nov 19 13:24:41 2010 +0000 @@ -1,6 +1,6 @@ <h2><%=h @page.pretty_title %></h2> -<% form_for :content, @content, :url => {:action => 'edit', :page => @page.title}, :html => {:multipart => true, :id => 'wiki_form'} do |f| %> +<% form_for :content, @content, :url => {:action => 'update', :id => @page.title}, :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %> <%= f.hidden_field :version %> <%= error_messages_for 'content' %> @@ -10,8 +10,8 @@ <p><%= submit_tag l(:button_save) %> <%= link_to_remote l(:label_preview), - { :url => { :controller => 'wiki', :action => 'preview', :id => @project, :page => @page.title }, - :method => 'post', + { :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, + :method => :post, :update => 'preview', :with => "Form.serialize('wiki_form')", :complete => "Element.scrollTo('preview')"