Strong parameters class PeopleController < ActionController::Base # throws ActiveModel::ForbiddenAttributes exception def create Person.create(params[:person]) end private # now it won’t! def person_params params.require(:person).permit(:name, :age) end end Monday, October 8, 12
class MyController < ActionController::Base include ActionController::Live def index 100.times { response.stream.write "hello world\n" } response.stream.close end end ActionController::Live Monday, October 8, 12
• 4.0.0: Easy upgrade, new features, new deprecations • 4.0.x: no new deprecations • 4.1.0: add features, remove deprecated stuff Monday, October 8, 12
“But what distinguishes the worst architect from the best of bees is this, that the architect raises his structure in imagination before he erects it in reality. ... Besides the exertion of the bodily organs, the process demands that, during the whole operation, the workman’s will be steadily in consonance with his purpose. This means close attention.” - Marx, Capital I, Chapter 7 Monday, October 8, 12