Skip to content

Instantly share code, notes, and snippets.

@deepak
Created December 7, 2010 12:24
Show Gist options
  • Select an option

  • Save deepak/731742 to your computer and use it in GitHub Desktop.

Select an option

Save deepak/731742 to your computer and use it in GitHub Desktop.
toplevel view file
<div>
<%= link_to_function('DEL') do |page|
page.remove "nest"
end %>
</div>
<div id="nest">
<%= link_to_function 'Add', nil, {:id => "add"} do |page|
page.insert_html :bottom, "nest", escape_javascript(render(:partial => 'add'))
end %>
</div>
@deepak

deepak commented Dec 7, 2010

Copy link
Copy Markdown
Author

gives an error: "missing } after property list"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment