Skip to content

Documentation for Rails? #6

Description

@no-reply

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions