Richard Wigley

Joined

730 Experience
7 Lessons Completed
0 Questions Solved

Activity

Posted in Primer on Rails 5.1's new UJS library Discussion

I tried to use "Rails" in the console as this video demoed. It didn't work with the error message "Rails is not defined". There seems to be a relevant Rails issue, https://github.com/rails/rails/issues/36686 , in which a Rails core member commented that: "When using rails-ujs with webpack window.Rails is indeed not defined."

There is a stackoverflow question on this topic: https://stackoverflow.com/questions/56128114/using-rails-ujs-in-js-modules-rails-6-with-webpacker

Posted in How to write System Tests in Rails Discussion

2.54 "you should use url_helpers over path_helpers" - the Rails guide examples use path_helpers and url_helpers. Are they mistaken? https://guides.rubyonrails.org/testing.html#implementing-a-system-test

Posted in Sending emails with Mandrill Discussion

I was seeing 5 minute+ delays and no shows - which is a problem for password resets! Chris has done the hard work so switching between providers isn't a chore. I'm testing another SMTP service and this is giving a better response time.

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.