Displaying 20 results from an estimated 10000 matches similar to: "3.1 asset pipeline + Capistrano troubles"
2012 Jan 05
6
assest pipeline how to exclude some css files?
In my assets I have
intranet
|_1.css.scss
|_2.css.scss
internet
|_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
*=
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 Aug 31
4
Issue with asset pipeline helper with Rails 3.1 final release.
Hi, I''ve just updated my app to the final 3.1 release and deployed it to the
staging server after running tests but there is a problem with the
precompiled assets. The precompiled assets are all in the public directory,
like they were before, Capistrano doesn''t throw any error and running `rake
assets:precompile` in the current directory work as expected. But the asset
2012 Nov 02
2
jquery error in production precompiled
In my rails project, for production precompile
I do : rake assets:precompile RAILS_ENV=production
But it not work for jquery.
In my firegub console, I got the error
“ReferenceError: JQuery is not defined “
at production.rb
# Disable Rails''s static asset server (Apache or nginx will already do this)
config.serve_static_assets = true
# Compress JavaScripts and CSS
2011 Nov 01
1
Rails 3.1, stylesheet assets not being reloaded correctly?
Hi,
I''m working on a Rails 3.1 project at the moment and having a hard time
getting the stylesheets properly loaded.
My application.css.scss looks like this:
/*
* This is a manifest file that''ll automatically include all the
stylesheets available in this directory
* and any sub-directories. You''re free to add application-wide styles
to this file and they''ll
2012 Mar 29
25
Unable to deploy to Apache
Hi All,
Can someone please help? I''ve been banging my head against for wall
for 2 months; all of which has been spent trying to set up ROR. So I
actually haven''t written 1 line of code :( Any help would be greatly
appreciated :)
I''m following the 4th edition of "Agile Web Development with Rails".
So, I''m able to deploy the site via WEBrick.
2013 May 23
1
rake assets:precompile issue with JS and stylesheets files with similar name
Hi,
I''ve got following two files with same names under javascripts and
stylesheets directories as:
- app/assets/javascripts/test_vendor.js
- app/assets/stylesheets/test_vendor.scss
Essentially a JS and an stylesheet files with same name.
--------------------------------------------------------------
I want these files to be precompiled and served from public directory.
Thus I
2012 Aug 04
6
Automatic asset paths prevent logical asset organization
In 2fe70c1 (last year), rails changed from a static list of assets.paths to automatically register any path under assets/*. (This was not reflected in Rails Guides so I pushed an update to docrails.)
However, in my opinion, these automatic asset paths create confusion.
The result is that the first-level directories under `(app|lib|vendor)/assets` get swallowed and if I put assets into a
2013 Oct 12
3
Assets not loading in production
Hello,
(Rails 4, Ruby 2)
I am trying to deploy my first rails app in a production environment, but
cannot get the assets to load. The site is hosted on Webfaction, they
advise to create a "static app" to serve the assets which I have done. But
I don''t understand how my rails app then knows about the static app.
At the moment, in production inside the head it prints out...
2010 Jan 15
21
Dynamic Assets - can it be done?
I''m looking for 3 areas to work as dynamic assets:
image_path, javascript_path, and stylesheet_path
When I say dynamic, I mean that they will be dynamic through
controller/models. I have been working through approx. 12 hours of
searches to satisfy my answer to this question but am not finding much
luck.
The closest things I''ve found enabling this are use of config for assets
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
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 discussion on the web
2007 Feb 18
3
Numbers on stylesheet_link_tag and image_tag
Can anyone explain to me exactly what are those numbers that rails
appends to stylesheets and images when using stylesheet_link_tag or
image_tag? At first I thought it would be so the browser wouldn''t
cache the stylesheets, but that doesn''t make much sense for images,
plus it seems that the numbers are unique, maybe based on the session.
Any idea?
Thanks
2012 Feb 21
2
Asset Pipeline doubles my CSS refs?
Hi,
I''m trying to properly reference a .css file. Unfortunately the asset
pipeline is doubling my css references which disables my code. What
gets rendered is:
<link href="/assets/sincoraish-screen.css" media="screen"
rel="stylesheet" type="text/css" />
<link href="/assets/sincoraish-print.css" media="print"
2013 May 26
2
Ruby on Rails Asset pipeline - Pro and Cons
I was in chapter 5 of the Ruby on Rails, and I come across "Asset pipeline"
when R-o-R detect and jam all css and js files into one.
It''s true that Browser will have to make less requests, but at the same
time, the browser will potentially have to process more code than it should?
For example, I use a slider jquery plugin in gallery page, since R-o-R fuse
the plugin with
2011 Nov 26
3
Asset pipeline giving me hard time. Please help !!! - (rails 3.1.3)
I am using rails 3.1.3.
Inside config/ application -> config.assets.enabled = true
Inside development.rb -> config.assets.compress = false
Inside production.rb -> config.serve_static_assets = false;
config.assets.compile = false
I have images placed in assets/images. If i do localhost:3000/assets/
image I get the image in the browser, but
unfortunately, on the browser i am
2011 Nov 28
9
CSS Problem.
Hi Everyone,
I was going through the Rails tutorial from here:
http://ruby.railstutorial.org/chapters/filling-in-the-layout#top
I was getting this exception on my WebRick server:
Started GET "/assets/blueprint/print.css" for 127.0.0.1 at 2011-11-28
14:43:00 +0530
Served asset /blueprint/print.css - 404 Not Found (0ms)
ActionController::RoutingError (No route matches [GET]
2012 Jul 04
4
Routing error for stylesheets in rails 3.0
Hi,
I added a css file in public/stylesheets folder (I use Rails 3.0 so no
asset pipeline) and included it in my views by
"<%= stylesheet_link_tag ''ss'', :media => :all %>"
But I get a routing error on loading my page in my logs.
"ActionController::RoutingError (No route matches "/stylesheets/ss.css"
Please tell me what are the required
2006 Aug 14
2
Mongrel Cluster 0.2.1- Last Call
Hi all:
Here''s a pre-release for mongrel_cluster to support current Mongrel
0.3.13.4 pre-release.
Changes:
- ''mongrel_rails cluster::restart'' now calls ''mongrel_rails stop'' and
''mongrel_rails start''. ''cluster::restart'' now accepts the ''force''
argument instead of ''soft''.
-
2014 Apr 26
0
jquery_ujs.js 404
I am getting this annoying error which relates to jquery_ujs.js not
being served. Any clues?
This is the site link:
http://test.kopy.com.br/home/index
GET http://test.kopy.com.br/assets/jquery_ujs.js?body=1 404 (Not Found)
index:11
GET http://ads.panoramtech.net/loader.js?client=tac
net::ERR_BLOCKED_BY_CLIENT rev.js:4
Error in event handler for (unknown): Cannot read property 'state' of