i got ruby and mysql configured successully on my windows pc. Im using mysql as default db. so I created new rails project. I ran the cmd rake db:create:all rake db:migrate so I got the db created. I have existing db of country table. I imported it to the development db. question: is there some files I need to modify so my ror apps will know about my country table? i'm trying to display for instance state is US from the country table. Im new to ror and its cool, i love it. thanks for the help or guidance if I'm not doing something right.
on 2013-07-14 20:50
on 2013-07-14 21:04
On 14 July 2013 19:49, Oliver David <email@example.com> wrote: > > question: > is there some files I need to modify so my ror apps will know about my > country table? You need to create a model for your table (which should be called countries, rails expects table names to be plural). I suggest working right through a good tutorial such as railstutorial.org, which is free to use online. That will show you the basics of Rails. Colin