Override spree routes

I use spree 0.70.5 and I need override routes. Quite a bit. I need exclude just :show action from :products.

Related to : Override spree routes
Override spree routes
Programming Languages

I use spree 0.70.5 and I need override routes. Quite a bit. I need exclude just :show action from :products.

How to override lib/spree/search/base.rb
Programming Languages

I need to override the get_products_conditions_for method in this class, what's the best way of doing this?

I've tried adding this to an initializer:

Spree::Search::Base.class_eval do
def get_products_conditions_for(base_scope, query)
base_scope.like_any([:name, :description], query.split) | base_scope.joins("JOIN taggings on taggings.taggable_id = spree_products.id JOIN tags on tags.id = taggings.tag_id").where("tags.name = ?", query.split)

which results in this error when starting the server: uninitialized constant Spree::Search (NameError)

How to override refinerycms engine config/routes.rb file?
Programming Languages

How can i override config file (config/routes.rb) from an engine reifnerycms-news?

I tried to create a similar file in the vendor/engines/news/config/ folder
but the application does not load the file.

We are talking about Refinerycms v 1.0.9

Adding Routes to Rails' Spree E-Commerce
Programming Languages

I just recently upgraded to 1.0.3, and the routes.rb file in my config/routes folder seems to ignore all my custom routes.

MY routes.rb

JollyStore::Application.routes.draw do
# Mount Spree's routes
mount Spree::Core::Engine, :at => '/'
root :to => 'pages#index'
namespace :admin do
resources :wysiwygs
match 'about_us/', :to => "pages#about_us"
match 'services/', :to => "pages#services"
match 'raw_resources/', :to => "pages#raw_resources"
match 'contact_us/', :to => "pages#contact_us"
match 'privac
Spree override the partial
Programming Languages

Can I in spree app deface partial? But not a single element. I need override all of the view.

Spree Engine/API Mounting Routes
Programming Languages
I am mounting spree at a "custom" location, like so:mount Spree::Core::Engine, :at => '/shop'This works fine for the main portion of the site, but API calls in the admin side get 404ed.No route matches [GET] "/shop/api/orders/R373466857/shipments/H36171240358/ship.json"I noticed that the API routes look like this:ready_api_order_shipment_path PUT /api/orders/:order_id/shipments/:id/ready(.:format) spree/api/shipments#ready {:format=>"json"}ship_api_order_shipment_pa

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .