How to load a html.haml file from a custom class, store in a var its data, then apply some instance variables and render it in the view?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your description of the problem is light on details, but I think your HAML file should be a partial, and you can just use
in your view, and pass the variables you want via :locals.
There is a description of working with partials in this guide.