Well, you can just pass the model class from your controller to the partial through an instance variable or (better) through :locals. But why not fetch the row in your controller and pass the actual object to the partial instead of it's class and id? Maybe I'm missing something....
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Partials and Models | 4 | 99 | July 14, 2008 | |
Partial :object vs instance var | 0 | 114 | October 17, 2007 | |
Controller class variables not available to method partials? | 0 | 97 | April 19, 2007 | |
Partial :object vs instance var | 3 | 119 | November 7, 2007 | |
undefined method `model_name in partial .. passing an Array as a collection | 6 | 437 | March 13, 2011 |