Skip to content

Instantly share code, notes, and snippets.

@mmcc
Created November 30, 2011 01:01
Show Gist options
  • Save mmcc/1407459 to your computer and use it in GitHub Desktop.
Save mmcc/1407459 to your computer and use it in GitHub Desktop.
home controller
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