Patrick A. wrote:
I have an activeresource model Profile:
class Profile < ActiveResource::Base
I used to do Profile.new and this returned an object with all the
Profile attributes but since newer versions of edge I don’t get the
attributes anymore. Is this normal? is there a new way to get
thanx in advance
ActiveResource has been removed from the Rails Core in favor of REST.
It took me quite a while to get my head around this decision, but I now
agree with it. ActiveResource is supposedly being broken out into a
plugin, but I don’t know if that has happened yet. Options are:
- Revert to the Stable Branch of Rails.
- If the plugin exists, install it.
- Use a RESTful function instead.
If I where you, and no one else was using your app yet, (If they were
you’d be avoiding the untested code in Edge right? I’d seriously
take a look at option 3.