# Help with in\_place\_edit from script.aculo.us

**URL:** <https://www.ruby-forum.com/t/help-with-in-place-edit-from-script-aculo-us/124976>\
**Category:** Rails\
**Created:** [January 4, 2008, 9:05am UTC](https://www.ruby-forum.com/t/help-with-in-place-edit-from-script-aculo-us/124976 "2008-01-04T09:05:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![markthomas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/90db22/32.png) [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Post date:** [January 4, 2008, 9:05am UTC](https://www.ruby-forum.com/t/help-with-in-place-edit-from-script-aculo-us/124976/1 "2008-01-04T09:05:02Z")

</div>

Hello,

I try to figure out how to use the [script.aculo.us](http://script.aculo.us) scripts and followed  
the example on their webpage, but still getting errors, like “element  
has no properties”.  
I have the following code:

# view/add.rhtml

\<%= javascript\_include\_tag :defaults %\>

\<%= textilize(@fancy\_text)

# controller/shop\_controller.rb

class ShopController \< ApplicationController  
require ‘in\_place\_editor’

def add  
#get the text to display initially  
@fancy\_text = “Some fancy _bold_ and _emphasized_ text.”  
end

def update\_text  
#save your text here, and return the saved value  
@fancy\_text = params[:value]  
render :layout =\> false, :inline =\> “\<%= textilize( @fancy\_text )  
%\>”  
end

def return\_unformatted\_text  
#get your text and return it without the formatting  
@fancy\_text = “Some fancy edited, _bold_ and _emphasized_ text.”  
render :layout =\> false, :inline =\> “\<%= @fancy\_text %\>”  
end

end

I hope somebody can help me with this one.

Another question:

I am looking for an in\_place\_edit function (hopefully with  
[script.aculo.us](http://script.aculo.us)) to be used with mysql-database. Does anybody have code  
example on this?  
I found a lot of examples on the web but none of them worked for me

Best regards,

Mark
