ok so assume I have a variable that will be changing in every controller. @keyword and I am trying to find out if a specified keyword is in a post. My code is
= if posting.body =~ /<%= @keyword %>/
then post //pseudocode here not my actual code. this isn't needed
I tried using .html_safe (I am using haml btw) and .raw(i wouldn't normally do this, but was suggested on another forum question that I didn't write. I only want to pass that instance variable from the controller. I don't think this would be hard, but I know there is a way.