Last active
August 29, 2015 14:02
-
-
Save msadoon/2c4f87a81c61999e8d37 to your computer and use it in GitHub Desktop.
ajax request success template missing
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 getgst | |
d { 'gets fired' } | |
s = Building.get_gst_for_building(params[:buildinginfo]) | |
d { s.to_s('F') } | |
@var = s.to_s('F') | |
respond_to do |format| | |
format.html { render :text => @var.html_content } | |
end |
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
$("#tenant_tenantbuildinginfo").change -> | |
$.ajax | |
url: "/buildings/getgst", | |
data: 'buildinginfo' : $(this).val(), | |
success: (data) -> | |
console.log data | |
$("#tenant_gst").val data | |
error: (data) -> | |
console.log data | |
return false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment