Skip to content

Instantly share code, notes, and snippets.

@traviskroberts
Created December 21, 2008 23:31
Show Gist options
  • Select an option

  • Save traviskroberts/38790 to your computer and use it in GitHub Desktop.

Select an option

Save traviskroberts/38790 to your computer and use it in GitHub Desktop.
- if @complete
= "$('#div_name_#{@record.id}').html('complete');"
= "$('#notes_#{@record.id}').replaceWith('<p>#{@record.notes}</p>');"
- else
alert("An error occurred processing your request.");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment