summaryrefslogtreecommitdiffstats
path: root/app/views/news
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-20 15:13:48 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-20 15:13:48 +0000
commit3bc29e29e091b56bcffeb07ffb9c37c328525f99 (patch)
treec10fba5f35f636f74683aac8ee0d2840b2a17308 /app/views/news
parent1a4f5e87f2839fa2260deefd4d9a5c992ef860fe (diff)
downloadredmine-3bc29e29e091b56bcffeb07ffb9c37c328525f99.tar.gz
redmine-3bc29e29e091b56bcffeb07ffb9c37c328525f99.zip
Refactor: split NewsController#new into #new and #create methods.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4163 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/news')
-rw-r--r--app/views/news/index.rhtml2
-rw-r--r--app/views/news/new.rhtml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/news/index.rhtml b/app/views/news/index.rhtml
index 41e8bb355..2b53b7f72 100644
--- a/app/views/news/index.rhtml
+++ b/app/views/news/index.rhtml
@@ -7,7 +7,7 @@
<div id="add-news" style="display:none;">
<h2><%=l(:label_news_new)%></h2>
-<% labelled_tabular_form_for :news, @news, :url => { :controller => 'news', :action => 'new', :project_id => @project },
+<% labelled_tabular_form_for :news, @news, :url => { :controller => 'news', :action => 'create', :project_id => @project },
:html => { :id => 'news-form' } do |f| %>
<%= render :partial => 'news/form', :locals => { :f => f } %>
<%= submit_tag l(:button_create) %>
diff --git a/app/views/news/new.rhtml b/app/views/news/new.rhtml
index a4d29a0a9..74ae64ae8 100644
--- a/app/views/news/new.rhtml
+++ b/app/views/news/new.rhtml
@@ -1,6 +1,6 @@
<h2><%=l(:label_news_new)%></h2>
-<% labelled_tabular_form_for :news, @news, :url => { :controller => 'news', :action => 'new', :project_id => @project },
+<% labelled_tabular_form_for :news, @news, :url => { :controller => 'news', :action => 'create', :project_id => @project },
:html => { :id => 'news-form' } do |f| %>
<%= render :partial => 'news/form', :locals => { :f => f } %>
<%= submit_tag l(:button_create) %>