Ruby on Rails and Ubuntu: enter "script / generate ..." instead of "ruby script / generate",

I am using Ubuntu 10.04. In the terminal, when I switch to my application and type (without using the "ruby" in front):

script/generate controller recipes

I receive an error message Allow denial . However, when I use this:

ruby script/generate controller recipes

everything works as expected. Is there something I have to do for Ubuntu to make an unnecessary ruby ​​when I try to generate controllers (i.e. just use the "script / generate controller recipes" should work)?

+3
source share
3 answers

chmod 755 script/generate

+8
source

Enter

ls -la

script, script.

, (x).

.

+4

, ,

Congratulations on switching to linux.

How did you install Ruby? Did you do this from the synaptic package manager? Have you launched the Russian version of sudo aptitude or something like that?

no matter what you do, it might be best for you to install RubyVersionManager (RVM) - it's very simple - there is railscast on how it works here: http://railscasts.com/episodes/200-rails-3-beta-and -rvm

I have never heard or heard of your problem.

+2
source

Source: https://habr.com/ru/post/1751077/


All Articles