]> source.dussan.org Git - redmine.git/commitdiff
rename .rhtml to .html.erb of app/views/news/new.rhtml.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 30 Aug 2011 14:14:37 +0000 (14:14 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 30 Aug 2011 14:14:37 +0000 (14:14 +0000)
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6810 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/news/new.html.erb [new file with mode: 0644]
app/views/news/new.rhtml [deleted file]

diff --git a/app/views/news/new.html.erb b/app/views/news/new.html.erb
new file mode 100644 (file)
index 0000000..946646e
--- /dev/null
@@ -0,0 +1,14 @@
+<h2><%=l(:label_news_new)%></h2>
+
+<% labelled_tabular_form_for :news, @news, :url => project_news_index_path(@project),
+                                           :html => { :id => 'news-form' } do |f| %>
+<%= render :partial => 'news/form', :locals => { :f => f } %>
+<%= submit_tag l(:button_create) %>
+<%= link_to_remote l(:label_preview), 
+                   { :url => preview_news_path(:project_id => @project),
+                     :method => 'get',
+                     :update => 'preview',
+                     :with => "Form.serialize('news-form')"
+                   }, :accesskey => accesskey(:preview) %>
+<% end %>
+<div id="preview" class="wiki"></div>
diff --git a/app/views/news/new.rhtml b/app/views/news/new.rhtml
deleted file mode 100644 (file)
index 946646e..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<h2><%=l(:label_news_new)%></h2>
-
-<% labelled_tabular_form_for :news, @news, :url => project_news_index_path(@project),
-                                           :html => { :id => 'news-form' } do |f| %>
-<%= render :partial => 'news/form', :locals => { :f => f } %>
-<%= submit_tag l(:button_create) %>
-<%= link_to_remote l(:label_preview), 
-                   { :url => preview_news_path(:project_id => @project),
-                     :method => 'get',
-                     :update => 'preview',
-                     :with => "Form.serialize('news-form')"
-                   }, :accesskey => accesskey(:preview) %>
-<% end %>
-<div id="preview" class="wiki"></div>