Displaying 7 results from an estimated 7 matches for "require_self".
2012 Jan 05
6
assest pipeline how to exclude some css files?
..._1.css.csss
application.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...
2011 Nov 01
1
Rails 3.1, stylesheet assets not being reloaded correctly?
...ylesheets available in this directory
* and any sub-directories. You''re free to add application-wide styles
to this file and they''ll appear at
* the top of the compiled file, but it''s generally better to create a
new file per style scope.
*= require application-pre
*= require_self
*= require application-post
*= require formtastic
*/
body {
background-color: #000;
}
which is being served just fine:
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-01
10:57:08 +0100
Served asset /application.css - 304 Not Modified (0ms)
No I change backgrou...
2011 Sep 18
12
3.1 asset pipeline + Capistrano troubles
...ing a bit of trouble with the asset pipeline 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 precompi...
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.
T...
2011 Jul 22
0
Asset Pipeline and Sprockets
Ok I would love to work out how to use the new Raisl 3.1 Asset
Pipeline with SCSS variables, mixins etc and being able to use the
asset_path tag.
What I have so far is this. Im my application.css.scss I have the
following.
*= require_self
*= require layout
*= require home
This works fine with using the asset_path helper and variable within
layout ie,
// layout.css.scss.erb
$main-color: #cccccc;
.somediv{
background: url(''<%=asset_path "small-avatar.gif"%>'') no-repeat;...
2012 Feb 21
2
Asset Pipeline doubles my CSS refs?
..." />
See 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 corr...
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 =>