Railsの変更点

2013-01-31

fc8f45a3c168ed5f0bc859e9f3a64e61cfe4b50a

*

2013-01-25

変更点見るのサボってた

2013-01-22

2013-01-21

 widget = Widget.new
 widget.things.build
 widget.things.empty? # => false

2013-01-18

2013-01-17

こんな書き方できるらしい。bookとnameのパラメータがないとエラーになる。

 class BooksController < ActionController::Base
   def create
     params.require(:book).require(:name)
     head :ok
   end
 end

2013-01-17 part 2

3daff0508bd93cfcbe8917e745a28f5a738fcdaa

- datetime = options[:selected] || value(object) || default_datetime(options)
+ datetime = options.fetch(:selected) { value(object) || default_datetime(options) }

2013-01-17 part3

 desc "Truncates all *.log files in log/ to zero bytes (specify which logs with LOGS=test,development)"

2013-01-16