Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

Checkout.js isn't precompiled #6

Closed
aew opened this issue Nov 13, 2011 · 5 comments
Closed

Checkout.js isn't precompiled #6

aew opened this issue Nov 13, 2011 · 5 comments

Comments

@aew
Copy link

aew commented Nov 13, 2011

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
Copy link
Contributor

radar commented Nov 14, 2011

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

@aew
Copy link
Author

aew commented Nov 14, 2011

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
Copy link
Contributor

radar commented Nov 14, 2011

No worries :)

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

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

Does that fix the issue?

@aew
Copy link
Author

aew commented Nov 14, 2011

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

@aew aew closed this as completed Nov 14, 2011
@radar
Copy link
Contributor

radar commented Nov 15, 2011

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!

@radar radar reopened this Nov 15, 2011
@radar radar closed this as completed Sep 19, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants