Jump to content

jquery mobile photo slide work with ruby script

xuanyinwen's Photo
Posted Oct 09 2012 02:54 PM

I want to run a jQuery mobile photo swipe on the website which is build with Ruby On Rails.

The photo swipe script is:

<ul id="swipeallery">

<li><img src="_img/slide1.jpg" alt="" title=""/></li>
<li><img src="_img/slide2.jpg" alt="" title=""/></li>


When I add the photos with a Ruby script:

<li><img src="<%= property.images[i].image.url('700x525', :jpg) %>" alt="" title=""/></li>

it's not working.

How can I make the slide show work?

0 Subscribe

0 Replies