|
|
|
@ -149,8 +149,7 @@ class SoftapplicationsController < ApplicationController
|
|
|
|
|
respond_to do |format|
|
|
|
|
|
if @softapplication.save
|
|
|
|
|
ContestingSoftapplication.create(:contest_id => params[:contest_id], :softapplication_id => @softapplication.id)
|
|
|
|
|
format.js
|
|
|
|
|
format.html { redirect_to show_attendingcontest_contest_path(:id => params[:contest_id]) }
|
|
|
|
|
format.html { redirect_to show_attendingcontest_contest_path(:id => params[:contest_id]), notice: l(:notice_attendingcontest_work_successfully_created) }
|
|
|
|
|
# format.json { render json: @softapplication, status: :created, location: @softapplication }
|
|
|
|
|
else
|
|
|
|
|
format.js { render status: 406 }
|
|
|
|
|