Issue #7071 has been updated by Andrew Forgue.
Thanks to a co-worker I can set `self.format = :json` and it seems to work as expected. I'm OK with rejecting it if setting the format to json is OK with PuppetLabs. ---------------------------------------- Feature #7071: Dashboard should support ActiveResource https://projects.puppetlabs.com/issues/7071 Author: Andrew Forgue Status: Needs Decision Priority: Normal Assignee: Nigel Kersten Category: Target version: Keywords: Branch: Affected URL: Affected Dashboard version: I would like to be able to use ActiveResource from other rails applications to modify dashboard data. Example: Our machine provisioning system should create the host in dashboard by using <pre> class Nodes < ActiveResource::Base self.site = "http://dashboard.domain.com" self.element_name = "nodes" end Nodes.new( ... ) </pre> Or removing a node with `Node.find(:id).delete` The current output is: <pre> >> Nodes.find(1) GET http://dashboard.domain.com/nodes/1.xml --> 406 Not Acceptable (1 12ms) ActiveResource::ClientError: Failed with 406 Not Acceptable </pre> ActiveResource needs XML, looks like the respond_to is only html, yaml, and json. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
