Answer the question
In order to leave comments, you need to log in
How to set up a model and call it in a view to load an image?
Good evening.
There is a laid-out front in html (css, js), I'm learning RoR, so I wanted to add back with minimal changes to the front.
I stuffed the html into erb, created a controller, the site went up, devise, pg - everything is displayed and works as it should. But I faced the problem of loading images (Jpg, png) by clicking on the image. All casts consider creating a blog, generating html from scratch, adding images through the f.input :image form. How can I add this function to html.erb without using a form. Uploader and carrierwave are already configured.
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question