Created
November 10, 2012 08:23
-
-
Save gohuygo/4050413 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.ajax({ | |
| type: 'GET', | |
| url: '/topics/savings_easter_egg', | |
| data: { | |
| savings: data[key]['saving'] | |
| } , | |
| success: function(response) { | |
| $(response).dialog({ | |
| height: 840, | |
| modal: true, | |
| }); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #dialog-modal | |
| p Hi | |
| = params[:savings] | |
| = @savings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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