Andres Carvajal

Joined

60 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Installing ruby on rails in ubuntu 24.04

Hi Punnareddy Jilugu, I think I had an issue with RVM on my new Ubuntu 24.04 LTS. I think I just tried using rbenv instead. I installed usign the following commands on the terminal:

sudo apt install autoconf bison build-essential libssl-dev libyaml-dev libreadline-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
type rbenv
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build

And finally you can install the version you need for example ruby 3.0.7

rbenv install -l
rbenv install 3.0.7
rbenv global 3.0.7
ruby -v

I hope this can be helpful to you! I would also appreciate if someone could tell us if my solution has some drawback.

Posted in Acts as Tenant with Active Storage

Hello! I have been developing a multitenancy app using acts_ac_tenant. Until now it works really well but now I want to add some support for storing some files. I got a little bit confused about how to implement this in a proper way. I would like to have a good control of the files that have been uploaded by each tenant. In the development environment I have been trying with local storage and for production I would like to try Amazon S3 (bucket-based solution). However, I'm not pretty sure if acts_as_tenant cares of the switching between tenant behind the scene as it does with other models related to acts_as_tenant. I would appreciate if someone could share some advises in this topic.

Thank you in advance!