This project is archived and is in readonly mode.

#349 ✓resolved
Gregg Kellogg

ActiveResource prefix_parameters don't update

Reported by Gregg Kellogg | June 5th, 2008 @ 11:15 PM

When changing prefix, ActiveResource should cause prefix_parameters to be re-calculated. For example:

Model.prefix = "/prefix/:prefix_id"

Model.create(:name => "foo", :prefix_id => 1)

should create using /prefix/1/model, but :prefix_id is not set.

Simple one-line change to ActiveResource::Base::prefix=;

@prefix_parameters = nil # Cause prefix_parameters to be re-evaluated # GK 5-Jun-2008

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Referenced by

Pages