Module: C80Wslider::ApplicationHelper
- Defined in:
- app/helpers/c80_wslider/application_helper.rb
Instance Method Summary collapse
-
#render_wslider(images, props, height) ⇒ Object
images - массив строк вида [‘frame1.jpg’,‘frame2.jpg’,…] props - описание каждой картинки в соответствующем порядке (h4,p).
Instance Method Details
#render_wslider(images, props, height) ⇒ Object
images - массив строк вида [‘frame1.jpg’,‘frame2.jpg’,…] props - описание каждой картинки в соответствующем порядке (h4,p)
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'app/helpers/c80_wslider/application_helper.rb', line 12 def (images, props, height) # предварительно соберём пути до картинок фреймов images.each_with_index do |image_name,indx| images[indx] = image_path(image_name) end render :partial => 'c80_wslider/wslider_wrapper', :locals => { images: images, props: props, height: height } end |