Ruby on Rails Friday, September 3, 2010

On Fri, Sep 3, 2010 at 11:18 AM, PalaniKannan K <kpalanikannan@gmail.com> wrote

> Realy Sorry... If my problem was not understandable. I am a new bee... there
> is no perfect tutorials available for already existing tables to develop web
> interface. In before cases I used cgi and perl. Now I started ruby and RoR.
> I feel its totally different from cgi. If you know any turorials with
> examples, kindly tell me. In previously mentioned link, I am unable to
> understand.

The earlier link was irrelevant, ignore it. The advice to google "rails
legacy database" from Ar Chron should help, though.

In any case, make a copy of your existing DB and point your Rails
app at it.

Create a model based on an existing table e.g. "things", as in

class Thing < ActiveRecord::Base
end

Then start a console and type

thing = Thing.first

Look at the result. That should get you started :-)

And no, sorry, I don't know of any specific tutorials on doing this. It
would probably be easier if you'd already developed at least a trivial
green-field Rails app (gone through the basic tutorials, guides, etc.)

FWIW, and good luck,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment