Skip to content

Instantly share code, notes, and snippets.

@gohuygo
Created November 10, 2012 08:23
Show Gist options
  • Select an option

  • Save gohuygo/4050413 to your computer and use it in GitHub Desktop.

Select an option

Save gohuygo/4050413 to your computer and use it in GitHub Desktop.
$.ajax({
type: 'GET',
url: '/topics/savings_easter_egg',
data: {
savings: data[key]['saving']
} ,
success: function(response) {
$(response).dialog({
height: 840,
modal: true,
});
}
});
#dialog-modal
p Hi
= params[:savings]
= @savings
def savings_easter_egg
@savings = params[:savings] if params[:savings]
return render :partial => "topics/savings", :locals => { :savings => @savings }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment