Hi Dmytrii, It is not difficult to extract the subdomain from the request (say at the application controller level or in a before filter) and then apply a different layout based on the subdomain. That would give you a fair bit of flexibility for customisation.
Cheers Adam On 06/09/2011, at 3:14 PM, Dmytrii Nagirniak wrote: > Hi, > > I was wondering ones do customisations per client in a Rails app? > Clients (businesses) do not want to bother with it and usually send their own > "layout" and stuff. So we incorporate that into the app. > > More information: > every client obtains a subdomain; > subdomain might get some of the pages customised; > when a client is on the main (www) subdomain, no customisation applies, but > same functionality is available; > I was thinking about overriding the lookup mechanism for the views to have > structure like: > views/dashboards > index.html.erb > views/subdomain1/index,html.erb > > But don't like it much as it is not very flexible (especially for assets per > client) and will get harder and harder to maintain and test. > > Have you done it before? > Any recommendations? > > Cheers, > Dmytrii Nagirniak > http://ApproachE.com > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To post to this group, send email to rails-oceania@googlegroups.com. > To unsubscribe from this group, send email to > rails-oceania+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to rails-oceania@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.