Using RVM with TMUX

Need help setting up RVM to wrok with tmux.

I found that running the command source ~/.rvm/scripts/rvm loads RVM but now i’m getting a bug when I tried running source rails generate rspec:install

Could you please share more information? Like, what was the error message?