Call RJS from Another Folder


#1

Does anyone know how to call an RJS template from a controller in one
directory, where the RJS template lives somewhere else? For example my
controller is /controllers/people_controller.rb, and my template lives
in /views/blah/create.rjs.

I tried render :file => but that doesn’t seem to work.

Thanks.


#2

I use it like this:
render :template =>