修复未登陆用户进入学校主页列表出错的问题

This commit is contained in:
sw 2014-07-04 08:42:00 +08:00
parent fd1f3b45c9
commit 7acf73c4ca
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@
<p>
<%= link_to "全部学校",school_index_path %>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<%= link_to '我的学校',school_course_list_path(User.current.user_extensions.school) %>
<%= link_to '我的学校',school_course_list_path(User.current.user_extensions.school) if User.current.logged? %>
</p>
<ul>
<li style="width: 40%; float: left">请选择省份: