]> source.dussan.org Git - redmine.git/commitdiff
rename .rhtml to .html.erb of app/views/news/edit.rhtml.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 30 Aug 2011 14:15:22 +0000 (14:15 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 30 Aug 2011 14:15:22 +0000 (14:15 +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@6811 e93f8b46-1217-0410-a6f0-8f06a7374b81

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

diff --git a/app/views/news/edit.html.erb b/app/views/news/edit.html.erb
new file mode 100644 (file)
index 0000000..0d44bfb
--- /dev/null
@@ -0,0 +1,18 @@
+<h2><%=l(:label_news)%></h2>
+
+<% 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 => 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>
+
+<% content_for :header_tags do %>
+  <%= stylesheet_link_tag 'scm' %>
+<% end %>
diff --git a/app/views/news/edit.rhtml b/app/views/news/edit.rhtml
deleted file mode 100644 (file)
index 0d44bfb..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<h2><%=l(:label_news)%></h2>
-
-<% 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 => 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>
-
-<% content_for :header_tags do %>
-  <%= stylesheet_link_tag 'scm' %>
-<% end %>