I am trying to run RoR on Netbeans 7. I installed everything as given in the documentation. I have Ruby 1.9.2 and Rails 3.0.9 installed on my PC.
Also I have the plugins installed with the Netbeans 7.0
But when I try to create a new project, the progress hangs on 25% and Netbeans stops responding. I have to use task Manager to close the IDE. What is wrong in the scenario? Thank you.
Well help on this will be limited because netbeans no longer supports Rails:
http://netbeans.org/community/news/show/1507.html
Good news though, you don't need netbeans to create a rails project. Just open up your terminal and run:
rails new APP_NAME
Each time I have seen this happen Netbeans is happily awaiting input. When you create the project in Netbeans it executes rails new APP underneath and if that process asks a question, then Netbeans will hang. Check the Netbeans output window (if it's open). You can verify this by creating the rails app on the command line. Once you do that, open the directory with Netbeans and it should recognize the project as a Rails project.
Related
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 recently installed the Aptana plugin for Eclipse as I wish to learn Ruby and Ruby on Rails, it doesn't seem to have changed anything. Usually when I install a plugin of the sort, there will be new project types under the "New Project" menu, but none appeared. I checked tutorials online and they suggest that there should be new project types as seen in the image below, taken from a tutorial.
Instead, I see the same options I did before.
I wondered if the plugin didn't install, but when I try to install it again, It says it's already installed. I am using Eclipse Juno Service Release 2 with a 64-bit Windows 7 operating system and the version of the plugin from the URL given on the Aptana website (http://download.aptana.com/studio3/plugin/install). Any help would be much appreciated.
I don't know why that's happening. Here's a suggestion for how to get around it.
You might be better off installing and running the standalone Aptana Studio product. It would be a separate installation on your desktop, and thus wouldn't have the same settings as any Eclipse installation you already had, and would be more space on your hard drive. But probably there isn't much you would share between Ruby/Rails development and other development, and it's not that much space.
I've done it both ways - installed Aptana into an Eclipse I've already got, and installed the standalone version - and now I would only do standalone.
I don't know what was wrong in the first place, but after I installed the Aptana plugin, I installed the PyDev plugin. I think this removed the Aptana plugin because of conflicting dependencies (I don't know why it wouldn't tell me, though). I tried installing the Aptana plugin again and it told me there was a conflicting dependency with the PyDev plugin, so I uninstalled it and reinstalled the Aptana plugin. It works now.
When I create a Grails application in IntelliJ 9 on Snow Leopard I am not prompted to create an application. IntelliJ finished the wizard and creates an empty project that is not a Grails application. I have tried two different Apple computers (MacBook Pro and Mac Pro) it does not work on either. The same steps on a Linux system results in a prompt to "create-app" and a Grails application.
I have already tried the steps in Intellij IDEA setup on OS X
Is there a specific place that Grails needs to be installed? Has anyone else seen this behavior?
Thanks
Answer: Make sure that the grails directory is writable.
Just tried this on Snow Leopard running Intellij 94.633 (EAP) + grails 1.2.1 and the create new project wizard has worked just fine.
Started with 'create new project', selected a grails module, was then prompted to 'create-app' or 'create-plugin' and was presented with a completed project.
Might be an idea to try the same EAP build if no joy you will have to file a bug with jetbrains. They are pretty good at responding to issues, you should get some sort of feed back pretty soon.
This is actually the first time I've actually done that in intellji, previously I've always just used the grails command line and then just imported the application to Intellij.
Make sure that the grails directory is writable.
I moved my grails install from /opt/grails-1.2.1 to /Users/dave/grails-1.2.1 and I can now create or import grails applications.
Does anybody know how I can run alternative Rails generators in Netbeans 6.7? I have installed nifty-scaffold and want to want to find how I can run the following command from the IDE:
script/generate nifty_scaffold etc ....
I have installed the nifty-scaffold gem, but it does not appear in the drop-down list when I select 'Generate' for my project.
(I am running NetBeans on Windows)
It would be very easy to add new generator extensions in netbeans. Netbeans doesn't do it
automatically, you need to do it manually. I am using NetBeans ver 6.8 and installed nifty generators successfully in netbeans by following procedure:
1. Download gems file of ryanb's nifty generator freely available.
2. install in netbeans from tools->rubygems-> install Local
3. go to the directory C:\Program Files\NetBeans 6.8\ruby2\jruby-1.4.0\lib\ruby\gems\1.8\gems\rails-2.3.5\lib\rails_generator\generators\components. It shows all the generators available in netbeans.
4. go to the directory C:\Program Files\NetBeans 6.8\ruby2\jruby-1.4.0\lib\ruby\gems\1.8\gems\nifty-generators-0.3.0\rails_generators. It shows the nifty generators which you have just now installed.
5. Copy all nifty generators to components directory shown in step 3.
6. right click on project and click generate and you will find the udpated list of all new generators
By
Vikas Maan
I assume that when you say you installed the gem, you did so through the Generate...->Install Generators button?
However, it does seem to be a defect. I've tested it too on Windows & Netbeans 6.7 and reproduced your problem - Netbeans can't find the generators even though script/generate can. It's probably worth shooting an email off to the Ruby Netbeans mailing list and/or filing a bug here.
You can create a folder named "generators" in your "lib" folder and put any generator folders in it and it should be working.
Or put that "generators" folder in your "vendor" folder.
Link to nifty-generator GEM(version 0.3):
http://rubyforge.org/frs/?group_id=6986
I wasn't able to install local gem from github, but above link works.
It works with Rails 2.
Where can I find project templates for Ruby on Rails to use within projects?
I am using Xcode version 3.2.2.
From what I understand, Apple stopped shipping all project templates with xcode and made them available as optional downloads, yet I cannot find the templates for Ruby on Rails anywhere.
Regards
Mick
Because the "template" of a fresh rails app can change from version to version, you should use the rails new myapp generator command at the Terminal, and the open the result in XCode organizer.
More here: http://developer.apple.com/tools/developonrailsleopard.html