Mercurial > hg > soundsoftware-site
diff app/views/news/.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 | 40f7cfd4df19 |
children |
line wrap: on
line diff
--- a/app/views/news/.svn/text-base/edit.rhtml.svn-base Fri Sep 24 14:06:04 2010 +0100 +++ b/app/views/news/.svn/text-base/edit.rhtml.svn-base Fri Nov 19 13:24:41 2010 +0000 @@ -1,12 +1,12 @@ <h2><%=l(:label_news)%></h2> -<% labelled_tabular_form_for :news, @news, :url => { :action => "update" }, +<% labelled_tabular_form_for :news, @news, :url => news_path(@news), :html => { :id => 'news-form', :method => :put } do |f| %> <%= render :partial => 'form', :locals => { :f => f } %> <%= submit_tag l(:button_save) %> <%= link_to_remote l(:label_preview), - { :url => { :controller => 'news', :action => 'preview', :project_id => @project }, - :method => 'post', + { :url => preview_news_path(:project_id => @project), + :method => 'get', :update => 'preview', :with => "Form.serialize('news-form')" }, :accesskey => accesskey(:preview) %>