I am running Ubuntu 16.04 and when I open the console and write rails s to start my rails server, following error appears:
bash: /usr/local/bin/rails: /usr/bin/ruby2.3: bad interpreter: No such file or directory
but if I use command bash -l then use rails s every thing works fine.
why do I always need to use bash -lcommand to use rails s ? How can I save myself from the overhead of always writing bash -l?