0
votes
1answer
74 views

Query String or Bound Parameters in filtration

I can filter products in my website in 2 ways: www.expamle.com/products?category=cars&brand=hot_wheels or : www.expamle.com/products/car/hot_wheels what is the best practice and why? and if ...
0
votes
2answers
78 views

Rails - Fetch results on the basis of number of params in query string

I am working on an events application where i want to filter events depending on the 3 parameters location or starts_at or ends_at in the query string. There can be any one, two or all the parameters ...
0
votes
3answers
149 views

Keeping a query-string in devise sign up

I am using rails with devise for signing up. Also I added an invite code, so not everybody can sign up. The invite code gets transmitted via query-string like ...
2
votes
2answers
378 views

How to remove blank values params from query string

I have a search form, with lot of options, Submitted to a route with Get request. URL is something like this: ...
1
vote
2answers
636 views

Removing a part of a URL with Ruby

Removing the query string from a URL in Ruby could be done like this: url.split('?')[0] Where url is the complete URL including the query string (e.g. url = ...
2
votes
1answer
300 views

Query string manipulation in Rails when identical keys are present

I'm currently working on implementing the Distributed Annotation System-standard for our project openSNP.org, however, I've come across a problem with query strings - the standard prescribes how a ...
0
votes
1answer
566 views

rails 3, How to set and pass a query string through an Controller#create action that doesn't save

I have 3 views that the users sees in an order, first they select a location, next then select a category, then they get sent to a form. The first view sends the location info to the category select ...
0
votes
2answers
96 views

rails 3 how to handle the receiving end of query strings

I have two simple links <h3><%= link_to "Brand Awards", new_recommendation_path(:category => "Brand" ) %></h3> <h3><%= link_to "Business Awards", ...
0
votes
1answer
272 views

Ruby/Rails - Insert Parameters Into Query String Located In the Controller

I have a link_to in my view which is going to a URL( query string) that is created dynamically in the controller. <%= link_to "Search Venue", @venue_search, :target => :blank %> and in the ...
1
vote
1answer
215 views

Rails query string parameter format when providing an API with filters

I'm opening up a few REST API calls to others to use. Some of them include search filters. Let's say I have a grocery endpoint When I currently make calls I might use: ...
1
vote
1answer
324 views

How can I check if there is a query string from a Ruby on Rails controller?

I'm using pagination on our Ruby on Rails app and the pages are defined in the request with a query string parameter like http://ourdomain.com/?page=2 I use this on our front page where there's no ...
0
votes
1answer
129 views

How to build sort urls on Rails?

I am working on the index page of a listing controller, which needs several sort options. Query string is needed to determine the sort option that is active for the current page. I have used a ...
1
vote
3answers
912 views

HTML Forms: Submit button that goes to querystring?

I'm working on a Rails site, and I've got my database indexed with IndexTank. I have things set up so that to search, all I have to do is browse to [root]/search?q=[query]. To simplify things, I'm ...
3
votes
2answers
518 views

Rails query string with a period (or full stop).

I am currently trying to get a handle on RoR. I am passing in two strings into my controller. One is a random hex string and the other is an email. The project is for a simple email verification on ...
0
votes
2answers
271 views

Do dashes in a querystring pose a security risk for Ruby on Rails?

I got an exception in a web app I'm developing recently from a url something like: ...

1 2
15 30 50 per page