Rails project can not be created - ruby-on-rails

I want to create a Rail project named Pierre with Aptana Studio 3 but it's written :
Pierre#PC-Pierre ~
$ rails new .
Can't initialize a new Rails application within the directory of another, please change to a non-Rails directory first.
Type 'rails' for help.
I have joined a screenshot of the repository where I created my project. Could someone help me to deal with that ?

Seems like the issue you are describing comes from Aptana and not Rails. Create the App from cmd and then import it into Aptana like so: https://superuser.com/questions/324183/how-can-i-import-an-existing-project-in-aptana-without-moving-the-files

Related

Error: Rails command not found

I created a new Rails project in a directory, say Desktop (rails new project1). After that, I ran the following command:
rails server
Then, the project1 was running on localhost.
After that, I made another directory with name (project1) in another location. I copied all the files from the previous location to new location. After that, when I ran the following command:
rails server
I got the following error message:
Rails is not currently installed on this system.
But it is working in the previous directory. How do I solve this?
If you are totally new to Rails development and System administration it is rather complicated in the beginning. I recommend any kind of Rails tutorial to you for examply by Michael Hartl .
As Graeme McLean points out you somewhen understand that there is information about your environment needed to help you.
Most likely the requirements you need to be set up are not set up in the place you did copy your rails project as Pavan and Thaha kp pointed out.

How would I change the rails project directory?

I am using Ruby on Windows and when I use rails to create a project it puts the folder in my user directory, I'd like to specify another location. How would I do this?
You can specify a full path when you say rails new:
> rails new /some/path/where/you/want/your/app
That should work in Windows just like everywhere else.
You can always say rails --help or rails command --help to get some quick help on using the rails command.
use cd to move to the directory you want it in before generating the project.

How to configure rails in Intellij Idea

I have a IntelliJ Idea 11 with Ruby Plugin installed. Im trying to configure a project but the IDE doesn't recognize my views as a module. It just adds other folders (controllers, db, config)
Am I doing something wrong?
Thanks
Create a new project using a wizard for the root of your rails application (from scratch, Ruby module, add Ruby on Rails facet, Use existing Rails application):

Importing Existing Rails Application to RubyMine Project

I am currently having unnecessary trouble trying to test out RubyMine. My biggest problem is that I cannot find a way to take a existing rails application on my system and convert it to an official RubyMine application, so that I can experience all of the features of RubyMine.
The only options that are available to me are to either create a new RubyMine rails project, to pull a rails project from a git remote (doesn't work), or to open a previous rails directory (which allows you to edit rails code, but it doesn't recognize this directory as a RubyMine project, so I cannot heap all of the benefits that RubyMine has for rails).
Please help me out, RubyMine seems promising
This is RubyMine 4 btw.
File | Open Directory should create a new RubyMine project from the existing sources. I've just tried with a new Rails app and it recognized it as a Rails project and all the features work just like for the new project created from RubyMine.

NetBeans hangs up while creating a Rails project

I'm using NetBeans and I'm trying to create a new Rails project trought the wizard, so while I click the finish button, it creates the folder structure but the wizard never finish working and doesn't show nothing on the Projects view.
It just happens when I set up a Sqlite3 DB.
I'm using Rails 3.0.7
Can someone help me?
I have always struggled to create Rails projects using the internal netbeans wizard. Usually I find it easier to create the rails app from the command line:
rails your_app_name
This will create a new folder your_app_name in your current location, and then I create a new project within Netbeans by selecting the 'Ruby on Rails Application with Existing sources' option. And select the freshly created your_app_name folder for the Project folder.
I have found Netbeans to be less reliable with rails 3+ applications than the 2+ and find that run most rails commands directly from the terminal/command prompt.
do you have sqlite3 installed? Anyways people will be able to help you if you can post the netbeans log. Go to the command line and run netbeans from the command line. Then you can see a lot of output/logging info.

Resources