Your Ruby IDE


#1

Just a poll here i am looking for a good IDE for rails and wondering
what you guys use?

features i like in an ide

code highlites
auto code complete
file browser

Currently i am using dreamwever but the code highliting is really bad
its also a pain to set up other doucment types such as .yml data config.


#2

Hi,

There is only one answer:
Eclipse 3.1 + Radrails (http://www.radrails.org/)

Seb

On 3/25/06, Stewart M. removed_email_address@domain.invalid wrote:

its also a pain to set up other doucment types such as .yml data config.


Posted via http://www.ruby-forum.com/.


Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails


Sebastien H.
Open Source & Web Consultant
EasyBox Technologies
Rue des Terreaux 7
CH-1003 Lausanne
Switzerland
Tel: + 41 21 312 58 66
Fax: + 41 21 312 58 65
Mob: +41 79 541 59 50
Skype: cebastyen


#3

I’m using TextMate.

I’d love to try out VIM.


#4

Oh, you’re on windows, sorry.

Yeah check out RadRails.


#5

Robert MannI wrote:

I’m using TextMate.

I’d love to try out VIM.

can textmate run on a pc?

whats VIM?


#6

Stewart M. wrote:

whats VIM?

I think that when you have to ask that, Vim is not for you…

It’s a modal editor, where you can place the editor in command mode,
which causes your keys to carry out commands, like “change word”,
“delete 5 lines”, etc. But when you’re used to GUI editing and moving
the cursor with the arrow keys, instead of with jlki, Vim is not for
you…


#7

Sebastien H. wrote:

Hi,

There is only one answer:
Eclipse 3.1 + Radrails (http://www.radrails.org/)

Seb

I tried a Rails plugin for Eclipse a while ago, but it was very
incomplete and buggy, but I can’t remember the name. Could that have
been radrails, or is/was there another one out there?

Can you edit rhtml with Radrails properly?

How far does the code completion go? I’m used to Java code completion
and real-time correctness-checking, which worked flawlessy. The code
completion gave you every option that exists (a row of methods for an
object for example), and when the editor didn’t mark any code as wrong,
the code was correct. Typing in a varname which didn’t exist caused the
editor to mark it. Does radrails go that far?


#8

humm just got rad rails then…

Looks really nice but it seems to assme that your using a server on your
local machine. I have to been using it long but there does not seem to
be a way to put it to remote folders and databases. I am running a fc5
testing box in another room and i would like to run it all off that. I
have mapped my rails apps folder to my r drive so its ok i suppose…
will keep looking in to it

LOL vim does not sound like its for me at all i am all about gui over
here :wink:


#9

easy fix:
mount your remote volume with [net use] on windows and [smbmount] on
unix

there should be equivalent stuff on mac-os


#10

Peter E. wrote:

easy fix:
mount your remote volume with [net use] on windows and [smbmount] on
unix

I believe he’s already done that. His “r” drive, is probably “r:”. And
you can easily map a network share to a drive letter in Windows, without
“net use”.

BTW, when on Unix, smbmount is only the correct choice when the network
drive is a smb share. It may very well be NFS.


#11

Wiebe C. wrote:

Stewart M. wrote:

whats VIM?

I think that when you have to ask that, Vim is not for you…

It’s a modal editor, where you can place the editor in command mode,
which causes your keys to carry out commands, like “change word”,
“delete 5 lines”, etc. But when you’re used to GUI editing and moving
the cursor with the arrow keys, instead of with jlki, Vim is not for
you…

A month ago I had to ask “What’s VIM”, and then I found out and started
using it, and now it’s definitely for me.

These things can be learned :slight_smile:

Jeff


#12

I’m using RaidRails on Windows XP with a Samba share
Thanks to Cygwin I can run X Windows sessions (KDE) from my Windows
workstation and then works easily with the breakpointer, script/generate
and rake in several terminal windows.


#13

Wiebe C. wrote:

Peter E. wrote:

easy fix:
mount your remote volume with [net use] on windows and [smbmount] on
unix

I believe he’s already done that. His “r” drive, is probably “r:”. And
you can easily map a network share to a drive letter in Windows, without
“net use”.

BTW, when on Unix, smbmount is only the correct choice when the network
drive is a smb share. It may very well be NFS.

yes thats corrent i have already mapped the dirve… thanks to samba i
was able to do this. Still not sure how to add a rad rails remote
database to the mix. Will try and work this out today as it looks like
a really nice ide. Still does not seem to support much in the way of
html editing… well not like dreamweaver does anyway. There are still a
number of features in dreamweaver that make it a cut above the rest.
Hopfully adobe catch on to this rails trend but thats unlikely with CF
hanging around.

A couple of other funny things i noticed with rad rails…

  1. keeps saying that i need java ver 1.4.1 and that i have got 1.3.1_2
    which is od d as i go to my java console and it says that i have
    1.4.1_2.

  2. When i click generate skelenton of the app upon starting a new
    project it does not seem to work…

i know this is not really a rad rails forum but i just thought i would
add it in here for the sake of the forum… lol any one had any of the
same issues i am having???


#14

Stewart M. wrote:

Christophe G. wrote:

I’m using RaidRails on Windows XP with a Samba share
Thanks to Cygwin I can run X Windows sessions (KDE) from my Windows
workstation and then works easily with the breakpointer, script/generate
and rake in several terminal windows.

ahh so your running it though a vpn?

lol sorry a vnc


#15

Christophe G. wrote:

I’m using RaidRails on Windows XP with a Samba share
Thanks to Cygwin I can run X Windows sessions (KDE) from my Windows
workstation and then works easily with the breakpointer, script/generate
and rake in several terminal windows.

ahh so your running it though a vpn?


#16

Stewart M. wrote:

Stewart M. wrote:

Christophe G. wrote:

I’m using RaidRails on Windows XP with a Samba share
Thanks to Cygwin I can run X Windows sessions (KDE) from my Windows
workstation and then works easily with the breakpointer, script/generate
and rake in several terminal windows.

ahh so your running it though a vpn?

lol sorry a vnc

Not at all - I run a full xsession from cygwin. It’s really really easy
to setup if you have XFree allready running on your server (2 options to
change on server side, 1 bash line on cygwin windows XP side).
It works like a breeze (eg. cut and paste from Windows XP <–> XWindows
uses the usual keyboard commands)

I’ve used this solution for years now and never had the need to use vnc
instead - and honestly, I prefer to avoid setting up another
daemon/service (vnc) on the server.

But using vnc vs XFree/cygwin is certainly a matter of taste.


#17

Stewart M. wrote:

yes thats corrent i have already mapped the dirve… thanks to samba i
was able to do this. Still not sure how to add a rad rails remote
database to the mix. Will try and work this out today as it looks like

You should be able to just specify the host name in database.yml… i.e.
myhost.com
instead of “localhost” (without the quotes of course). Make sure the db
accepts TCP
connections too.

a really nice ide. Still does not seem to support much in the way of
html editing… well not like dreamweaver does anyway. There are still a
number of features in dreamweaver that make it a cut above the rest.
Hopfully adobe catch on to this rails trend but thats unlikely with CF
hanging around.

Dreamweaver is pure evil. HTML is just as valuable code as Ruby… would
you want some
macrodobey monstrosity creating your Ruby for you? Proper HTML markup
conveys the intent
or meaning of the data it’s marking up (i.e. HTML is NOT a presentation
language) so how
could a stupid machine ever get it right? :slight_smile:

A couple of other funny things i noticed with rad rails…

  1. keeps saying that i need java ver 1.4.1 and that i have got 1.3.1_2
    which is od d as i go to my java console and it says that i have
    1.4.1_2.

Java comes in two forms, the JRE (Java Runtime Environment) and the JDK
(Java Development
Kit) and you can have multiple installed (I have four). Your Java
console is probably
telling you that your JRE is 1.4.1_2 but you probably also have a
1.3.1_2 (either JDK or
JRE) somewhere.

Eclipse has it’s own configuration for which of the installed JDKs it
uses. RadRails
standalone does not appear to have this, so if you’re using that, well
you can still
uninstall the java 1.3. But if you’re using Eclipse, go to the
preferences and under "Java

Installed JREs" you can tell it about the 1.4 JRE.

  1. When i click generate skelenton of the app upon starting a new
    project it does not seem to work…

I remember having that problem… I think it was that it hadn’t found my
ruby
installation… You can fix that in “preferences > Ruby > Installed
interpreters”. Would
be if it gave you an error at least, huh?

i know this is not really a rad rails forum but i just thought i would
add it in here for the sake of the forum… lol any one had any of the
same issues i am having???

NP… seems like everyone’s pretty flexible here… :slight_smile:

By the way, Victor K. has some nice looking tutorials (including
radrails) at:

http://wiki.awebfactory.com.ar/awebfactory/published/HomePage

good luck!

b


#18

Ben M. wrote:

Stewart M. wrote:

yes thats corrent i have already mapped the dirve… thanks to samba i
was able to do this. Still not sure how to add a rad rails remote
database to the mix. Will try and work this out today as it looks like

You should be able to just specify the host name in database.yml… i.e.
myhost.com
instead of “localhost” (without the quotes of course). Make sure the db
accepts TCP
connections too.

a really nice ide. Still does not seem to support much in the way of
html editing… well not like dreamweaver does anyway. There are still a
number of features in dreamweaver that make it a cut above the rest.
Hopfully adobe catch on to this rails trend but thats unlikely with CF
hanging around.

Dreamweaver is pure evil. HTML is just as valuable code as Ruby… would
you want some
macrodobey monstrosity creating your Ruby for you? Proper HTML markup
conveys the intent
or meaning of the data it’s marking up (i.e. HTML is NOT a presentation
language) so how
could a stupid machine ever get it right? :slight_smile:

A couple of other funny things i noticed with rad rails…

  1. keeps saying that i need java ver 1.4.1 and that i have got 1.3.1_2
    which is od d as i go to my java console and it says that i have
    1.4.1_2.

Java comes in two forms, the JRE (Java Runtime Environment) and the JDK
(Java Development
Kit) and you can have multiple installed (I have four). Your Java
console is probably
telling you that your JRE is 1.4.1_2 but you probably also have a
1.3.1_2 (either JDK or
JRE) somewhere.

Eclipse has it’s own configuration for which of the installed JDKs it
uses. RadRails
standalone does not appear to have this, so if you’re using that, well
you can still
uninstall the java 1.3. But if you’re using Eclipse, go to the
preferences and under "Java

Installed JREs" you can tell it about the 1.4 JRE.

  1. When i click generate skelenton of the app upon starting a new
    project it does not seem to work…

I remember having that problem… I think it was that it hadn’t found my
ruby
installation… You can fix that in “preferences > Ruby > Installed
interpreters”. Would
be if it gave you an error at least, huh?

i know this is not really a rad rails forum but i just thought i would
add it in here for the sake of the forum… lol any one had any of the
same issues i am having???

NP… seems like everyone’s pretty flexible here… :slight_smile:

By the way, Victor K. has some nice looking tutorials (including
radrails) at:

http://wiki.awebfactory.com.ar/awebfactory/published/HomePage

good luck!

b

Wow Ben you Guru

OK

  1. got the database in order wiht the ports and the hostname. so no more
    problems there.

  2. LOL i love dreamweaver so i will have to disagree i find it really
    good to edit pages and it handles html ok. For the most part i type out
    all the html code my self using the WYSIWYG editor at times. ITs good
    for doing things like CSS as it has text prediction which is really
    handy!!!

  3. Tryed uninstalling all java apps from my machine and reinstalled 1.5
    aka java 5 run time. Did not help… i can still run radrails however i
    have to use the setup.jar file and not the exe when i want to run the
    app.

  4. I think i will just continue using the shell to do this. I have
    putty all setup so its just as easy. I checked the way to set it up but
    once again it seems to assume you are running the run times form the
    local machine which i am not… I suppose i could map the bin folder to
    a drive and use it that way but i really cant see it saving me much
    time… what do you think about this Ben?

  5. Yea this forum is really good everyone is soo helpful of new users.
    This is a really good chanage form a lot of other forums you go to on
    the internet…

I checked out that other site you posted. Went right in to the book
marks i will be working thoguh some of the tutes this week. I am still
waiting on a rails book in the post before i get right in to it


#19

Ben M. wrote:

Dreamweaver is pure evil. HTML is just as valuable code as Ruby… would
you want some
macrodobey monstrosity creating your Ruby for you? Proper HTML markup
conveys the intent
or meaning of the data it’s marking up (i.e. HTML is NOT a presentation
language) so how
could a stupid machine ever get it right? :slight_smile:

Does this mean you can edit rhtml with radrails properly? Most IDE’s are
not aware of the JSP or rails tags in the HTML, and will mark it as bad.
And, being able to automaticly create open and close tags would be
welcome too.

And most importantly, can it code-complete in rhtml (or .rb files for
that matter)? When you have a view and you’re typing “object.”, does the
“.” trigger a list of methods you can use?


#20

Wiebe C. wrote:

Ben M. wrote:

Dreamweaver is pure evil. HTML is just as valuable code as Ruby… would
you want some
macrodobey monstrosity creating your Ruby for you? Proper HTML markup
conveys the intent
or meaning of the data it’s marking up (i.e. HTML is NOT a presentation
language) so how
could a stupid machine ever get it right? :slight_smile:

Does this mean you can edit rhtml with radrails properly? Most IDE’s are
not aware of the JSP or rails tags in the HTML, and will mark it as bad.
And, being able to automaticly create open and close tags would be
welcome too.

More or less, syntax coloring is sometime funky with rhtml files but
RadRails is still under beta - No auto close either, or I missed this
one.

And most importantly, can it code-complete in rhtml (or .rb files for
that matter)? When you have a view and you’re typing “object.”, does the
“.” trigger a list of methods you can use?

Not really, it provides a very minimal code completion (in fact sort of
code completion) for classes names and ruby standard methods.