Dave Aronson wrote in post #1118796: > I've done a similar thing before, and no you don't have to sprinkle > client-choosing logic throughout your views. What we did, to enable > mobile-friendly views IF the client was on the mobile domain, was to > check the domain and, if it was the mobile one, simply prepend a > mobile-friendly dir onto the view path. That included the layout, > which specified the mobile version of the css. What you could do is > check the domain and prepend a client-specific dir. Very simple and > efficient, especially if you ONLY put in those dirs the things that > absolutely MUST change, while everything else remains the same and is > drawn from the common dir. > > -Dave >
Very clever idea, thanks Dave! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/688654e82e9e0d5c21d47b9d8bef57f9%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.