module Checkout
module Coupon
class Cell < Cell::Concept
property :coupon
property :number
def show
coupon ? render(:current) : render(:new)
end
private
def coupons_path
checkout_coupons_path(number)
end
end
end
end
View for that cell:
app/concepts/checkout/coupon/views/current.erb
I have a concept cell:
app/concepts/checkout/coupon/cell.rb
View for that cell: app/concepts/checkout/coupon/views/current.erb
This cell is also has a
checkout_coupon.js.coffee
file inviews
directory andapplication.rb
has a setting for that cell with asset:config.assets.initialize_on_precompile
is true by default.But it fails to precompile assets: