Access image from different view in a view with paperclip gem ruby on rails
问题 I'm new in Ruby on Rails and learning it. I want to access a table with images stored by paperclip gem in another view, for example in my application, I have the causes controller, I can access the image in the view causes stored in the table by this code: =image_tag @cause.images.first.image.url(:thumb), But i have access too, the images stored in the table from a profile controller. So, how do i access the object of view Profiles in the view Causes? I try in the causes controller: ->