This project is archived and is in readonly mode.

#525 ✓committed
Paolo Angelini

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

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

Pages