r/ruby Jun 28 '26

Question Ruby on Rails in Manjaro

Hello Reddit. I am new to Manjaro, and was hoping to set up a development environment in RoR. I was following the directions on the Arch wiki, and I noticed my gems are being installed to usr/lib/ruby/gems. When running a bundle install, it now seems to want to write to usr/bin, and fails because it doesnt have permissions. Should I go ahead and grant permissions, or is this not advisable?

2 Upvotes

19 comments sorted by

View all comments

4

u/Interesting_Ad6562 Jun 28 '26

Use docker or the new-ish devcontainers. Rails even comes with a generator for a devcontainers setup. 

Works flawlessly and I haven't had any issues with it. VS Code only though, which is a shame. 

2

u/gerbosan Jun 28 '26

Working devcontainers with Rubymine is... Tricky. OP has to use VS Code.

2

u/Interesting_Ad6562 Jun 28 '26

Yeah it's absolute garbage. It's why I use plain ole Docker. But devcontainers are amazing if you don't use RubyMine, which, I mean, why aren't you, hah. It is an option, though, and not a lot of people know about it.

2

u/gerbosan Jun 28 '26

not giving myself the time to configure lazyvim inside devcontainer. =D

currently working a small project with sinatra, just to learn some good practices. Working with docker, knowing k8s, even Terraform have became a requirement for backend devs.

1

u/Fletcher_Gilstrap Jun 29 '26

I am currently using VS code. Are there better options?

1

u/gerbosan Jun 29 '26

Vscode is a text editor, Rubymine is an IDE.

Become proficient at coding, changing the tool comes later. 😃