I am new to RoR. I want to consume a restful service from a rails app which uses devise. Devise allows to authenticate on a number of attributes, not only one (e.g. username) as is commonly used. In this case the credentials consist of username, subdomain and password.
The examples for active resource authentication I have seen only use one attribute. How do I get the second one across?