Gabriela Jack

Joined

6,150 Experience
60 Lessons Completed
0 Questions Solved

Activity

Posted in Rails 6, Webpacker and Docker on Apple M1

Hi Chris,

I tried to leave a comment for episode #389 but was not successful. Not sure why. Anyway, I'm developing in Apple M1 and trying to dockerize a Rails 6 application, but running into a lot of errors when running docker-compose up. The whole process goes well until it tries to run rails webpacker:install. Then it complains of missing Nokogiri or some other gem, even when I saw the gems being installed previously.

I've tried some examples I saw here, and also from this guide from Docker, only with Rails 6 instead of 5. https://docs.docker.com/samples/rails/#build-the-project

What am I doing wrong?

I'm mostly interested for MySQL and PostgreSQL. Do you know of some good ones, maybe not too expensive and compatible with the new mac?

Posted in Setup MacOS 12 Monterey Discussion

Oh, wait! I found my answer! After setting the global version, I needed to close the terminal, open another, run rbenv rehash.

Posted in Setup MacOS 12 Monterey Discussion

Hello Chris,

I'm following the guide to install Rails in my new Macbook Pro M1, but I'm running into trouble. Even though I've setup rbenv global 3.0.2, installing Rails fails for me with the following message which makes me think it's using the version from system ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.arm64e-darwin21]. What can I do? Thanks in advance!

gem install rails -v 6.1.4.1
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.

I just found out. It seems I needed to add local: false to the form. Now it works. Unrelated, I keep getting warnings about data-target-channel being deprecated in favor of data-channel-target.

Hi Chris,

I'm not sure if anyone has found this same issue, but I can't get the action to clear the input to fire in the stimulus controller. I'm using Rails 6.1.3, although I don't know if that makes a different. It's almost as if the ajax:success event is never fired or never detected. I can get an action to work on the submit event for the form, but none of the ajax events appear to work.

Posted in Using React

Do you know of any links to examples of react on rails applications that have been created using the webpacker gem instead of other gems such as react-rails?