Open christoph-buente opened 10 years ago
I created a new rails + spine app with a single model and just the index action. It looks like this:
class App.Candidate extends Spine.Model @configure 'Candidate', 'name', 'address' @extend Spine.Model.Ajax @url: 'http://nominatim.openstreetmap.org/search'
The url is not my rails app url, but a remote server, which i want to trigger. Now i need to pass some query paramter to the index action.
App.Candidate.fetch({data: $.param({q: "Bank in Berlin", address_details:1, format: "json"})});
The resulting query looks like this:
http://nominatim.openstreetmap.org/search?%22q=Bank+in+Berlin&address_details=1&format=json%22
%22 is the double quote character. So how can i avoid this? Did not find something usefull in the spine documention except the pagination stuff. But this did not seem to help.
Thx Chris
I created a new rails + spine app with a single model and just the index action. It looks like this:
The url is not my rails app url, but a remote server, which i want to trigger. Now i need to pass some query paramter to the index action.
The resulting query looks like this:
%22 is the double quote character. So how can i avoid this? Did not find something usefull in the spine documention except the pagination stuff. But this did not seem to help.
Thx Chris