Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing query parameter to the index action results in wrong url #52

Open
christoph-buente opened this issue Jan 31, 2014 · 0 comments
Open

Comments

@christoph-buente
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant