Rails, Ruby, spree / 04.04.2014
Overriding an admin view with deface in Spree using complex selectors
hello guys I want to write about selectors, overriding, and defaces in spree with the DSL for Spree:
In this time I want to share the code that I have created for a simple task.
The scenario is the following:
I want to edit option type values in the admin section, if you take a look into the code of spree you'll see that some of the views responsible for the option type edition are located in:
[shell]
backend/view/spree/admin/option_types/_option_value_fields.html.erb
[/shell]
and
[shell]
backend/view/spree/admin/option_types/edit.html.erb
[/shell]
restricting github organization[/caption]
The gems required in Gemfile:
[ruby]
gemĀ 'omniauth-github'
gemĀ 'httparty'
[/ruby]