Hello, I just want to check in the code if some template is present in views or not. In rails 2.3 I did this with following code - view_paths.find_template(template_path, default_template_format). But in rails3 it doesn't work and when I try to use view_paths.find with some parameters, I get strange error:
NoMethodError Exception: You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.map Can you help me with function to check if view exists in rails3? -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

