John,
I am not sure exactly what you're asking but if you are trying to
'personalize' many separate websites based on the calling domain
( something.com ) then I might be able to help.
I created a synthetic example of this at WebRancher.com where one code
based reads the 'request.host' object and based on the domain name
serves the appicable data to the application framework.
David

On Feb 2, 4:55 am, John Dean <rails-mailing-l...@andreas-s.net> wrote:
> Julian Leviston wrote:
> > The best way to learn is to have a real problem you want solved. Then
> > try, fail and ask questions when you're stuck.
>
> > Sent from my iPhone
>
> > On 02/02/2009, at 8:10 PM, John Dean <rails-mailing-l...@andreas-
>
> OK I do have a real project in mind. It's pretty simple for an
> experienced programmer as it's a pretty straightforward thing.
>
> I need a web site template that will have variables on it like [var1]
> [var2] etc. And I want these variables to be replaced with text from a
> DB. You'll call the script with some parameter in the URL like
> domain.com/script.rb?page=1 and it will know that it will replace the
> vars with the according ones for the DB record #1.
>
> Nothing really hard just a dynamic template page...
>
> So where do I go from here?
> --
> Posted viahttp://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to