I try to figure out how to use the 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:
class ShopController < ApplicationController
#get the text to display initially
@fancy_text = “Some fancy bold and emphasized text.”
#save your text here, and return the saved value
@fancy_text = params[:value]
render :layout => false, :inline => “<%= textilize( @fancy_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 %>”
I hope somebody can help me with this one.
I am looking for an in_place_edit function (hopefully with
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