Smartfocus ruby on rails library
Smartfocus4rails is a library used to manage messages and campaigns or more simply newsletters from your rails application.
Install
Without bundler
$ gem install smartfocus4railsWith bundler
Past this line to your Gemfile
gem 'smartfocus4rails'Setup
$ rails generate smartfocus4rails:setupThis will create the following config file : config/smartfocus.yml
Generator
$ rails generate newsletter standard daily weekly
create app/newsletters/standard_newsletter.rb
create app/views/standard_newsletter/daily.html.emv
create app/views/standard_newsletter/daily.text.emv
create app/views/standard_newsletter/weekly.html.emv
create app/views/standard_newsletter/weekly.text.emvPublication
StandardNewsletter.daily.publishPreview
StandardNewsletter.daily.to_html # or to_textMore infos
If you want to dig deeper, Go see our wiki pages.