# Render partial locals not passing all variables

**URL:** <https://www.ruby-forum.com/t/render-partial-locals-not-passing-all-variables/178526>\
**Category:** Rails\
**Created:** [November 5, 2009, 11:40pm UTC](https://www.ruby-forum.com/t/render-partial-locals-not-passing-all-variables/178526 "2009-11-05T23:40:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rit\_Li](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9e8a1a/32.png) [@Rit\_Li](https://www.ruby-forum.com/u/Rit_Li)\
**Post date:** [November 5, 2009, 11:40pm UTC](https://www.ruby-forum.com/t/render-partial-locals-not-passing-all-variables/178526/1 "2009-11-05T23:40:40Z")

</div>

= render :partial =\> “locations/form”, :locals =\> { :f =\>  
return\_to\_form, :hello =\> “hello” }

“f” is accessible from \_fom.html.haml, but not “hello”, why is that?

---

<div class="post-metadata">

**Author:** ![Rit\_Li](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9e8a1a/32.png) [@Rit\_Li](https://www.ruby-forum.com/u/Rit_Li)\
**Post date:** [November 6, 2009, 5:49am UTC](https://www.ruby-forum.com/t/render-partial-locals-not-passing-all-variables/178526/2 "2009-11-06T05:49:16Z")

</div>

Hi Rit Li

How did you try hello A working example is

\<%=h hello %\>

Sijo
