This commit is contained in:
wanglinchun 2014-05-26 16:37:06 +08:00
parent b416d69639
commit 8d77c62359
3 changed files with 10 additions and 2 deletions

View File

@ -149,7 +149,8 @@ class SoftapplicationsController < ApplicationController
respond_to do |format|
if @softapplication.save
ContestingSoftapplication.create(:contest_id => params[:contest_id], :softapplication_id => @softapplication.id)
#ProjectingSoftapplication.create(:project_id => params[:project_id], :softapplication_id => @softapplication.id)
#ProjectingSoftapplication.create_softapplication_projecting(:project_id => params[:project_id], :softapplication_id => @softapplication.id)
#ProjectingSoftapplication.create_softapplication_projecting(@project.id, softapplication.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

View File

@ -0,0 +1,7 @@
class CreateProjectingSoftapplications < ActiveRecord::Migration
def up
end
def down
end
end

View File

@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20140522025721) do
ActiveRecord::Schema.define(:version => 20140526031949) do
create_table "activities", :force => true do |t|
t.integer "act_id", :null => false