i've upgraded to rubymine 3.1 and now rubymine take all project as rails 3 project, but the mine are not. Does anybody of you face this problem. Ruby mine fires up this message, when i try to run application
Run configuration error: Rails 2.x launcher found instead of Rails 3.x one. You need '/script/rails'
script to launch Rails server. Please update server launcher according to Rails 3.x documentation
My final state is i can run rails 2.x app server from rubymine
Do you know how to achieve that?
I had this problem using Rails 2.3 and RubyMine 3.1 -- my solution was to look at the project settings (File -> Settings) and select Ruby SDK and Gems. Look through your attached rails gems. I had both rails 2.x and rails 3.x gems attached to my project.
Related
I am new to the rails programming. I was building my first rails application.
In internet I was searched how to run the rails application in rails 2.3.14 version. But I did not get the answer.
I know how to start the server. But I don't know how run the rails application.
Can anyone please explain me how to run the rails application in 2.3.14 version.
You start a server in Rails 2.3 with:
./script/server start
That starts a local server in development mode, browse to http://localhost:3000 to see your application.
You might want to have a look at the other scripts in the scripts folder too, you will find a subset of modern rails commands. Like
./script/console
to open the Rails console.
But I wouldn't recommend to learn Rails with a 2.3 application. 2.3 has many differences to modern Rails 4.2 or 5.0 application.
Title kind of explains it. In both the Development Configuration and Preferences -> Languages -> Ruby SDK and Gems settings I have the correct Ruby version/Gemset selected. But it still just saying:
Error running Development: the_factory: [No Rails found in SDK]
I've used RubyMine on tons of projects and this has never given me a problem. But this is a new project, using Rails 5 and Ruby v2.3.0, and I just can't figure out what's going on here.
This is in Ruby SDK and Gems settings in RubyMine 8:
And this is my Development config:
Update
When I run rails server in my project folder, it works as expected.
Ok, so I checked it out a little on RubyMine help page and I found this magical phrase:
RubyMine supports Ruby versions 1.8.6 to 2.2
So I removed my rvm Ruby 2.3 version, installed Ruby 2.2.4, create a gemset with Rails 5. Then I assigned that gemset to my project and Voilá! It worked as expected.
Note: This answer my specific question at the date I write this. But this obviously is not a long term answer, so if you are a future boy/girl with this very same problem, first check if your RubyMine version support Ruby >v2.3 before remove your current Ruby version.
For me the solution was that I had several Rails gem versions installed in my project directory.
gem uninstall rails
was the way to go, removing any unwanted versions. Feels like a contradiction - but uninstalling Rails meant that RubyMine could find Rails.
I am experiencing some weird rails behaviour:
When I do the following commands
rails new blog
rails s
rails server
The result for each is a new project, that is 3 folders names new, s, server, all with a new rails project in them
...why is this happening?? I have a feeling it may have to do with the versions I am using, I used rvm to update from 1.87 to 2.0 for Ruby and I just installed rails 2.3.14
I am using xubuntu which also just switched from Unity.
It looks like you are trying to use a Rails 3.x command with Rails 2.3. Pre 3.0 you have to use the server script.
From within your application directory run:
./script/server
Hope this helps.
I downloaded RoR ans installed in on my Windows XP, but anyhow its not working. I am totally new to thie RoR. Please check my following screenshots --
1)This is what i did initially -
2)Started rails server but it wont.
3)Even rails version command is not working.
4)This is what creating in my aap2 folder :(
Please let me know what I am doing wrong.
NOTE -- I installed RoR via rails-installer.exe
Installer info --
You've installed Rails 2.3 but you're expecting it to work like Rails 3.
The correct syntax for Rails 2.3 is:
rails myproject
The correct syntax for Rails 3.x is:
rails new myproject
For both, you probably want to check the version with:
rails -v
Rails 2.3 is no longer actively supported so you should not be creating new projects with it.
I upgraded to the latest Rails v3.1.3. And everything is fine, I'm able to run the 2.3 version of one website and the app for v3.1.3.
However I couldn't move it to a new machine, I installed all the required gems with
bundle install
and just cannot start Thin with the 2.3.2 version. I can only run the v3 apps. Thanks
Go read about RVM, and try to configure you machine according to the instructions given there.
As #Syed Aslam said the ideal way of doing is using RVM, but you may set bundler to your Rails 2.x project (because rails 3.x already have bundler..) and run both your projects in the same machine (actually currently I'm doing that).
Following is a tutorial how setting up bundle with Rails 2.x.