Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8460265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:33:32+00:00 2026-06-10T13:33:32+00:00

I bought a theme on ThemeForest that uses a bunch of jQuery plugins (easytabs,

  • 0

I bought a theme on ThemeForest that uses a bunch of jQuery plugins (easytabs, datepicker, etc). I am trying to get them to work in my Rails application. None of them do. Here is what I think I need to do to get them to work:

1) copy the jQuery plugin to the vendor/assets/javascripts folder
2) require it in the application.js file
3) call it in the [view].js.coffee file – in my case contacts.js.coffee
4) put the required HTML into the [view].html.erb file (no javascript, or the like, just inserting the appropriate ID’s, etc into the section that the jQuery plugin is going to manipulate

I am clearly missing something because none of them work. The only jQuery plugin that I have working is the DataTables one, but I followed a RailsCast for it, and installed it using its gem. The RailsCast mentions, “fortunately, there’s a gem for this or we’d have to go through and fix the broken image links…”

I’m new to Rails / web development, and I’ve been banging my head on this wall for a couple days now, so I don’t want to blindly start updating links in a jQuery file.

How should I go about troubleshooting this?

Here the the code I’ve (mostly) cut and pasted:

from Application.js:

 WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
// GO AFTER THE REQUIRES BELOW.
//
//= require jquery
//= require jquery_ujs
//= require dataTables/jquery.dataTables
//= require plugins/ui/jquery.easytabs.min
//= require_tree .

from properties.js.coffee:

# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
jQuery ->
  $('#properties').dataTable
    sPaginationType: "full_numbers"
    bProcessing: true
    bServerSide: true
    sAjaxSource: $('#properties').data('source')
  $('#tab-container').easytabs
    animationSpeed: 300,
    collapsible: false,
    tabActiveClass: "clicked"

from index.html.erb of properties:

<!-- Tabs -->
        <div class="fluid">
            <div class="widget grid6">       
                <ul class="tabs">
                    <li><a href="#tabb1">Tab active</a></li>
                    <li><a href="#tabb2">Tab inactive</a></li>
                </ul>

                <div class="tab_container">
                    <div id="tabb1" class="tab_content">
                        Tab is active and has left tabs             
                    </div>
                    <div id="tabb2" class="tab_content"> This tab is active now</div>
                </div>  
                <div class="clear"></div>        
            </div>

            <div class="widget grid6 rightTabs">       
                <ul class="tabs">
                    <li><a href="#tabb3">Tab active</a></li>
                    <li><a href="#tabb4">Tab inactive</a></li>
                </ul>
                <div class="tab_container">
                    <div id="tabb3" class="tab_content">
                        Tab is active and has right tabs               
                    </div>
                    <div id="tabb4" class="tab_content"> This tab is active now</div>
                </div>  
                <div class="clear"></div>        
            </div>
        </div>

Here is my github account, if you really want to see what I’ve done, in all its glory
https://github.com/jonlehman/REAPP

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T13:33:34+00:00Added an answer on June 10, 2026 at 1:33 pm

    In your coffeescript you write

    $('#tab-container').easytabs
    

    Yet in your html there is no element with id tab-container, but you do use a class called tab_container (note the underscore), so your coffeescript should be

    $('.tab_container').easytabs
    

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I bought Crafting Rails Applications this weekend and noticed that the author uses bundle
All, I recently bought the following admin theme: http://themeforest.net/item/white-label-a-full-featured-admin-skin/270758 I also already have the
I'm trying to take these moving clouds: http://vintageskytheme.tumblr.com/ (it's a theme I've already bought
I bought the themeforest.net wordpress theme. I created a blog at wordpress. How to
I bought a non-wordpress theme that I'm currently adapting to wordpress. The only problem
This is a problem with a theme that I bought, and I have already
I just bought a WP theme: http://demo.wpzoom.com/evertis/ and I want to modify the Featured
I bought this program that created a pretty nice imageuploader flash script however I
I have this file from the theme of my Magento store: http://www.princessly.com/js/jquery/jquery-1.4.2.min.js And someone
Is there a command via css/javascript/jquery that shuts off external css(css included through <link

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.