I'm trying to run shell command with rake task of another project in rails controller:
def generate
render json: `cd /Users/user/project && rvm use ruby-2.1.1@gemset && bundle exec rake users:build`
end
The problem is that not working for that task (nothing happening) but if I run rake routes for example it is running well.