title: convert variable as :symbol and pass?
body: <p>Im trying to pass a function variable to carrier wave as a symbol to no avail, how could I do this correctly?</p>
  
  <p>Like so:</p>
  
  <pre><code>    image_tag @profile.photos.first.file_url(:size)
  </code></pre>
  
  <p>My function:</p>
  
  <pre><code>  # Get avatar in correct size
    # Display or return default image
    def get_avatar(id, size)
  
      this_size = size.to_sym
      @profile = User.find(id).profile rescue nil
      image_tag @profile.photos.first.file_url(this_size)
  
    rescue
      image_tag ("/assets/avatars/img_#{size}.png")
   end
  </code></pre>