I am new to rails
The rails command to create new application: rails new depot is not
working. It creates a folder named new inside the current directory when
was expecting depot
Even the command that generate scaffolds ( rails generate scaffold …)
create a folder named generate as if I am trying to create a new rails
project named generate.
what is the problem. I am using rails version ‘Rails 2.3.14’
On 2 May 2012, at 17:48, Merhawi F. [email protected]
wrote:
I am new to rails
The rails command to create new application: rails new depot is not working. It
creates a folder named new inside the current directory when was expecting depot
Even the command that generate scaffolds ( rails generate scaffold …) create
a folder named generate as if I am trying to create a new rails project named
generate.
what is the problem. I am using rails version ‘Rails 2.3.14’
The functionality of the rails command changed since that version.
Either use rails 3, in which case the command will work as expected, or
use “rails depot” to create your app. You can then cd into the directory
and run generate commands.
Jeremy W.
On May 2, 5:48pm, Merhawi F. [email protected]
wrote:
I am new to rails
The rails command to create new application: rails new depot is not
working. It creates a folder named new inside the current directory when
was expecting depot
Even the command that generate scaffolds ( rails generate scaffold …)
create a folder named generate as if I am trying to create a new rails
project named generate.
what is the problem. I am using rails version ‘Rails 2.3.14’
The rails command changed substantially between rails 2.x and rails 3,
it looks like you’re following instructions for rails 3.
in rails 2 you create a new app with
rails foo
and you invoke generators with
ruby ./script/generate …
instead of rails generate …
Fred
May I politely ask why you are trying to use such and verion of Rails?
Since you are new, why not hop on the latest version? Are you trying
to follow an old book, or other older online tutorials?
See this post to get started:
http://mattslay.com/installing-rails-on-ubuntu-12-04-with-rvm-support/
On May 2, 11:48am, Merhawi F. [email protected]