Skip to content

Can't use view helpers #231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jemiam opened this issue Apr 1, 2015 · 1 comment
Closed

Can't use view helpers #231

jemiam opened this issue Apr 1, 2015 · 1 comment

Comments

@jemiam
Copy link

jemiam commented Apr 1, 2015

When running assets:precompile, React::Renderer.setup! is executed before all assets is precompiled. So if image_path is used in xxx.js.erb, i get

Sprockets::Helpers::RailsHelper::AssetPaths::AssetNotPrecompiledError

Would you please don't execute after_initialize block on assets:precomile ?

@rmosolgo
Copy link
Member

Hi, I hope this issue is cleared up in current react-rails, I see some work was done on how the gem initializes. If you're still having this problem, or if it pops up agian, please reopen this issue or open a new one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants