Forum: Ruby on Rails How to connect ruby on rails to mysql

Posted by Venkat Vejandla (venkey81185)
on 2013-02-07 10:34
Hi Friends,

 i am new to ruby on rails, i want to connect mysql from ruby on rails,
how i connect and how to operations like  create and update delete . any
one have idea please help me out

Thanks In Advance
V.Venkateswara rao
Posted by Dheeraj Kumar (Guest)
on 2013-02-07 10:37
(Received via mailing list)
Go read a tutorial.

http://ruby.railstutorial.org/ruby-on-rails-tutorial-book

--
Dheeraj Kumar
Posted by Colin Law (Guest)
on 2013-02-07 10:46
(Received via mailing list)
On 7 February 2013 09:36, Dheeraj Kumar <a.dheeraj.kumar@gmail.com> 
wrote:
> Go read a tutorial.
>
> http://ruby.railstutorial.org/ruby-on-rails-tutorial-book

Agreed, but do more than read it, work right through the tutorial in
order to understand the basics of rails.  The tutorial is free to use
online.

Colin
Posted by Venkat Vejandla (venkey81185)
on 2013-02-07 12:07
Colin Law wrote in post #1095694:
> On 7 February 2013 09:36, Dheeraj Kumar <a.dheeraj.kumar@gmail.com>
> wrote:
>> Go read a tutorial.
>>
>> http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
>
> Agreed, but do more than read it, work right through the tutorial in
> order to understand the basics of rails.  The tutorial is free to use
> online.
>
> Colin




Thank you Colin....
Posted by BalaRaju Vankala (Guest)
on 2013-02-07 13:47
(Received via mailing list)
For connecting mysql to your rails App follow below commands

1. in terminal when your creating new App
    rails new <App Name>  -d  mysql (-d for database)
2. Open your database.yml file (Appname/config/database.yml)
     give password of your mysql at DEVELOPMENT and Testing
3. rake db:create
4.rake db:migrate




On Thu, Feb 7, 2013 at 4:37 PM, Venkat Vejandla 
<lists@ruby-forum.com>wrote:

> >
> --
> 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@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


--
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.