Skip to content

Instantly share code, notes, and snippets.

@silentshade
Created December 10, 2012 21:07
Show Gist options
  • Save silentshade/4253444 to your computer and use it in GitHub Desktop.
Save silentshade/4253444 to your computer and use it in GitHub Desktop.
def create
@lead = params[:lead]
if @lead.save
respond_to do |format|
format.js
end
else
# handle errors here
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment