1,500 Experience
14 Lessons Completed
0 Questions Solved


Posted in Contact form that sends email directly from the page

Hi Kyle,

Here are examples that may help you get the form working:

You can also share your code, if you feel comfortable, for additional help.

Based on the pre- version of Rails, I found Carrierwave to be more suitable for apps where I need to generate multiple-size versions of an image on upload that I may want to use outside the app itself (the ActiveStorage has not worked quite as well in a couple of apps of this type I built). Other than that, I find ActiveStorage to be rather nice, and it’s likely to get better in the future.

Have not had to do a migration from Carrierwave to ActiveStorage but, based on the available documentation, it looks doable but would require a lot of work so it may be better if one stuck to Carrierwave if that’s what they already do.

Knowing what kind of app you are building (in the most general terms) would help recommend one or the other.

Posted in How to use ActionText in Rails 6 Discussion

Not yet. The CSS approach would not have worked in this specific case so I treid mucking about in the source code but gave up as I didn’t feel like having to reivist the issue each time a Rails update rolls around.

I eventually settled on using Redactor as it gave me the control I needed for this project. Not as straightforward as ActionText though.

I do have some ideas on how to address the Trix editor configuration but have not had time to explore them. Will post here when I have something working.

I looked at both the ActionText and Trix documentation and could not find anything on how to disable/remove formatting tools and disable file uploads for ActionText.

For the project I am working on, I need only text formatting (bold, italic, lists, etc.) but not file uploads and hyperlinks. I considered dealing with hyperlinks via Rails content formatting options (rendering them as text) but was hoping for a bit more elegant approach before going down that route. As for blocking uploads, no idea whether that is possible while also using ActionText.

Has anybody deal with this alredy or does anybody know where I could look up more information?

Thanks in advance.

Posted in How to use ActionText in Rails 6 Discussion

Is there a way to limit the formatting options in the Trix editor? For example, if I don’t want users to enter links or upload images, is there a way I can configure the editor so that those options are disabled and not just not shown (I can do the latter via CSS).

Posted in How to use Action Mailbox in Rails 6 Discussion

How difficult, assuming it’s possible, would it be to adjust this for receiving replies via SMS (to use the episode’s example)?

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.