# TemplateError (index 58729 out of string)

**URL:** <https://www.ruby-forum.com/t/templateerror-index-58729-out-of-string/116451>\
**Category:** Rails\
**Created:** [October 5, 2007, 6:12pm UTC](https://www.ruby-forum.com/t/templateerror-index-58729-out-of-string/116451 "2007-10-05T18:12:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e0b2c6/32.png) [@jmark](https://www.ruby-forum.com/u/jmark)\
**Post date:** [October 5, 2007, 6:12pm UTC](https://www.ruby-forum.com/t/templateerror-index-58729-out-of-string/116451/1 "2007-10-05T18:12:47Z")

</div>

Could someone please explain to me the meaning of this error?

ActionView::TemplateError (index 58729 out of string) on line #2 :

1: \<%= form\_remote\_tag(:update =\> “update\_form”,  
2: :url =\> { :action =\> :add\_product}) %\>

---

<div class="post-metadata">

**Author:** ![jmark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e0b2c6/32.png) [@jmark](https://www.ruby-forum.com/u/jmark)\
**Post date:** [October 6, 2007, 6:44am UTC](https://www.ruby-forum.com/t/templateerror-index-58729-out-of-string/116451/2 "2007-10-06T06:44:26Z")

</div>

Could someone assist me with this problem?

---

<div class="post-metadata">

**Author:** ![jmark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e0b2c6/32.png) [@jmark](https://www.ruby-forum.com/u/jmark)\
**Post date:** [October 6, 2007, 6:52am UTC](https://www.ruby-forum.com/t/templateerror-index-58729-out-of-string/116451/3 "2007-10-06T06:52:37Z")

</div>

Just a thought, but if the method in your controller is called  
add\_product, do this instead: :url =\> { :action =\> ‘add\_product’ } )

I’m not sure what the error is or if chainging the : to single quotes  
will fix it. It’s my best guess.  
Bryce

---

<div class="post-metadata">

**Author:** ![jmark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e0b2c6/32.png) [@jmark](https://www.ruby-forum.com/u/jmark)\
**Post date:** [October 6, 2007, 8:26am UTC](https://www.ruby-forum.com/t/templateerror-index-58729-out-of-string/116451/4 "2007-10-06T08:26:39Z")

</div>

Try add product as string not as symbol

Sent from my iPhone
