How to configure Ruby interpreter in RubyMine ? I have not understood what the website of Rubymine is trying to say. please help me
thanks!i have a project name "Untitled" and its class name is naqash.rb , but when i try to run ! it says an error , no SDK specified. so how i can solve that problem
Well since you are on windows 7 you need to install ruby so follow this http://rubyinstaller.org/downloads/
Then go back to preferences and see if your sdks is there.
Related
I've been struggling with setting the proper version of Ruby interpreter onto Intellij.
Error says :: Safe navigation operator requires at least Ruby 2.3
I understand what the error means here. It means "This feature is not available in your current Ruby version."
However I don't know how I can fix this in Intellij Build: 163.10154.41, event I set up correctly Ruby SDK.
The Ruby version used in this project is 2.3.1 with rbenv.
How could I fix this?
Removing {document_root}/.idea directory and import the project to IntelliJ again and then, it worked back when I met the same kind of issue before.
My solution is to remove the autodetected module from the project and then add a new Ruby module to the project (choose New Module, not Import Module).
Wiping out .idea and/or reimporting doesn't work (for me) because IntelliJ always imports the project/module incorrectly. Specifically, IntelliJ doesn't seem to recognize it as a Ruby module, and hence the project's Ruby SDK settings have no effect.
Searching on the jetbrains website, I came up with this: https://www.jetbrains.com/ruby/help/configuring-ruby-sdk.html. However, I don't have the Ruby SDK pane. I have set the project to have the Project SDK for the version of Ruby installed, the Modules->Dependencies has the version of Ruby selected, but each time the project loads, it prompts me to set the framework to JRuby. It's not a JRuby project. Granted, I don't have RubyMine, but I thought that that was the purpose of Ultimate, to be an all-in-one.
Maybe a late response, but here's answer anyway. I stumbled upon the same issue while evaluating the Ultimate version.
To fix the "JRuby on Rails framework detected" issue, just create a new project "from existing sources". Follow the steps in the wizard and "Ruby on Rails" framework will be detected correctly - no more JRuby...
Hope it helps!
I have created a rails project in Intellij IDEA, but when I try to run the project, I get the error: "No rails found in SDK". When I create a project that I just can not choose the version of rails from the list, but the rails have on my system, and if I write "rails -v" in the terminal, I got an answer: Rails 4.2.1. What am I doing wrong? Thanks
Open Preferences -> Languages & Frameworks -> Ruby SDK & Gems and choose required ruby version from list.
Or open Run/Debug Configuration editor and select Ruby SDK from Ruby SDK (Use other SDK) list.
whenever I try to install Rails on windows7 , I get the error, File not found: lib.
please help me to solve this problem.
I saw other post with exactly this problem but in ubuntu in this site :
That link is here
The best tool to use for rails in windows is rails installer for windows and it comes with the latest version of rails. I just hope this helps you solve your problems
how to configure netbeans for ruby on rails ?
Update: Netbeans has dropped support for ruby, unfortunately.
The netbeans documentation has sections on that matter:
http://netbeans.org/kb/docs/ruby/setting-up.html
http://netbeans.org/kb/docs/ruby/rails-quickstart.html
Additional info. On Apache NetBeans IDE 11.1 it will work!! (latest version as of 2019)
You need to get a copy of org-jdesktop-layout-RELEASE82.nbm and install it first.
I found it in this directory on the bits.netbeans.org release site:
http://bits.netbeans.org/nexus/content/groups/netbeans/org/netbeans/api/org-jdesktop-layout/RELEASE82/
After it is installed, follow the directions above from Marcos Riveros and you should be good to go.
Google suggests:
http://wiki.netbeans.org/RubyOnRails
http://thoughtmining.blogspot.com/2007/03/installing-netbeans-with-rubyrails.html
Currently, if you download Netbeans 7.0.1 (not the latest), you can use Tools->Plugins to open the Plugins window. Click on "Available Plugins" and search for "Ruby on Rails". Select it, and click install.
Unfortunately, the current version of Netbeans, 7.1, will not offer the Ruby on Rails plugin to you on the Available Plugins tab. The following blog post gives some hope that it will eventually be there:
http://blog.enebo.com/2012/01/workaround-for-ruby-support-on-netbeans.html
In the meantime, use 7.0.1.
Try install plugins manually:
1. Download and unzip the plugins for you netbeans http://plugins.netbeans.org/plugin/38549/ruby-and-rails
2. Click to tools->plugings->Downloaded, add path-to-pluging-downloaded.
Firts install the jar plugins (org-jruby-jruby.jar) and second install the pluging *.nbm.