summaryrefslogtreecommitdiffstats
path: root/app/controllers/news_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-11-23 20:09:57 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-11-23 20:09:57 +0000
commit3e0936606ec9f48030ecd85ecc7be899bac0ae3c (patch)
treeda66e93deb1c2ff29ed37769118771a26b8aa8c1 /app/controllers/news_controller.rb
parent8b7de1e400325bebc9f3a0a5f943307d649929e3 (diff)
downloadredmine-3e0936606ec9f48030ecd85ecc7be899bac0ae3c.tar.gz
redmine-3e0936606ec9f48030ecd85ecc7be899bac0ae3c.zip
Removed object name from form_for arguments.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7904 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/news_controller.rb')
-rw-r--r--app/controllers/news_controller.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/news_controller.rb b/app/controllers/news_controller.rb
index 492ca09a6..0d091396a 100644
--- a/app/controllers/news_controller.rb
+++ b/app/controllers/news_controller.rb
@@ -47,7 +47,10 @@ class NewsController < ApplicationController
:limit => @limit)
respond_to do |format|
- format.html { render :layout => false if request.xhr? }
+ format.html {
+ @news = News.new # for adding news inline
+ render :layout => false if request.xhr?
+ }
format.api
format.atom { render_feed(@newss, :title => (@project ? @project.name : Setting.app_title) + ": #{l(:label_news_plural)}") }
end