owenstrevor
Joined 1/2/2018
owenstrevor said over 6 years ago on Page Specific Javascript in Ruby on Rails :

Thanks for this, I have spent a lot of time trying different approaches of this for our app :).

IMO just adding the Javascript in the view is cleaner and easier to manage for us. Everything is in one place relating to the view.

Our app has 23 different controllers, each with several actions. Navigating all of those folders and different files, if we used this setup would be a pain.


owenstrevor said over 6 years ago on Benchmarking and Refactoring the content_for View Helper :

Any idea why deleting _breadcrumbs.html.erb and putting the yield code it into application.html.haml was slower?


owenstrevor said over 6 years ago on Benchmarking and Refactoring the content_for View Helper :

Interesting, can the same approach you share in this video be used in production?