##// END OF EJS Templates
set default category_id instead of the object (#11665)...
set default category_id instead of the object (#11665) Rails 2.3 still has issues with synchronizing the association_id and association attributes of an object. That means, if you set the association with an object first and then just set the id afterwards, the object wins and the setting of the id gets lost. This is not an issue in Rails >= 3.1 anymore. Contributed by Holger Just. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.4-stable@10226 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r8868:b4630c03f732
r10043:14dcefaa97f9
Show More
_file.html.erb
18 lines | 453 B | text/plain | TextLexer
Jean-Philippe Lang
Move the file viewer to a partial....
r1505 <div class="autoscroll">
Jean-Philippe Lang
Replace the hardcoded "CodeRay" css class name for highlighted elements....
r3471 <table class="filecontent syntaxhl">
Jean-Philippe Lang
Move the file viewer to a partial....
r1505 <tbody>
<% line_num = 1 %>
Toshi MARUYAMA
Rails3: prevent double rendering file view and annotate on Rails 3.0.11 and Rails 3.1.3...
r8868 <% syntax_highlight_lines(filename, Redmine::CodesetUtil.to_utf8_by_setting(content)).each do |line| %>
Toshi MARUYAMA
code layout clean up app/views/common/_file.html.erb...
r7738 <tr>
<th class="line-num" id="L<%= line_num %>">
<a href="#L<%= line_num %>"><%= line_num %></a>
</th>
<td class="line-code">
Toshi MARUYAMA
Rails3: prevent double rendering file view and annotate on Rails 3.0.11 and Rails 3.1.3...
r8868 <pre><%= line.html_safe %></pre>
Toshi MARUYAMA
code layout clean up app/views/common/_file.html.erb...
r7738 </td>
</tr>
<% line_num += 1 %>
Jean-Philippe Lang
Move the file viewer to a partial....
r1505 <% end %>
</tbody>
</table>
</div>