# Call RJS from Another Folder

**URL:** <https://www.ruby-forum.com/t/call-rjs-from-another-folder/87056>\
**Category:** Rails\
**Created:** [February 27, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/call-rjs-from-another-folder/87056 "2007-02-27T20:56:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/8dc957/32.png) [@guest](https://www.ruby-forum.com/u/guest)\
**Post date:** [February 27, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/call-rjs-from-another-folder/87056/1 "2007-02-27T20:56:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![guest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/8dc957/32.png) [@guest](https://www.ruby-forum.com/u/guest)\
**Post date:** [February 28, 2007, 2:14am UTC](https://www.ruby-forum.com/t/call-rjs-from-another-folder/87056/2 "2007-02-28T02:14:01Z")

</div>

I use it like this:  
render :template =\>
