title: How do I send data from a controler to a view in Ruby on Rails
body: <p>I have a simple controller that was created through a scaffold and has a "Show" function.</p>
  
  <p>In the view that was created through the scaffold, I have an image that appears only on a certain condition.</p>
  
  <p>I want to set or evaluate the condition in the controller and send it to the view.
  I am not sure how to do that or whether this is the correct approach.</p>