Forum: Ruby on Rails assert_template :partial don't work

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
4349a46c5faf5658a7240c22b3c4c21f?d=identicon&s=25 Bob Mundane (pgs)
on 2009-03-13 10:14
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 ?
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2009-03-13 11:09
(Received via mailing list)
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 Mundane <>
This topic is locked and can not be replied to.