additional functional tests, some controller fixes

This commit is contained in:
albert
2010-12-01 18:50:04 -05:00
parent 39dd2e277a
commit 976a25a6c6
19 changed files with 185 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
<div class="bans">
<div class="new">
<h1>Edit Ban</h1>
<%= render "form", :locals => {:ban => @ban} %>
<%= render :partial => "form", :locals => {:ban => @ban} %>
</div>
</div>

View File

@@ -12,7 +12,7 @@
<tbody>
<% @bans.each do |ban| %>
<tr id="ban-<%= ban.id %>">
<td><%= ban.user_name %></td>
<td><%= ban.user.name %></td>
<td><%= ban.expires_at %></td>
<td><%= ban.reason %></td>
<td>

View File

@@ -1,7 +1,7 @@
<div class="bans">
<div class="new">
<h1>New Ban</h1>
<%= render "form", :locals => {:ban => @ban} %>
<%= render :partial => "form", :locals => {:ban => @ban} %>
</div>
</div>

View File

@@ -2,7 +2,7 @@
<div class="show">
<h1>Show Ban</h1>
<ul>
<li><strong>User</strong>: <%= @ban.user_name %></li>
<li><strong>User</strong>: <%= @ban.user.name %></li>
<li><strong>Expires</strong>: <%= @ban.expires_at %></li>
<li><strong>Reason</strong>: <%= @ban.reason %></li>
</ul>