Assert_template :partial don't work

Hi, following the documentation at
assert_template should accept :partial options

eg. assert_templace :partial => ‘_foo’

But, here with Rails 2.2.2, I get an error
TypeError: wrong argument type Hash (expected Regexp)

Am I the only one to have this problem ?

The documentation appears to be incorrect, Rails 2.2.2 expects the name
the template (or regexp) as the first arg.

I suspect the documentation relates to Rails 2.3. Can someone confirm

Is there any way of determining which version of Rails the docs in relate to?

2009/3/13 Bob M. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs