I started playing around with Ruby on Windows. I downloaded Ruby and started it with the command line with Ruby.
I typed in irb to the command prompt and it changed to the irb command prompt.
Then I started trying out commands like 1 => 1; and other things, but I got no output. I just go the next prompt. What ta heck am I doing with that? 🙂
What should I do to make sure I have RoR set up and start creating applications?
Thanks and sorry for the generally confused question.
In
irbyou can tell if your current line is unterminated doesn’t start with>.But more interestingly in
irbit would seem that a semi-colon(;) it won’t terminate the line. Since semi-colons(;) inRubyaren’t necessary and are just meant to be statement separators.irbwon’t actually run your statements until you end one without a semi-colon. Also1 => 1isn’t a validRubystatement.So your problem should be solved by NEVER using semi-colons in
RubyAlso all these examples were run on Windows 7 using Powershell
As Aaron mentioned the best way to get started is probably RailsInstaller. I haven’t used it personally, but it looks like it does pretty much everything for you.
I use RubyInstaller and set up my Rails environment myself. RailsInstaller does all that for you.