Useful for banks and credit unions. Store rate tables as snippets of HTML then insert anywhere on the site.
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
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')) %>