spree-contrib / spree_rdr_theme

WIP - everything might change.
BSD 3-Clause "New" or "Revised" License
51 stars 33 forks source link

Checkout.js isn't precompiled #6

Closed aew closed 12 years ago

aew commented 12 years ago

Hello -

I'm trying to make the demo work with the RDR theme and I'm getting the following error:

ActionView::Template::Error (checkout.js isn't precompiled): 1: <% content_for :javascripts do %> 2: <%= javascript_include_tag 'checkout', '/states' %> 3: <% end %> 4: 5:

I'm using a precompile step before deploying to Heroku. All of the other assets seem to have precompiled successfully. Is there a reason why Checkout.js, which is associated with RDR theme, would have been excluded? Any idea on how to fix?

Thanks,

Adam

radar commented 12 years ago

What Heroku stack are you deploying to? Have you tried using the Cedar stack?

aew commented 12 years ago

Yes, Cedar Stack. I was precompiling the assets locally before pushing to Heroku, and somehow the Checkout.js script from the theme was not finding it's way into the Vendor assets directory I suppose. I am out of my depth.

radar commented 12 years ago

No worries :)

What happens if you add this line into the Application class?

config.assets.precompile += ['checkout.js']

Does that fix the issue?

aew commented 12 years ago

That fixed the issue. Just don't ask me to explain it! Thanks.

radar commented 12 years ago

Alright then, I'll leave this issue open as a reminder to update spree_rdr_theme to include this option automatically or another fix. Thanks!