Signed-off-by: alan <547533434@qq.com>
This commit is contained in:
parent
7ac14ba733
commit
1621599287
|
@ -778,6 +778,7 @@ class CoursesController < ApplicationController
|
|||
offset = @jours.count(:conditions => ["#{JournalsForMessage.table_name}.id > ?", params[:r].to_i])
|
||||
page = 1 + offset / @limit
|
||||
end
|
||||
@page = page.nil? ? "1" :page.to_s
|
||||
@jour = paginateHelper @jours,10
|
||||
@state = false
|
||||
respond_to do |format|
|
||||
|
|
|
@ -452,13 +452,6 @@ ActiveRecord::Schema.define(:version => 20150619060110) do
|
|||
|
||||
add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
|
||||
|
||||
create_table "discuss_demos", :force => true do |t|
|
||||
t.string "title"
|
||||
t.text "body"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
end
|
||||
|
||||
create_table "documents", :force => true do |t|
|
||||
t.integer "project_id", :default => 0, :null => false
|
||||
t.integer "category_id", :default => 0, :null => false
|
||||
|
|
Loading…
Reference in New Issue