Forum: Ruby on Rails using html.erb as a stand alone file

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
7121f288dd776941e7d5db81e1882a1d?d=identicon&s=25 Lee G. (leegodden)
on 2014-03-13 14:56

I know this isn't good practice and certainly not what rails is all
about but is this possible. I need to customize my CRM to use stripe
which it doesn't support at present.the CRM is written in Ruby and has a
number of rhtml pages. Can I add my own display page of html.erb
extension to these pages to receive a variable on one of the CRM's
existing pages written as: <%= (basket.to_f_withvat).to_money %>  On
this stand alone page I can then assign this variable: 'basket_total =
(basket.to_f_withvat).to_money' and then use this to pay with the Stripe
Gateway as below

  charge = Stripe::Charge.create(
    :amount => basket_total, # This is your value as a variable.
    :currency => "usd",
    :card => token,
    :description => ""

---- etc
Again I know this isn't what RoR and MVC is all about, but it's the only
way I can think of doing this.

This topic is locked and can not be replied to.