diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-03-05 14:08:12 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-03-05 14:49:13 +1100 |
commit | 10a76a091bce366a30850b3f60354e5fe52abf5e (patch) | |
tree | 1a9837a55a0d7ea0b79d20d3940ff7c7f1c3ef4e /app/controllers/track_controller.rb | |
parent | b9119dc77a78c648bf80444ebf01d03f0d146294 (diff) |
Fix track searches by changing the way the routing works
Diffstat (limited to 'app/controllers/track_controller.rb')
-rw-r--r-- | app/controllers/track_controller.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/controllers/track_controller.rb b/app/controllers/track_controller.rb index 23d79b30c..2679cacc9 100644 --- a/app/controllers/track_controller.rb +++ b/app/controllers/track_controller.rb @@ -80,10 +80,7 @@ class TrackController < ApplicationController # Track a search term def track_search_query - # XXX should be better thing in rails routes than having to do this - # join just to get / and . to work in a query. - query_array = params[:query_array] - @query = query_array.join("/") + @query = params[:query_array] # XXX more hackery to make alternate formats still work with query_array if /^(.*)\.json$/.match(@query) |