修复点击某些贴吧提示数据不存在的404page not found bug

This commit is contained in:
chenmin 2014-08-18 15:53:25 +08:00
parent a7e066add8
commit 4ed9b13f0b
1 changed files with 2 additions and 2 deletions

View File

@ -71,8 +71,8 @@
<% end %>
<% when '5' %>
<% if Forum.find(params[:id]) %>
<% if Forum.find(params[:id]).creator_id == User.current.id %>
<% if Forum.find(obj.id) %>
<% if Forum.find(obj.id).creator_id == User.current.id %>
<span class='del'> <%= link_to 'x', :controller => "tags", :action => "remove_tag", :remote => true, :tag_name => tag,
:taggable_id => obj.id, :taggable_type => object_flag %> </span>