# In\_place\_editor\_field

**URL:** <https://www.ruby-forum.com/t/in-place-editor-field/117563>\
**Category:** Rails\
**Created:** [October 18, 2007, 3:20am UTC](https://www.ruby-forum.com/t/in-place-editor-field/117563 "2007-10-18T03:20:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![macsig](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@macsig](https://www.ruby-forum.com/u/macsig)\
**Post date:** [October 18, 2007, 3:20am UTC](https://www.ruby-forum.com/t/in-place-editor-field/117563/1 "2007-10-18T03:20:13Z")

</div>

Hi guys, even if editing in place is very documented I have a issue  
with it and frankly speaking I feel a bit silly.

I’m trying to editing the home team’s name of football schedule.

Below my code

class MatchController \< ApplicationController

in\_place\_edit\_for :match, :home

…

end in my view

\<%for match in @match\_list%\>

\<%= in\_place\_editor\_field :match, 'home' %\> ... \<%end%\>

but it doesn’t show anything.

what’s wrong with my code ???

---

<div class="post-metadata">

**Author:** ![macsig](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@macsig](https://www.ruby-forum.com/u/macsig)\
**Post date:** [October 18, 2007, 3:30am UTC](https://www.ruby-forum.com/t/in-place-editor-field/117563/2 "2007-10-18T03:30:25Z")

</div>

Do you have all the JS fles and such? Try grabbing the developer toolbar  
for  
Firefox and see if there are any JS errors.

On 10/17/07, Sig Dx [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> class MatchController \< ApplicationController  
> %\>
> 
> >

–  
Nathaniel Steven Henry Brown  
604-724-6624

---

<div class="post-metadata">

**Author:** ![macsig](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@macsig](https://www.ruby-forum.com/u/macsig)\
**Post date:** [October 18, 2007, 3:36am UTC](https://www.ruby-forum.com/t/in-place-editor-field/117563/3 "2007-10-18T03:36:25Z")

</div>

Hi Nathaniel, yes javascript is fine, in the same page I use other AJAX  
code and all is fine.

---

<div class="post-metadata">

**Author:** ![macsig](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@macsig](https://www.ruby-forum.com/u/macsig)\
**Post date:** [October 18, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/in-place-editor-field/117563/4 "2007-10-18T15:45:11Z")

</div>

Is that field blank in the database? If it’s blank it will not display  
anything. I came across a siiliar issue and combated it by having the  
field filled with dashes or some other type of place holder. You might  
also take a look at the generated HTML to see if it is infact generating  
the correct output to the page.

-S

---

<div class="post-metadata">

**Author:** ![macsig](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@macsig](https://www.ruby-forum.com/u/macsig)\
**Post date:** [October 18, 2007, 10:27pm UTC](https://www.ruby-forum.com/t/in-place-editor-field/117563/5 "2007-10-18T22:27:14Z")

</div>

it’s not blank, otherwise it is fine if it doesn’t show anyting
