Answer the question
In order to leave comments, you need to log in
How to implement the conversion of 2 or more images in the text into a slider?
Hello. Tell me the solution on Ruby on Rails, when you insert 2 or more pictures into the text, you need to convert them into a slider (for example, a photorome).
Thank you.
Answer the question
In order to leave comments, you need to log in
Not sure if I understood the question correctly.
/controller
@images = Image
/view
<% if @images.count > 1 %>
# gallery code
<% else %>
# something else
<% end %>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question