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
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?