The README.md says using this with Rails should look like:
# config/application.rb
require 'rack/linkeddata'
class Application < Rails::Application
config.middleware.use Rack::LinkedData::ContentNegotiation
end
This works fine to get the middleware into the Rails stack, but it's not at all clear what to do from there. Returning an RDF::Enumerable from a controller action doesn't do the trick, and I can't find any good recommendations about how to give an arbitrary object as a response body. Is there a right way to do this we can get into the README?
The README.md says using this with Rails should look like:
This works fine to get the middleware into the Rails stack, but it's not at all clear what to do from there. Returning an
RDF::Enumerablefrom a controller action doesn't do the trick, and I can't find any good recommendations about how to give an arbitrary object as a response body. Is there a right way to do this we can get into the README?