Rails and the Ubuntu command line

18 views
Skip to first unread message

Merhawi Fissehaye

unread,
May 2, 2012, 12:48:24 PM5/2/12
to rubyonra...@googlegroups.com
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'

Jeremy Walker

unread,
May 2, 2012, 5:35:28 PM5/2/12
to rubyonra...@googlegroups.com
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 Walker

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/luBxtlPoxCsJ.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Frederick Cheung

unread,
May 2, 2012, 5:36:15 PM5/2/12
to Ruby on Rails: Talk


On May 2, 5:48 pm, Merhawi Fissehaye <merhawifisseh...@gmail.com>
wrote:
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

matt...@jordanmachine.com

unread,
May 2, 2012, 7:28:15 PM5/2/12
to Ruby on Rails: Talk
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:48 am, Merhawi Fissehaye <merhawifisseh...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages