Displaying 1 result from an estimated 1 matches for "expense_price".
2012 Mar 26
3
render :json not sending any data back ...
...url: " /backoffice/expenses/rate"
type: "GET"
dataType: "json"
data:
project_id: $(''#project_id'').val()
code: $(this).val()
success: (result) ->
alert result
$(''#expense_price'').val(result)
in the controller , I am correctly receiving the js call
Started GET "/backoffice/expenses/rate?project_id=7&code=1
Processing by Backoffice::ExpensesController#rate as JSON
..
Completed 200 OK in 2004ms (Views: 0.5ms | ActiveRecord: 2.6ms)
in my controller
def p...