##// END OF EJS Templates
Rails3: model: user: use ::Query instead of Query...
Rails3: model: user: use ::Query instead of Query Test fails on Rails 3.0. <pre> Error: test_destroy_should_update_wiki_contents(UserTest): NoMethodError: undefined method `delete_all' for ActiveRecord::AttributeMethods::Query:Module app/models/user.rb:602:in `remove_references_before_destroy' test/unit/user_test.rb:298:in `test_destroy_should_update_wiki_contents' </pre> git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8140 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r7204:2a352a86b1d6
r8020:312ffe43c7ef
Show More
edit.html.erb
18 lines | 964 B | text/plain | TextLexer
<h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> &#187; <%=h @message.subject %></h2>
<% form_for :message, @message, :url => {:action => 'edit'}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
<%= render :partial => 'form', :locals => {:f => f, :replying => !@message.parent.nil?} %>
<%= submit_tag l(:button_save) %>
<%= link_to_remote l(:label_preview),
{ :url => { :controller => 'messages', :action => 'preview', :board_id => @board },
:method => 'post',
:update => 'preview',
:with => "Form.serialize('message-form')",
:complete => "Element.scrollTo('preview')"
}, :accesskey => accesskey(:preview) %>
<% end %>
<div id="preview" class="wiki"></div>
<% content_for :header_tags do %>
<%= stylesheet_link_tag 'scm' %>
<% end %>