<% if student_path%>
    <%= form_for('new_form',:url =>  {:controller => 'student_work',:action => 'set_score_rule',:homework => homework.id,:student_path => student_path},:method => "post") do |f|%>
        <% render :partial => 'student_work/set_score_rule_detail', :locals => {:homework => homework, :f => f}%>
    <% end%>
<% else %>
    <%= form_for('new_form',:url =>  {:controller => 'student_work',:action => 'set_score_rule',:homework => homework.id,:user_activity_id=>user_activity_id,:is_in_course=>is_in_course,:course_activity=>course_activity},:method => "post",:remote => true) do |f|%>
        <% render :partial => 'student_work/set_score_rule_detail', :locals => {:homework => homework, :f => f}%>
    <% end%>
<% end %>