Updated to work with Rails 4 and Ruby 2, including strong parameters.