<% if @canShowCode %> <%= link_to '添加成员', search_not_group_member_course_path(@course,:group_id => @group.id),:remote => true, :class => "sy_btn_green fl mr10" %> <% else %> <%= join_in_course_group(@course,@group, User.current) %> <% end %>