On 14 July 2013 19:49, Oliver David
<odavid3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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?
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
>
> 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.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/rubyonrails-talk/b1a33587-5060-4de5-a050-f21f4f3883ff%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuD%3Di4VtLhgwTnrr%2BBtp36_4bFKo6LDVxLLX1t0_U5Aaw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.