Tags
Friends
Links
Meta
Tag Archives: ActiveResource
ActiveResource and Basic HTTP Auth
Rails 2.0 is pushing Basic HTTP Auth. This is a great simple way to add auth to your app. But with ActiveResource 2.0.2, you define your site argument with your username and password in your URI. But… If the password … Continue reading
Making ActiveResource find work with your controller
By default, ActiveResource find wants to search your controllers with query string params. For example: Person.find(:all, :params => { :title => "CEO" }) Would hit the URL: /people?title=CEO To make this work, you’ll need to add something like the following … Continue reading
Using xml with the resource_controller plugin
If you’re using an ActiveResource client to access your Rails controller which is using the awesome resource_controller plugin RESTfully you’re going to need to enable xml respsonses (which aren’t enabled by default with the plugin). class ProductsController < ResourceController::Base # … Continue reading