Search code examples
ruby-on-railsoverridingpartial-viewsspree

Spree override the partial


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


Solution

  • You can replace whole templates. See the guides under the section "Template Replacements".

    For example add your own file in YOUR_SITE/app/views/spree/layouts/spree_application.html.erb

    and it will replace the one used by Spree when the page is rendered.