From 84dd4ecbd4a0b5639eda9875306db6b501aba161 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 15 Feb 2012 22:49:03 +0000 Subject: route: split issue preview route to adding and editing "No route matches" error raises in "preview_issue_path" at app/views/issues/new.html.erb:35 on Rails 3.0.11 and Rails 3.1.3 new route format. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8886 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/journals/_notes_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/journals') diff --git a/app/views/journals/_notes_form.html.erb b/app/views/journals/_notes_form.html.erb index ef95f9df9..f1311ac3b 100644 --- a/app/views/journals/_notes_form.html.erb +++ b/app/views/journals/_notes_form.html.erb @@ -7,7 +7,7 @@ <%= call_hook(:view_journals_notes_form_after_notes, { :journal => @journal}) %>

<%= submit_tag l(:button_save) %> <%= link_to_remote l(:label_preview), - { :url => preview_issue_path(:project_id => @project, :id => @journal.issue), + { :url => preview_edit_issue_path(:project_id => @project, :id => @journal.issue), :method => 'post', :update => "journal_#{@journal.id}_preview", :with => "Form.serialize('journal-#{@journal.id}-form')", -- cgit v1.2.3