Hey there, Let''s say you have a simple application, that already have a users table and you want to re-use that on a different app. How do you work with that? []''s Rodrigo Dellacqua -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi Rodrigo, On Sun, 2010-01-10 at 18:01 -0200, Rodrigo Dellacqua wrote:> Hey there, > > Let''s say you have a simple application, that already have a users > table and you want to re-use that on a different app. > > How do you work with that?As long as the database is (one of) the ones specified in database.yml, all you need to do is create the model in your new app. HTH, Bill -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hmm.. ok. What about if you want to use multiple databases in your app? []''s Rodrigo Dellacqua On Sun, Jan 10, 2010 at 6:07 PM, bill walton <bwalton.im-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Rodrigo, > > On Sun, 2010-01-10 at 18:01 -0200, Rodrigo Dellacqua wrote: > > Hey there, > > > > Let''s say you have a simple application, that already have a users > > table and you want to re-use that on a different app. > > > > How do you work with that? > > As long as the database is (one of) the ones specified in database.yml, > all you need to do is create the model in your new app. > > HTH, > Bill > > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sun, 2010-01-10 at 19:51 -0200, Rodrigo Dellacqua wrote:> Hmm.. ok. > > What about if you want to use multiple databases in your app? >Google is a Rails developer''s best friend. The solution you''re looking for depends a lot on how you want to manage your connections. Googling ''rails multiple databases in database.yml'' http://www.google.com/search?q=rails+multiple+databases+in +database.yml&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:unofficial&client=firefox-a Googling ''rails multiple database connections'' http://www.google.com/search?hl=en&client=firefox-a&rls=com.ubuntu% 3Aen-US%3Aunofficial&hs=uEm&q=rails+multiple+database +connections&btnG=Search&aq=f&oq=&aqi HTH, Bill -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.