New RadRails project in Eclipse with SQL Server - ruby-on-rails

I'm trying to get into Rails development and am using Aptana Studio (RadRails) as a plugin to Eclipse (WinXP). When I create a new project with the options shown here
NewRailsProject http://www.sqeq.com/image/NewRailsProject.jpg
things go south. I get this error right away:
alt text http://www.sqeq.com/image/NewRailsProject2.jpg
Mongrel's set as the default server and it's complaining about starting because of a missing log file. Sure enough, nearly the entire project skeleton is non-existent.
Going through the same exercise with another dbms selected in the New Project screen worked just fine and I have been able to hack through things to get my project switched over from MySQL to SQL Server by installing the MS jdbc driver and getting the ADO.rb file copied into my Ruby install ala this post.
Is there a trick to getting RadRails to do this without the aforementioned workarounds?

I have to say, while this is not a specific response to your question, that I was not impressed with radrails when I last looked at it. It was built on an old version of eclipse and was pretty painful to use.
You might look around stackoverflow for some other ide choices: https://stackoverflow.com/search?q=ide+rails.

Related

Aptana studio 3 or any IDE or Text Based Editor with ruby on rails assist-code definition

I am used to using an IDE like Eclipse or Netbeans when coding in Java and having a small code assist appear to give me a small description on each of the methods available. Now code assist does work in Aptana Studio 3 for Ruby on rails, but it does not give you a small description of what the methods do, they just give you a list of the methods only. Is there any IDE or Text based editor that can give me code definition while coding or is there a way to configure Aptana Studio to do so?
As I am new to ruby, I do not want to invest and buy an IDE or Text Based Editor as of yet (though feel free to tell me if the payed ones are the ONLY ones to do what I am asking). I am running Windows 7. But if my only option is to run a VM with Linux so as to get what I am asking than please suggest the name of the IDE or Text-based editor.
Thank you.
RadRails must have a code definition according to it's description but i personally prefer not expensive most featured RubyMine
it uses RDoc so you have to be sure you have generated help during gems installation (see docs)...
(another way to browse local gem's docs is RubyGems Documentation - just run $ gem server from console but this is out of the answer to your question)

Has anyone got Rails3 development working in Xcode4? [duplicate]

Does Xcode 4 have support for rails projects? If so, to what extent?
UPDATE - Obviously it lets you edit text files. But does it give you any IDE features, e.g. syntax highlighting, navigation to declarations, code completion, etc... ?
In the past Xcode releases many were able to use the Xcode IDE for non-apple projects such as PHP, Rails, etc.
All you had to do was open Xcode organiser and drag your project in there and it worked. Not so with Xcode 4, but the feature has not been removed but in fact improved in my opinion.
In Xcode 4, click File > New > New Workspace.
Give it a name and once on the main editor window simply drag and drop your Rails, PHP, etc project onto the project navigator.
Then you can choose Editor > Syntax Coloring > [Any] for syntax highlighting.
M.
I paid up to intall XCode 4 thinking that it would be simpler to consolidate all my development to a single IDE. XCode is the default because of the built in Mac API docs. I built a few MacRuby (0.10) samples, which parse and run.
Problems are:
XCode insists on using // to comment lines, which then don't parse.
There is no debugging for Ruby files, only for the Objective C wrapper stub.
There is no in-app "run" for rack, rails or scripting type apps.
The syntax parsing is limited to keywords, strings, comments and characters.
XCode doesn't understand .erb or .yaml files are html and ruby.
There were workarounds for 1 and 5 in 3.2 for 1 and 5 but they no longer work with 4 as far as I can see.
On the plus side, the documentation interface to OSX and NextStep is very nice and MacRuby and the UI editor work well together and allow bundling desktop apps which can be distributed standalone or via the app store. I would use it to build ruby apps that use the desktop GUI.
For conventional web or scripting apps you can 'bare edit' rails projects in the 'Workspace' area and then skip to the terminal to run a server or use script/console to debug; but for this NetBeans is still far superior IMHO with in-code debugging and automated tests and workflow.
As I'm unable to respond to the comments I'll just give answering your question a shot: Considering Apple's "what's new" page doesn't seem to list too many groundbreaking changes, I'm guessing Matt Ball's suggestion to go with the guide for Leopard and assuming nothing Rails or Ruby specific is new would be a safe and probably spot-on bet.
Giving a try to xcode 4 with rails. Work fine, except some color syntaxing trouble (with yml or haml file for example). It's great, expecialy the integration of git (to show easyly modified files)

Netbeans (as RoR editor): Stop the Scanning

I've looked on the Netbeans forums, but they appear to be quite broken. I am about to give up on Netbeans my favorite Rails editor, if I cannot solve this problem.
Netbeans starts scanning projects and never stops, leaving me with no autocomplete nor any other interesting stuff. I have some very large Ruby files (40k lines: they are Excel generated code-files for DB filling), and I'd like to exclude them from scanning. Is there any way to do this?
i had the same problem with netbeans , i went to forums and all & they all say it cant be done , i'm currently using text-editors , maybe i'll use radrails or rubymine

Creating Plain .rb Files with Aptana RadRails

I have just bought a MacBook for some ruby development and like the look of Aptana Studio as a really nice IDE.
The question I have, however, is that I want to know (before getting too deep into it, and potentially wasting time) is can I create plain old .rb files without the rails framework attached? Also, can I execute the ruby file straight from the IDE, or will I have to use Terminal?
As I said, I am only just learning Ruby and I am working through some books I have bought, and while I do wish to get into rails soon, I feel its important to learn the language properly, before asking rails to do a lot of stuff for me.
Any other thoughts on best practices and other potential IDE's would also be appreciated.
For just fooling around with Ruby I suggested an editor, the command line, and IRB. You will have more fun and learn more, quicker.
After that, get into IDEs and Rails and all the complexity that comes with them.
I'd recommend Netbeans (Ruby Edition obviously) or Jetbrain's RubyMine over Aptana. I've had issues with Aptana and Ruby when I tried it. Rubymine is still in public preview release status, but it will be a paid product when it's released in a month or so. It's developed by the same people who made IntelliJ IDEA. Netbeans actually works very well with ruby and rails and it's free. Both allow you to execute ruby from within the IDE and have rails support.
I've also found irb very useful, Netbeans allows you to run irb from within the IDE as well. Having code completion and inline documentation helpful when starting out.
Yes, you can create plain old ".rb" files inside RadRails or Aptana Studio, and they don't have to be inside a Rails project or "attached to the rails framework". You can also run or debug a ruby script inside the IDE by right-clicking the file or inside the editor and choosing one of the Run As > Ruby Application or Debug as > Ruby Application entries. With Studio 3 you can even run them from an embedded Terminal view. RadRails 2.x had a Rails Shell where you could run or debug files from a command-line interface as well.
As the developer on RadRails, I'm a bit biased - but I would agree that users should be pretty familiar with using the command line whether they decide to use an IDE for daily programming or not. And of course, having an interactive REPL like irb to play with is another useful tool in getting started. Heck, you can even just use the online one first before installing ruby: http://tryruby.org/

What IDE to use for developing in Ruby on Rails on Windows? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
What Ruby IDE do you prefer?
I've generally been doing stuff on Microsoft .NET out of college almost 2 years ago. I just started looking at Ruby on Rails. So what editor should I use? I'm using Notepad++ right now but can I get debugging etc. somehow?
Try both NetBeans and RadRails for maybe a week each, then you can find which works best for you. The best advice is to learn your tool. If you are not checking out something new about your editor, something that could potentially save you time (regexp, etc) then you are doing yourself a huge disservice.
I have been using Eclipse/Aptana/RadRails and unlike Gaius have been pretty happy with it.
I recommend the Eclipse IDE for Java Developers from Eclipse Downloads: http://www.eclipse.org/downloads/
Then grab Aptana Studio, following these instructions.
When Eclipse restarts Aptana will have a view, click on rad rails and you are good to go. Just make sure you have ruby installed already, or it becomes a pain to resolve.
Aptana Studio
I use it for all web development - HTML, CSS, PHP, JavaScript, Rails...
EDIT: For full disclosure, I'm biased toward Aptana and RadRails as I know a few members of the original RadRails dev team.
rubyMine is the most full featured IDE for Rails at the current time (2012).
Personally, for rails development I had used Eclipe for several months and then netBeans for several weeks and rubyMine is clearly better than them.
It's great in all the areas that count - code views, search and replace, source control management, testing, debugging and it's got features like viewing a model dependency diagram that are really neat.
It isn't free - cost about $50-$100. This has recently become a key positive criteria for me. Too many "free" products that I invest thousands of hours getting proficient in eventually die and stop being developed but paid products pay for continued development. I've become weary of investing a lot of time and energy into such products only to have them wither and die. Given the hundreds of thousands of dollars one earns from rails development a $100 tool is a bargain.
Despite how much I love rubyMine I still use vim along side it. Sometimes my tasks works better with vim, sometimes with rubyMine.
I've been very happy with E. It's pretty lightweight and supports TextMate snippets and commands, which means you get access to a huge set of Rails-specific helpers.
However, it is decidedly an editor and not an IDE, so you won't get debugging, built in console, etc. But I've found that for Rails projects I prefer a light editor and a shell (like Console) for tests, debugging, etc.
I've been using Aptana/Eclipse/RadRails, but if I were to do it again, I'd definitely try NetBeans. Aptana has been a major headache.
I've never used IronRuby, but that might make you feel more at home.
The Netbeans IDE is a good, all around editor for many languages. I'm pretty sure the 6.5 beta has support for Ruby on Rails, along with Javascript and a few other web languages. It's worth checking out (Netbeans.org).
Sapphire in Steel integrates with Visual Studio.
I mainly code ColdFusion or PHP (and JS/CSS/xHTML), but have dabbled in a bit of RoR. RadRails/Apatana has been great for me, because it's built on Eclipse, which I was already using for my other work. It also integrates with Subversion via the Subclipse plugin.
The Eclipse platform is so extensible that it's worth investing a bit of time in to learn, but then again I like having a single IDE rather than having to switch between different apps.
I briefly looked at Netbeans, but TBH Eclipse just felt better for me, and Aptana itself is great when you come to do anything in JavaScript.
YMMV...
I use Emacs on Windows.
Installing and configuring it to work with rails is a pain though.
I found Geany to be a lightweight alternative (which works on linux as well with little modification), although I am checking out Gedit for features that not present or implemented as well in Geany.

Resources