1.修改未配置页脚时进入首页报错的BUG

This commit is contained in:
sw 2014-10-15 11:31:21 +08:00
parent 4082dbed5b
commit 802c0ea565
2 changed files with 5 additions and 3 deletions

View File

@ -763,7 +763,7 @@ class ApplicationController < ActionController::Base
end
def find_web_footer
@organizer = WebFooterOrganizer.first
@organize = WebFooterOranizer.first
@companies = WebFooterCompany.all
end
end

View File

@ -10,8 +10,10 @@
<%= @organize.description.html_safe unless @organize.nil?%>
</p>
<div id="logo_link">
<% @companys.each do |company| %>
<span class="footer_logo_link"><%= link_to image_tag(url_to_avatar(company),:size=>"100x30",:alt=>company.name),company.url, :target => "_blank" %></span>
<% unless @companys.nil?%>
<% @companys.each do |company| %>
<span class="footer_logo_link"><%= link_to image_tag(url_to_avatar(company),:size=>"100x30",:alt=>company.name),company.url, :target => "_blank" %></span>
<% end %>
<% end %>
</div>
<!--gcm-->