This week, we'll be covering the first of two parts on the relatively advanced topic on how to use the new plugins APIs in Rails 3 to extend the framework itself.
Link: railsdispatch.com
I have written about basic routing in Rails 3 over on the EngineYard blog before. This time, we’ll go through some of the more advanced examples of using routes. You’ll see how routes hook up with any Rack-compatible framework from a Rails application through routes. We’ll also see ho...
Next week, we’ll finish up generators by covering overriding default Rails generators like controller or scaffold. Next, we’ll cover the new ActionController API , which makes it dead-easy to implement components in Rails, like the cells plugin. Finally, we’ll show how you can hook no...
$ rails foo $ cd foo $ rails g scaffold User name:string invoke active_record create db/migrate/20100526195347_create_users.rb create app/models/user.rb invoke test_unit create test/unit/user_test.rb create test/fixtures/users.yml route resources :users invoke scaffold_controller crea...
The entire attack vector neatly fits into a tweet, and could easily get even smaller if space was as a bigger premium. If the user viewing this content is an admin user, the attacker just got the ability to masquerade as that admin user. This means that even content that will only app...
One of the more confusing parts of the prior ActionMailer API for new users was a number of mysterious methods you needed to use. These were methods that started with deliver_ or create_ and were not defined directly by the user but were instead dynamically generated by ActionMailer, ...