Mailchimp integration for sprangular
Add sprangular_chimpy & spree_chimpy to your Gemfile:
gem 'spree_chimpy', github: 'DynamoMTL/spree_chimpy'
gem 'sprangular_chimpy', github: 'sprangular/sprangular_chimpy'Bundle your dependencies and run the spree_chimpy installation generator:
bundle
bundle exec rails g spree_chimpy:installAdd the following to your application.js:
//= require sprangular/chimpy
Add Sprangular.Chimpy module as a dependency to your host apps module:
angular.module 'MyApp', ['Sprangular', 'Sprangular.Chimpy']Include chimpy/subscribe.html somewhere in your layout (in footer is recommended):
<ng-include src="'chimpy/subscribe.html'"/>First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.
bundle
bundle exec rakeCopyright (c) 2015 Dynamo, released under the New BSD License