How to use Rambling Slider Rails

93 views
Skip to first unread message

Duong vong veasna

unread,
Jun 2, 2014, 9:21:30 PM6/2/14
to rubyonra...@googlegroups.com
Dear all developers,
I want to use slideshow in my website. and i did a research rambling slider could use with rails.
but i don't know how to use it. any one could help me.

thanks you,
veasna

Daynthan Kabilan

unread,
Jun 5, 2014, 1:17:04 AM6/5/14
to rubyonra...@googlegroups.com
Hi Veasna,

Try to this flow.

Installation

Add the following line to your Gemfile :

gem 'rambling-slider-rails'

And proceed to run:

bundle install

Usage

After the installation is complete, you can include the jQuery Rambling Slider on the application.jswith:

//= require jquery
//= require jquery.rambling.slider

And the slider's styles on the application.css with:

/*
 *= require jquery.rambling.slider
 */

You can also include the slider on a specific page with the javascript_include_tag and thestylesheet_link_tag like this:

= javascript_include_tag 'jquery.rambling.slider'
= stylesheet_link_tag 'jquery.rambling.slider'

Remember to initialize the jQuery Rambling Slider with:

$(function() {
  $('#sliderId').ramblingSlider();
});




--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d996d453-5e99-4e50-b584-fbd05dbd1c0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Duong vong veasna

unread,
Jun 9, 2014, 4:18:35 AM6/9/14
to rubyonra...@googlegroups.com
Thanks you so much daynthan kabilan

I will try it.

veasna.
Reply all
Reply to author
Forward
0 new messages