search for: require_tree

Displaying 13 results from an estimated 13 matches for "require_tree".

2012 Nov 21
0
What to use //= require_tree or js,css incude tag in application.erb ?
Hi , We are using reqiure_tree in our application.js and application.css. As per i know require_tree include all js and css in application.js and application.css . We include application file of both .js and .css in our application.erb. Q . We include both .js and .css application file in application.erb . Is including in application.erb, did all .js and .css file are included in app...
2011 Jul 19
3
What does "require tree" do in Rails 3.1?
In Rails 3.1.... This is my application.css: /* *= require_self *= require_tree . */ This is my application.js: //= require jquery //= require jquery_ujs //= require jquery-ui //= require_tree . What does the "require_tree ." do? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discu...
2012 Jan 01
3
'require_tree .' does not seem to be including the available *.js files as expected. Why?
Hi, all, Happy new year :) Referring to http://guides.rubyonrails.org/asset_pipeline.html, it seems that ''require_tree .'' in myapp/app/assets/javascripts/ application.js will include all *.js files in the myapp/app/assets/ javascripts/. I have a few other *.js files in this directory : parts.js, makes.js and categories.js. Here''s an extract from the html file I am viewing: --------------- Ex...
2012 Jan 05
6
assest pipeline how to exclude some css files?
...cation.css application_internet.css application_intranet.css 1.css.scss 2.css.scss 3.css.scss intranet and internet are directories. In my layout I want to exclude the files under internet and intranet. I have created application_internet.css /* * application-internet.css * *= require_self *= require_tree ./internet */ and applicatiion_intranet.css /* * application-intranet.css * *= require_self *= require_tree ./intranet */ to include only the css under the two directories. application.css is: *= require_self *= require colorbox *= require jquery.multiselect *= require superfish *= req...
2011 Jul 07
2
Rails 3.1 + jQuery + jQuery UI = data is null
...be included in the compiled file accessible from http://example.com/assets/application.js // It''s not advisable to add code directly here, but if you do, it''ll appear at the bottom of the // the compiled file. // //= require jquery //= require jquery_ujs //= require jquery-ui //= require_tree . [application.css] ... @import "jquery-ui-1.8.14.custom.css"; ... If i try auto-complete demo, the code => <input id="tags"> gets rended to => <input id="tags" class="ui-autocomplete-input" autocomplete="off" role="textbox&qu...
2012 Aug 29
7
custom js in rails project
Hello, I have a rails project with one controller and one action, as simple as posible. And I''m trying to put some custom css and js to my own index.html.erb (not public/index.html.erb), I inluded this on the layout file: layout file: <!DOCTYPE html> <html> <head> <title>Volei</title> <%= stylesheet_link_tag "application", :media =>
2011 Sep 18
12
3.1 asset pipeline + Capistrano troubles
...peline and, I think, Capistrano. In my app layout I have: <%= stylesheet_link_tag "application", "bootstrap" %> And the relevant bits of the app dir structure are: app/assets/stylesheets/application.css.scss # Contains ''require_self'' and ''require_tree .'' as usual vendor/assets/stylesheets/bootstrap.css I''m using Capistrano''s asset pipeline support (load ''deploy/assets'') in my Capfile. When I''m deploying the app using `cap deploy` it''s precompiling the assets correctly and copying...
2011 Sep 04
1
Linking failure in stylesheet_link_tag in production mode with asset pipeline enabled
Hey, in my `application.html.erb`, I have this line: <%= stylesheet_link_tag ''application'' %> which should compile through the asset pipeline and link to the application.css (which does a `require_tree .`). In development mode, I''d expect a <link ... href="/assets/application.css" /> This file is actually delivered by, for example, the thin webserver. When starting thin in production mode (even after `rake assets:precompile`), the `application.css` is still link...
2014 Apr 29
0
Bootstrap 3.1.1 is showing as BS 2...
...2... *but it should be 3.1.1.* I am not using the direct files in the stylesheets folder, instead I created my own custom.css.scss and did @import "boostrap";. I also included the these in my application.js file. *//= require jquery//= require jquery_ujs//= require bootstrap//= require_tree .* my gemfile has: *source 'https://rubygems.org'gem 'rails', '3.2.16'gem 'bootstrap-sass'gem 'sass-rails', '3.2.5'gem 'bootstrap'gem 'bcrypt-ruby', '3.0.1'gem 'faker', '1...
2012 Feb 21
2
Asset Pipeline doubles my CSS refs?
...e the doubling of my references? the ?body=1 bits are being added by the asset pipeline - don''t know why and (I suspect) they are disabling large sections of my css/page. My Dir Structure of App/Assets/Stylesheets contains an application.css.scss with the following: /* *= require_self *= require_tree . */ I have two .css files in the app/assets/stylesheets directory ... my two sincoraish css files (one for screen, one for print). My config application.rb settings are: config.assets.enabled = true config.assets.version = ''1.0'' How can I ref my .css files correctly? -- Post...
2013 Jul 10
0
ActionView::Template::Error Not a directory vendor/assets/javascripts/ production
...o, it''ll appear at the bottom of the // the compiled file. // // 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 holder //= require bootstrap //= require_tree . In development, it''s ok. Thank you. -- 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocF...
2014 Apr 26
0
jquery_ujs.js 404
...d code directly here, but if you do, it'll appear at the bottom of the // compiled file. // // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details // about supported directives. // //= require jquery //= require jquery_ujs //= require turbolinks //= require_tree . this is my production Kopy2::Application.configure do # Settings specified here will take precedence over those in config/application.rb # Code is not reloaded between requests config.cache_classes = true # Full error reports are disabled and caching is turned on config.consider_all_...
2011 Sep 01
7
couldn't find file 'jquery' rails 3.1 stable mountable engine
When I create a new engine in Rails 3.1 stable and then access the dummy app or the engine I get an error say that the app can''t find jquery. I''ve created the engine using rails plugin new coffee --mountable I''ve also created a basic controller in the engine and the dummy app. If I remove the javascript include tag, everything works. But with the tag there it just