Skip to content
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

preventing my JS codes from happening when rails-ajax is enabled #14

Open
katpadi opened this issue Apr 11, 2015 · 1 comment
Open

preventing my JS codes from happening when rails-ajax is enabled #14

katpadi opened this issue Apr 11, 2015 · 1 comment

Comments

@katpadi
Copy link

katpadi commented Apr 11, 2015

I followed your guide but I can't seem to determine what is wrong. I've tried disabling it in rails-ajax-config.rb and it worked. There are no JS errors whatsoever.

So apparently, it is rendering but not doing the JS stuff in my new.js.haml

Processing by SomethingsController#new as JS
My controller action comment is here...
[RailsAjax] render: options=[] block?false flash=#<ActionDispatch::Flash::FlashHash:0x00000007dd98f0 @discard=#<Set: {}>, @flashes={}, @now=nil> | Normalized arguments: {}
  Rendered somethings/_modal.html.haml (11.0ms)
  Rendered somethings/new.js.haml (14.8ms)
@katpadi katpadi changed the title Bootstrap modal not working when rails-ajax is enabled preventing my JS codes from happening when rails-ajax is enabled Apr 11, 2015
@elenatorro
Copy link

Hi! I had a lot of problems with the rails-ajax gem, so I decided not to use it anymore in my projects :( I recommend you to use a frontend framework for these things. Anyway, the assets-pipeline in rails is always hard to configure. Good luck with your project :)

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