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 9019235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:43:41+00:00 2026-06-16T04:43:41+00:00

how to load tree(!) of vendor to rails 3 app ? Now Im using

  • 0

how to load tree(!) of vendor to rails 3 app ?

Now Im using this way:

//= require vendor ../../../vendor/assets/ {stylesheet or javascript}

And this won’t work for me:

require_tree vendor OR require vendor
  • 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-16T04:43:43+00:00Added an answer on June 16, 2026 at 4:43 am

    I suggest you create files like

    • vendor/assets/javascripts/vendor.js
    • vendor/assets/stylesheets/vendor.css

    Inside vendor.js you can do

    //= require_tree .
    

    and inside vendor.css you can do

    /* 
     *= require_tree .
     */
    

    And then inside app/assets/javascripts/vendor.js put

    //= require vendor
    

    and in app/assets/stylesheets/vendor.css put

    /* 
     *= require vendor
     */
    

    It should be noted, once you get more than a couple files you want to include, you’re very likely better off avoiding require_tree and instead using a //= require line for each file independently. This lets you order your assets properly to ensure any dependencies on one another are resolved. By doing what I describe above you set yourself up for success with the individual //= require lines in your vendor/ directories when that time comes.

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

Sidebar

Related Questions

I'm using SASS to load stylesheets in a Rails 3.1(sass-rails 3.1) app. For example,
I am using jquey.nestable plugin to render tree. Now on page load the tree
I'm loading pages asynchronously with the jQuery load function, like this: tree.click(function() { if
I load a webpage from my assets in a webview. Now i need to
I load a web page by using WebView in my app and there are
I would like know , what is the best way to sync/load tree panel
I'm using Rails 3.2.9. I have some Javascript/jQuery libraries I use, so I placed
Im using PHP to load a website in a DOM Tree. Is there a
I'm trying to load nested JSONData into my tree grid. On the first call
load.js: jQuery(document).ready(function($) { $('.dialog ul li').click(function(e) { switch($(this).attr('id')) { case 'addProject': $('.addDialog').load('/add/addprojectform'); break; case

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.