Closed elfassy closed 10 years ago
Need more info here. Can you provide the config/routes.rb
snippet causing this, and the entire stack trace of the error that gets thrown?
I get the same error, it happens when one of my api_version calls has the default: true flag set.
api_version(module: "v1", header: { name: "Accept", value: "application/vnd.example.com; version=1" }, default: true) do
resources :profiles
end
This appears to happen when you set one of your options as "header"...
When I set... it to path & default it works fine. it to header, path, & default it breaks. it to header & default it breaks.
@Altonymous Thanks for this. I still need more info to reproduce this locally (which I have been unable to do). Can you send along:
Gemfile
and Gemfile.lock
filesconfig/routes.rb
fileThanks.
These are the details you've asked for. the only change to produce the error is to point to the latest version of versionist instead of my repo.
https://gist.github.com/Altonymous/4173714adff004e8fb2f
Command: rails s
@Altonymous What version of Ruby are you using?
2.0.0
I've copied this configuration verbatim locally, and still cannot reproduce this error. Can you send the full stack trace of the error?
Did you change it so it wasn't pointing to my repo?
Yes I was pointed at the latest released version of versionist. Can you please send the whole stack trace of the error?
versionist 1.3.0 has been pushed to rubygems.org with this fix.
It also doesn't support
:as
option. (Rails 4, Ruby 2)