Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
蜗可 committed Apr 29, 2014
1 parent e675686 commit 807cfba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
4 changes: 3 additions & 1 deletion app/controllers/loseweights_controller.rb
Expand Up @@ -49,7 +49,7 @@ def qqlogin
qquser.user_id=usr.id
qquser.save
session[:user] = usr
session[:uesr_detail]=qquser
session[:user_detail]=qquser
else
session[:user] = quser[0].user
session[:user_detail]=quser[0]
Expand Down Expand Up @@ -108,6 +108,8 @@ def index
end
puts 'session_user:'
puts session[:user]
puts 'session_user_detail:'
puts session[:user_detail]
@all_loseweights = Loseweight.where(:user_id=>session[:user].id).order('update_date,created_at')
@loseweights = Loseweight.where(:user_id=>session[:user].id).order('update_date desc').order('created_at desc').paginate(:page=>params[:page],:per_page => 7)
@data = []
Expand Down

0 comments on commit 807cfba

Please sign in to comment.