No commit activity in last 3 years
No release in over 3 years
Manage Smartfocus campaigns and messages from your rails application
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.8.0
~> 1.8.0
>= 3.2
~> 1.0.0
 Project Readme

Smartfocus ruby on rails library

Smartfocus4rails is a library used to manage messages and campaigns or more simply newsletters from your rails application.

Build Status Code Climate Coverage Status Dependency Status

Install

Without bundler

$ gem install smartfocus4rails

With bundler

Past this line to your Gemfile

gem 'smartfocus4rails'

Setup

$ rails generate smartfocus4rails:setup

This 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.emv

Publication

StandardNewsletter.daily.publish

Preview

StandardNewsletter.daily.to_html # or to_text

More infos

If you want to dig deeper, Go see our wiki pages.