Created
November 30, 2011 01:01
-
-
Save mmcc/1407459 to your computer and use it in GitHub Desktop.
home controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HomeController.class_eval do | |
def index | |
@searcher = Spree::Config.searcher_class.new(params) | |
@products = @searcher.retrieve_products | |
respond_with(@products) | |
respond_with do |format| | |
format.html { render :action => params[:path] } | |
format.iphone { render :layout => false } | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment