Howdy, I ran across a case where several controllers have an extra :get action which needed a template. The template is the same for all of the controllers. Instead of copying to each controller's view directory, I placed the template in app/views/templates then added this code to the end of init.rb:
http://gist.github.com/49845 What it does is if a template is not found in the normal path, then it looks for it in the app/views/templates directory. Thank you Yehuda for pointing out load_template_io in an earlier thread. This works fine, but I do have one question. Is init.rb the preferred location for adding global extensions? Thank you, Roy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
