# \<script type="text/javascript\> inside partial not being rendered

**URL:** <https://www.ruby-forum.com/t/script-type-text-javascript-inside-partial-not-being-rendered/184113>\
**Category:** Rails\
**Created:** [February 25, 2010, 10:30am UTC](https://www.ruby-forum.com/t/script-type-text-javascript-inside-partial-not-being-rendered/184113 "2010-02-25T10:30:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferblape](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/73ab20/32.png) [@ferblape](https://www.ruby-forum.com/u/ferblape)\
**Post date:** [February 25, 2010, 10:30am UTC](https://www.ruby-forum.com/t/script-type-text-javascript-inside-partial-not-being-rendered/184113/1 "2010-02-25T10:30:13Z")

</div>

Hello

I use a “link\_to\_remote” inside my view to call an action and update a  
div.  
In the action, inside my controller, I use a “render :partial =\>  
‘partial\_name’” to fill the div with content.

Inside that partial there is a lot of text and ruby things (which works)  
and  
a \<script type="text/javascript\> block, that is simply not being  
rendered.  
Everything before and after that block is rendering just fine, but the  
script tag and everything inside is not showing up in my view!

Am I doing something wrong?

Thanks

---

<div class="post-metadata">

**Author:** ![ferblape](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/73ab20/32.png) [@ferblape](https://www.ruby-forum.com/u/ferblape)\
**Post date:** [February 25, 2010, 10:33am UTC](https://www.ruby-forum.com/t/script-type-text-javascript-inside-partial-not-being-rendered/184113/2 "2010-02-25T10:33:44Z")

</div>

Nevermind. It was being rendered normally 😛
