<%= form_tag({:controller => 'courses', :action => 'join', :object_id => course.id}, :remote => true, :method => :post, :id => 'new_join_course') do %>
请输入班级邀请码:
<%= text_field_tag 'invite_code', nil, :style=>'width:300px;'%>
确 定
取 消
<% end %>