Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Demo for a regression in Rails 3.1 with handling polymorphic associations on ActiveResource objects
Ruby JavaScript CoffeeScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
test
vendor
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Steps to reproduce:

  1. Start the app
  2. Navigate the http://localhost:3000/pictures/
  3. ...

Expected behavior

No exception or an execption because an activeresource was not configured, similar to following:

[2011-11-07 22:29:26] ERROR NoMethodError: undefined method `wrap_parameters' for ActionController::Base:Class
        config/initializers/wrap_parameters.rb:8

Observed behavior

An exception because a scoped method was called on an ActiveResource class:

NoMethodError in Pictures#index

Showing app/views/pictures/_picture.html.erb where line #1 raised:

undefined method `scoped' for Employee:Class

Notes

Check out branch rails-3.0 to test the behavior with Rails 3.0 (works).

Something went wrong with that request. Please try again.