This project is archived and is in readonly mode.
ActiveResource custom method #post broken
Reported by Paolo Angelini | July 1st, 2008 @ 04:25 PM | in 2.x
ActiveResource custom method #post doesn't work as described in docs.
class Person < ActiveResource::Base
self.site = "http://37s.sunrise.i:3000"
end
Person.new(:name => 'Ryan).post(:register) # POST /people/new/register.xml
# => { :id => 1, :name => 'Ryan' }
Due to a wrong check in method, it posts an empty string.
Comments and changes to this ticket
-
Repository October 30th, 2008 @ 11:47 AM
- State changed from new to committed
(from [dffc2e2b64c89fdb0303bd18eccc7351ed0a0a58]) Fixed that ActiveResource#post would post an empty string when it shouldn't be posting anything (Paolo Angelini) [#525 state:committed] http://github.com/rails/rails/co...
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
Attachments
Referenced by
- 525 ActiveResource custom method #post broken (from [dffc2e2b64c89fdb0303bd18eccc7351ed0a0a58]) Fixed t...