On 9 May 2013 10:08, Mohit Sindhwani <[email protected]> wrote: > Hi! I'm trying to build a small client that connects to Redmine to get the > list of users attached to a project. > > Following the AR/ Rails conventions, I can get back all projects as: >> http://redmine/projects.xml >> http://redmine/users.xml > > and do searches such as: > http://redmine/issues.xml?limit=10&project_id=3 > > This works when it involves an attribute or belongs_to criteria. > > Can someone help me understand the URL that should be used when trying to > search on a HABTM criteria? > > For example, I want to know all the users on a project. But that > relationship is achieved through a HABTM table. Is there some default Rails > routing that covers this scenario?
It is not clear to me what your question is. Can you give a specific example (including the relationships between models) of exactly what you are trying to do? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

