# HG changeset patch # User Sarun Intaralawan # Date 2014-08-19 10:10:29 # Node ID 78c0ae82a8edf63f67a82aca819a231c749b1d30 # Parent 686426417ab01bdd381b2586965d3b2a5d0bae11 Update rails version to '3.2.19' to compensate with issue stated by nattee on pull request #4 of cafe-grader-judge-scripts, add view of list_all action diff --git a/Gemfile b/Gemfile --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,6 @@ source 'https://rubygems.org' -gem 'rails', '3.2.8' +gem 'rails', '3.2.19' # Bundle edge Rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git' diff --git a/app/views/messages/list_all.html.haml b/app/views/messages/list_all.html.haml new file mode 100644 --- /dev/null +++ b/app/views/messages/list_all.html.haml @@ -0,0 +1,13 @@ += user_title_bar(@user) + +%h1 Console: all messages + += link_to '[active messages]', :action => 'list_all' + +%table + %tr + %th From + %th When + %th Message + %th + = render :partial => "short_message", :collection => @messages