# coding: utf-8 class TasksController < ApplicationController def index # created_at でソート @tasks = Task.all.sort{ |a, b| a.created_at <=> b.created_at } end def create task = Task.new(params[:task]) task.save redirect_to tasks_index_path, notice: 'Created New Task.' rescue AWS::Dynamo...
2013-03-07T06:51:41Z 6339 TID-ox29aw7a8 INFO: Booting Sidekiq 2.6.5 with Redis at redis://localhost:6379/0 2013-03-07T06:51:41Z 6339 TID-ox29aw7a8 INFO: Running in ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-darwin12.2.0] 2013-03-07T06:51:41Z 6339 TID-ox29aw7a8 INFO: See LICENS...
$ vim .gitignore # See http://help.github.com/ignore-files/ for more about ignoring files. # # If you find yourself ignoring temporary files generated by your text editor # or operating system, you probably want to add a global ignore instead: # git config --global core.excludesfile ~...
$ heroku create my-simple-todos Creating my-simple-todos... done, stack is cedar http://my-simple-todos.herokuapp.com/ | [email protected]:my-simple-todos.git Git remote heroku added