diff options
author | mr <mr@mrautenberg.de> | 2011-09-21 11:16:28 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-09-21 11:16:28 +0200 |
commit | e967ffe75370d39d0928e440a9023e2da6e35ae3 (patch) | |
tree | 42068b975b9b0041b267958f691b7e55f0d030ab /application.rb | |
parent | 038c4563032f65f935f38ef6bffe426b2dd14c0c (diff) |
remove id from sort tab
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb index 12784f0..2b320e0 100644 --- a/application.rb +++ b/application.rb @@ -102,7 +102,7 @@ get '/models/?' do @models = ToxCreateModel.all.sort(:order => "#{order}") end else - params["sort_by"] = "id" + params["sort_by"] = "created_at" end @models = ToxCreateModel.all.sort(:order => "DESC") unless @models |