dymanic changes for model name

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....