Skip to content

undefined method `source' for "GET":String  #26

@jbnunn

Description

@jbnunn

I've setup my routes file as you have in the README example (with the exception of changing the mount location--see below), but when I try to visit that, I get the error

undefined method `source' for "GET":String

My mount line (set in routes.rb) is:

mount ApiTaster::Engine => "/console" if Rails.env.development?

Trace shows:

api_taster (0.5.0) lib/api_taster/route.rb:48:in `block in normalise_routes!'
api_taster (0.5.0) lib/api_taster/route.rb:37:in `each'
api_taster (0.5.0) lib/api_taster/route.rb:37:in `normalise_routes!'
api_taster (0.5.0) lib/api_taster/route.rb:20:in `map_routes'
api_taster (0.5.0) app/controllers/api_taster/routes_controller.rb:28:in `map_routes'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions