# In Place Editor and Empty Fields

**URL:** <https://www.ruby-forum.com/t/in-place-editor-and-empty-fields/79327>\
**Category:** Rails\
**Created:** [March 10, 2006, 1:25am UTC](https://www.ruby-forum.com/t/in-place-editor-and-empty-fields/79327 "2006-03-10T01:25:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HHHHHH](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/50afbb/32.png) [@HHHHHH](https://www.ruby-forum.com/u/HHHHHH)\
**Post date:** [March 10, 2006, 1:25am UTC](https://www.ruby-forum.com/t/in-place-editor-and-empty-fields/79327/1 "2006-03-10T01:25:01Z")

</div>

So, the InPlaceEditor with AJAX is all nice and dandy, works great.

What about fields that don’t have any content? As far as I can tell,  
this  
doesn’t work so well - there’s nothing to click on so no edit form pops  
up…

Am I missing something?

HH

---

<div class="post-metadata">

**Author:** ![HHHHHH](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/50afbb/32.png) [@HHHHHH](https://www.ruby-forum.com/u/HHHHHH)\
**Post date:** [March 10, 2006, 1:50am UTC](https://www.ruby-forum.com/t/in-place-editor-and-empty-fields/79327/2 "2006-03-10T01:50:46Z")

</div>

I use before\_save actions in my model to ensure that empty fields are  
filled with ‘N/A’ or some other relevant filler.

HH wrote:

> So, the InPlaceEditor with AJAX is all nice and dandy, works great.
> 
> What about fields that don’t have any content? As far as I can tell,  
> this  
> doesn’t work so well - there’s nothing to click on so no edit form pops  
> up…
> 
> Am I missing something?
> 
> HH

---

<div class="post-metadata">

**Author:** ![HHHHHH](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/50afbb/32.png) [@HHHHHH](https://www.ruby-forum.com/u/HHHHHH)\
**Post date:** [March 10, 2006, 2:19am UTC](https://www.ruby-forum.com/t/in-place-editor-and-empty-fields/79327/3 "2006-03-10T02:19:28Z")

</div>

Yeah, that would work.

What I ended up doing was having an external edit DIV ID and using that  
to  
trigger the edit field, sorta like Backpack does. Works great, even on  
empty  
fields.

---

<div class="post-metadata">

**Author:** ![HHHHHH](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/50afbb/32.png) [@HHHHHH](https://www.ruby-forum.com/u/HHHHHH)\
**Post date:** [March 13, 2006, 3:04am UTC](https://www.ruby-forum.com/t/in-place-editor-and-empty-fields/79327/4 "2006-03-13T03:04:23Z")

</div>

Hi,

I’ve seen quite a few posts about this problem, but still can’t seem  
to find an answer. I’m trying to set up multiple apps on our web  
hosting server ( running CentOS with Apache 1.3) and on two of my  
apps I keep getting the error:  
FastCGI: incomplete headers (35 bytes) received from server “/path/  
app/public/dispatch.fcgi”

These apps have run on this server before.

I know this is often caused by session conflicts but I have closed  
the browser, emptied its cache and deleted all session data on the  
server and it makes no difference. ( Besides, all the apps but one  
have special session\_keys set. Neither of the working apps have a  
special session key set. However, if I remove that feature from the  
broken ones, it doesn’t help. )

Apparently it is also sometimes caused by problems with the  
database.yml file, so I copied the database.yml file from one of the  
working apps( they both use the same database - the working app has  
more extensive permissions.) No joy.

Does anyone have any other suggestions? I am baffled.

Thanks,  
Denise
