取消主页加入课程链接

This commit is contained in:
sw 2014-08-01 14:36:41 +08:00
parent b8f27b51c0
commit 9e5f7e6fc6
3 changed files with 4 additions and 4 deletions

View File

@ -156,8 +156,8 @@ class SoftapplicationsController < ApplicationController
format.html { redirect_to show_attendingcontest_contest_path(:id => params[:contest_id]), notice: l(:notice_attendingcontest_work_successfully_created) } 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 } # format.json { render json: @softapplication, status: :created, location: @softapplication }
else else
format.js { render status: 406 } #format.js { render status: 406 }
format.html { render action: "new" } format.html { render action: "contests/show_attendingcontest" }
# format.json { render json: @softapplication.errors, status: :unprocessable_entity } # format.json { render json: @softapplication.errors, status: :unprocessable_entity }
end end
end end

View File

@ -11,7 +11,7 @@ class Softapplication < ActiveRecord::Base
belongs_to :project belongs_to :project
has_many :contests, :through => :contesting_softapplications has_many :contests, :through => :contesting_softapplications
validates_length_of :name, :maximum => 125 validates_length_of :name, :maximum => 25
validates_length_of :application_developers, :maximum => 125 validates_length_of :application_developers, :maximum => 125
validates_length_of :android_min_version_available, :maximum => 125 validates_length_of :android_min_version_available, :maximum => 125

View File

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