def render
      @result_html = ''
      @result_html += "<div class=\"rs-container #{self.class.name}\" id=\"#{@id}\">"
        @result_html += render_controls.gsub("<option value=\"rs-#{@effect}\">",
                                             "<option value=\"rs-#{@effect}\" selected=\"selected\">")
        @result_html += "<div class=\"rs-wrapper\">"
         @result_html += "<div class=\"rs-shadow\"></div>"
         @result_html += '<div class="rs-images">'
          @images_urls.each do |url|
            @result_html += "<img src=\"#{url}\"/>"
          end
          @result_html += '</div>'
          @result_html += '<div class="rs-cover">'
            @result_html += '<a class="rs-animation-command rs-pause" href="javascript:void(0)">Play/Pause</a>'
            @result_html += "<img src=\"#{@images_urls.first}\"/>"
          @result_html += '</div>'
          @result_html += '<div class="rs-transition">'
            @result_html += render_flips
            @result_html += render_multi_flips
            @result_html += render_cubes
            @result_html += render_unfolds
          @result_html += '</div>'
        @result_html += '</div>'
      @result_html += render_bullets
      @result_html += '</div>'

      @result_html.html_safe
    end
def render
      @result_html = ''
      @result_html += "<div class=\"rs-container #{self.class.name}\" id=\"#{@id}\">"
        @result_html += render_controls.gsub("<option value=\"rs-#{@effect}\">",
                                             "<option value=\"rs-#{@effect}\" selected=\"selected\">")
        @result_html += "<div class=\"rs-wrapper\">"
         @result_html += "<div class=\"rs-shadow\"></div>"
         @result_html += '<div class="rs-images">'
          @images_urls.each do |url|
            @result_html += "<img src=\"#{url}\"/>"
          end
          @result_html += '</div>'
          @result_html += '<div class="rs-cover">'
            @result_html += '<a class="rs-animation-command rs-pause" href="javascript:void(0)">Play/Pause</a>'
            @result_html += "<img src=\"#{@images_urls.first}\"/>"
          @result_html += '</div>'
          @result_html += '<div class="rs-transition">'
            @result_html += render_flips
            @result_html += render_multi_flips
            @result_html += render_cubes
            @result_html += render_unfolds
          @result_html += '</div>'
        @result_html += '</div>'
      @result_html += render_bullets
      @result_html += '</div>'

      @result_html.html_safe
    end
rendering images with rails slider effects