Sunday, January 24, 2010

[Rails] same controller and database, different views based on domain name

what is the easiest way to achieve that result?
i would like to keep controllers and models the same for all the
"applications", which, in fact, are the same. They only appear
different (the views, the css, and a parameter of the query that will
be sent to the database).
I could separate the rails app, but, doing that, i will need to
replicate every common change (a bug fix in a model method for
example) to all of them. is there a better way?

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate