Hi, I have a question about template file path. I want to change template path according to a certain condition. I tried the following code and it works fine in Rails 2.1. But I don''t know this is good or not. Is there any good solution? Please give me an advice. module ActionView #:nodoc: class TemplateFinder #:nodoc: alias _pick_template_extension_ pick_template_extension #:nodoc: def pick_template_extension(template_path) #:nodoc: if a_certain_condition() new_path = "keitai/#{template_path}" template_path.replace(new_path) end _pick_template_extension_(template_path) end end end -- regards, makoto kuwata --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---