RailsCasts Pro episodes are now free!

Learn more or hide this

Vighnesh Rege's Profile

GitHub User: vighnesh1987

Comments by Vighnesh Rege


Nominating this article for an update too.

I'm interested in understanding the best practice for view/partial specific javascript.
I could use a yield statement at the top of my view/partial to fill in a javascript_include_tag in application.html.erb, but this leads to multiple HTTP requests to serve assets in production. Also, you need to do some hacks for it to work well with asset pre-compilation.

I'd appreciate it if someone could point me in the right direction. Even more so if someone could convince Ryan to do an updated screencast on this one!