Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rails 3 1 #15

Merged
merged 1 commit into from about 2 years ago

2 participants

dmoose Philip Arndt
dmoose

Fix the url for search results

Philip Arndt parndt merged commit f16c61a into from February 22, 2012
Philip Arndt parndt closed this February 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Feb 22, 2012
dmoose fix refinery url e13d943
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  app/helpers/refinery/search_helper.rb
4  app/helpers/refinery/search_helper.rb
@@ -4,8 +4,8 @@ module SearchHelper
4 4
     # this is where you register your result URLs based on the
5 5
     # type of result we're dealing with
6 6
     def result_url(result)
7  
-      result.respond_to?(:url) ? main_app.url_for(result.url) : main_app.url_for(result)
  7
+      result.respond_to?(:url) ? refinery.url_for(result.url) : refinery.url_for(result)
8 8
     end
9 9
 
10 10
   end
11  
-end
  11
+end
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.