lib/rails-caddy/helpers/rails_caddy_helper.rb
# actually embeds the magic that is the Rails Caddy
actually embeds the magic that is the Rails Caddy
actually embeds the magic that is the Rails Caddy
def rc_in_place_editor(key, field_id, url)
    function =  "RailsCaddy.editors['" + key + "'] = new Ajax.InPlaceEditor("
    function << "'#{field_id}', "
    function << "'#{url}'"
    function << ');'
    javascript_tag(function)
  end
def rc_in_place_editor ( key , field_id , url ) function = "RailsCaddy.editors['" + key + "'] = new Ajax.InPlaceEditor(" function << "'#{field_id}', " function << "'#{url}'" function << ');' javascript_tag ( function ) end
actually embeds the magic that is the Rails Caddy
actually embeds the magic that is the Rails Caddy
key
<not_specific>
field_id
<not_specific>
url
<not_specific>