Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

ActiveResource custom method #post broken

#525

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.

Reported by Paolo Angelini · July 1st, 2008 @ 04:25 PM

State: committed
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Repository
    Repository
    • 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...

    October 30th, 2008 @ 11:47 AM