Newbie learning RoR

Hey yall

OS: Windows7
Browser: Firefox8.0

I am new to RoR and finally got it installed (I think). I used
railsInstaller: http://railsinstaller.org/ and downloaded ‘vim’. I was
unable to install RoR manually the first time since I stumbled across
a slight error ‘lib’ file missing so I used the railsInstaller and got
it going. I tested it on http://localhost:3000/ and its displaying
fine. I terminated the page using ‘Ctrl + C’ and refresh the localhost
page and it was not displaying. So far so good.

My question is:

  1. How do I create an web app to a specific URL?
  2. Where is the database suppose go to or link to?
  3. I open up vim but not sure what to do here?

I would kindly appreciate anyone’s help.

Thanks in advance
CHEERS :slight_smile:

On Nov 11, 2:25am, buckmajor [email protected] wrote:

fine. I terminated the page using ‘Ctrl + C’ and refresh the localhost
page and it was not displaying. So far so good.

My question is:

  1. How do I create an web app to a specific URL?

Once you’ve got an app ready you’ll need to deploy it to a server and
get a domain name for it. Heroku is a good option if you just want to
play around for free

  1. Where is the database suppose go to or link to?
    Not sure what you mean there
  1. I open up vim but not sure what to do here?

It’s a text editor. Work out what files you want to create/edit in
your app, use vim to do so (or any other text editor you like - you
don’t have to use vim). You might want to read some of the guides at

Fred

On 11 November 2011 02:25, buckmajor [email protected] wrote:

fine. I terminated the page using ‘Ctrl + C’ and refresh the localhost
page and it was not displaying. So far so good.

My question is:

  1. How do I create an web app to a specific URL?
  2. Where is the database suppose go to or link to?
  3. I open up vim but not sure what to do here?

Start by working through some rails tutorials. railstutorial.org is
good and is free to use online. Also work through the Rails Guides,
starting with ‘Getting Started’ obviously.

With regard to using vim as the editor, any text editor will suffice
so just use whichever one you already use for development.

Unless you are absolutely stuck with using windows then I suggest
using this as an excuse to try out a linux distribution such as
Ubuntu. Most of those developing rails apps use linux or Mac and it
is generally more straightforward. I can almost guarantee that you
would not regret the time spent learning Ubuntu, it is great to feel
back in control of the PC again.

Colin

  • By deploying to a server do you mean I have to upload railsInstaller
    to the server do the process again?
  • Heroku?? Cool, I will check them out and go from there.
  • Database: I thought you need a database or something.

Too easy :wink:

On Nov 10, 9:47pm, Frederick C. [email protected]

I don’t know anything about Ubuntu but I’m reading it now and its like
another OS for linux. I will read the reviews and make my decision from
there.
Too easy, thanks :wink:

Start by working through some rails tutorials. railstutorial.org is

On Nov 12, 4:34am, buckmajor [email protected] wrote:

  • By deploying to a server do you mean I have to upload railsInstaller
    to the server do the process again?

The server will need rails, ruby etc. installed. With some providers
you have to do that yourself, others will take care of that for you

  • Heroku?? Cool, I will check them out and go from there.
  • Database: I thought you need a database or something.

Most rails apps do indeed use a database although you don’t have to.
Mysql and postgresql are 2 commonly used ones.

Fred

Thanks Fred.

I installed ROR on Heroku with no issues.

The server will need rails, ruby etc. installed. With some providers
you have to do that yourself, others will take care of that for you.
Most rails apps do indeed use a database although you don’t have to.
Mysql and postgresql are 2 commonly used ones.

Ok, if I install RoR on my web/hosting server using this domain name
e.g. test.abc.com.au, how does the CMD connects to it? I sort of know
how to use MySql but that’s from creating a database through Cpanel,
etc.

Thanks

On Nov 12, 2:26am, Frederick C. [email protected]

Too easy, thanks :wink:

On Nov 15, 1:00am, Frederick C. [email protected]

On Nov 15, 2:40am, buckmajor [email protected] wrote:

Ok, if I install RoR on my web/hosting server using this domain name
e.g. test.abc.com.au, how does the CMD connects to it? I sort of know
how to use MySql but that’s from creating a database through Cpanel,
etc.

as it how do you run commands on that server. Normally you would ssh
to that server and run the commands there. Heroku is a bit special
though - i’d start by reading through the articles at

Fred