Hi everyone, I''m developing an application that involves 3 websites: one for the clients, one for other companies (kinda like other type of client), and one the admin. I''d like to know how to get information from each an manipulate, for example: I want to get the number of clicks on a link in the menu of the clients website, and wanna display this information at the companies website. Thank you, Rodrigo -- 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.
Sergio Sergio
2011-Jun-30 22:37 UTC
Re: Help with cross information between different websites
It depends on the architecture of your project. You could have one database for the clients app and one for the companies app, and in the companies app project you could connect to both databases(companies and clients) and just query the clients database for information. That''s one solution, as I mentioned, It all depends on the architecture 2011/6/30 Rodrigo Ruiz <rodrigo.ruiz7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> Hi everyone, I''m developing an application that involves 3 websites: one > for the clients, one for other companies (kinda like other type of client), > and one the admin. > > I''d like to know how to get information from each an manipulate, for > example: I want to get the number of clicks on a link in the menu of the > clients website, and wanna display this information at the companies > website. > > Thank you, > Rodrigo > > -- > 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. >-- 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.
Rodrigo Ruiz
2011-Jul-01 01:18 UTC
Re: Help with cross information between different websites
what is query? and I don''t know if thats what you understood, but I thought about making the different websites in different projects On Fri, Jul 1, 2011 at 12:37 AM, Sergio Sergio <sergio.sprite-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> It depends on the architecture of your project. You could have one database > for the clients app and one for the companies app, and in the companies app > project you could connect to both databases(companies and clients) and just > query the clients database for information. That''s one solution, as I > mentioned, It all depends on the architecture > > 2011/6/30 Rodrigo Ruiz <rodrigo.ruiz7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > >> Hi everyone, I''m developing an application that involves 3 websites: one >> for the clients, one for other companies (kinda like other type of client), >> and one the admin. >> >> I''d like to know how to get information from each an manipulate, for >> example: I want to get the number of clicks on a link in the menu of the >> clients website, and wanna display this information at the companies >> website. >> >> Thank you, >> Rodrigo >> >> -- >> 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. >> > > -- > 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. >-- 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.
Chirag Singhal
2011-Jul-01 05:00 UTC
Re: Help with cross information between different websites
Hi Rogrigo What Sergio is trying to say here is something like this: 1. You can have 3 different Rails apps for this, with 3 different databases. And then for the admin app, you can connect to the client app and company app database and pull information from there. For this, you will have to specify two other databases in your database.yml file, one with connection details of client app database and another with connection details for company app database. Then either you can direct do sql queries on those databases or define corresponding models for the related tables in your admin app, and ask them to connect to right database. Using something like this in the model - "establish_connection ''company_database'' " 2. Have 3 different Rails apps but use the same database for all three. Then you directly have access to all the company and client data in your admin app as well. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/SF_2iTTR8ggJ. 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.