A
A
Alexander2014-04-16 17:27:06
Ruby on Rails
Alexander, 2014-04-16 17:27:06

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

2 answer(s)
I
Ilya Lozer, 2014-04-20
@Aice

Not sure if I understood the question correctly.
/controller
@images = Image
/view
<% if @images.count > 1 %>
# gallery code
<% else %>
# something else
<% end %>

R
Railchik, 2014-04-28
@Railchik

Perhaps you mean fancybox?! fancybox.net

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question