tortus / refinerycms-rates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rates extension for Refinery CMS 2.1.

Useful for banks and credit unions. Store rate tables as snippets of HTML then insert anywhere on the site.

Installation

Gemfile:

gem 'refinerycms-rates', :github => 'tortus/refinerycms-rates', :branch => '2-1-stable'

Terminal:

bundle install
rails generate refinery:rates
rake db:migrate
rake db:seed

Using "Rates Anywhere"

Ruby code (easiest):

<%= raw Refinery::Rates.content_for('auto-loans') %>

Adding liquid-style code inline in CMS:

CMS:

<p>Content</p>
{{rate_table auto_loans}}
<p>More content</p>

Override views/refinery/_content_page to use the helper:

<%= raw replace_rates_tags(@page.content_for('body')) %>

About

License:MIT License


Languages

Language:Ruby 81.7%Language:HTML 18.3%