I filed a bug report on rails/rails, and several people chipped in to help me locate the solution. Sprockets 3 is simultaneously greedy about the /assets route and silent about that fact. Adding this config statement:
Rails.application.config.assets.prefix = '/the-other-assets'
lets you get on with life when your model is named Asset.
Walter
On May 3, 2015, at 11:56 AM, Hassan Schroeder <hassan.schroeder@gmail.com> wrote:
> On Sun, May 3, 2015 at 8:39 AM, Walter Lee Davis <waltd@wdstudio.com> wrote:
>
>> That doesn't jibe with what I am seeing in the rest of the application. I can GET them, and they go all the way through Rails, I can index them, and I can POST to the collection and create a new asset. It's just PATCH and PUT on the individual asset object that are affected.
>
> Have you tried this running Thin in `trace` or `debug` mode? That
> might be enlightening.
>
> A simple test case to repro would be helpful, too.
>
> --
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
> http://about.me/hassanschroeder
> twitter: @hassan
> Consulting Availability : Silicon Valley or remote
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yD6GCtyjRkQKA2%3DEbFGmXNBmNFxCmPCMjcbTMtw2VAXcQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5E2D43D2-9CC8-442A-86F8-276F0A5BF502%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment