Displaying 20 results from an estimated 20000 matches similar to: "Asset Pipeline (Rails 3.1.0.rc4)"
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
2012 Mar 01
1
help stylesheet_link_tag
I was reading the book "Agile Web Development with Rails 4th Edition".
In Chapter 11, Iteration C2: Adding a Page Layout
1 <!DOCTYPE html>
- <html>
- <head>
- <title>Pragprog Books Online Store</title>
5 <%= stylesheet_link_tag "scaffold" %>
- <%= stylesheet_link_tag "depot", :media => "all" %>
- <%=
2011 Sep 18
12
3.1 asset pipeline + Capistrano troubles
Hello,
I''m having 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
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
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"
2012 Mar 15
0
Make Asset Pipeline compatible with Chrome DevTools Autosave
https://github.com/NV/chrome-devtools-autosave doesn’t play nice with Asset
Pipeline. https://github.com/NV/chrome-devtools-autosave/issues/27
The culprit of the problem is in the asset’s URLs. I cannot decipher a file
path by its URL. For instance, /assets/main.css?body=1 could be either
app/assets/stylesheets/main.css, lib/assets/stylesheets/main.css
or vendor/stylesheets/main.css.
To fix
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
2006 Aug 15
0
Using config.action_controller.asset_host with ActionController::AbstractRequest.relative_url_root
I''m looking for some help with an issue I''m having using an external
asset host. I''ve got the lines below in my environments/development.rb
file.
# Enable serving of images, stylesheets, and javascripts from an asset server
config.action_controller.asset_host = "http://assets.example.com"
#make rails think it lives in /app
2013 Jul 10
0
ActionView::Template::Error Not a directory vendor/assets/javascripts/ production
Hello,
In production environment, I have this error ActionView::Template::Error
Not a directory vendor/assets/javascripts/holder.js when in my template I
have this line
<%= image_tag "holder.js/150x200" %>
My production.rb is :
Libapp::Application.configure do
# Settings specified here will take precedence over those in
config/application.rb
# Code is not reloaded
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
2012 Jan 29
1
AssetNotPrecompiledError for missing assets - really?
I migrated one of my projects to from Rails 3.0 to 3.2.1 which means
I''m using the asset pipeline for the first time.
As much as I like the ease of compressing and minifying my assets the
more I''m annoyed about its behavior to raise an
AssetNotPrecompiledError as soon as, well, there''s an asset that''s not
precompiled.
Can somebody explain me the reason why this
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 =>
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
2011 Nov 25
4
Sprockets File not Found Exception.
Hi Everyone,
I was trying out some sample applications for Rails. I created some
controllers and pages. But when i try to access one of them i get an
exception on the webpage:
---------------------------------------------------------------------
Sprockets::FileNotFound in Pages#home
Showing c:/railscode/test_app/app/views/layouts/application.html.erb
where line #6 raised:
couldn''t
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
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 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 Oct 27
0
[4.0] Wrong asset path in engines
hey,
I''m refactoring an application that live on rails edge.
I have created a mountable engine named "Admin"
mount Admin::Engine, at: "/admin"
>
<%= stylesheet_link_tag "admin/application", media: "all" %>
the link generated by sprockets is wrong, i''m getting
<link
2013 Jun 28
0
ruby on rails couldn't find file 'jquery.ui.all'
couldn''t find file ''jquery.ui.all'' which is a known issue, I added
*=require jquery.ui.all to application.css and //= require jquery.ui.all to
application.js but still get the error.
http://bpaste.net/show/1RqTDUte2XLBoj8fdTbf/
Sprockets::FileNotFound in Preorder#index
Showing
/var/www/localhost/htdocs/selfstarter/app/views/layouts/application.html.erb
where line
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