Displaying 20 results from an estimated 10000 matches similar to: "Issue with asset pipeline helper with Rails 3.1 final release."
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
2011 Oct 22
1
Deployment issue with Rails 3.1.1
Hi, I''ve recently updated an application to 3.1.1 and Capistrano
started to fail at the assets:precompile task. It''s a strange bug that
don''t always happen (it actually worked a couple of time) and there''s
no error message, it only display "Killed". Running the rake task
locally work though. I''ve reverted to 3.1.0 and now it work with
2011 Dec 26
1
Learning Ruby on Rails 3.1 - deployment - Error (cs.jpg isn't precompiled)
Hi guys,
I''ve followed the Agile Web Development with Rails book and I''m up to
deployment. I started a Ubuntu 10.1 LTS server on Amazon EC2 for
testing, got Apache 2, mysql, rvm, ruby 1.9.2, rails 3.1 and phusion
passenger up and running as per the book.
When I come to running the actual site, it says "We''re sorry, but
something went wrong."
In
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
2013 May 08
1
Rails asset precompilation doesn't remove comments. How to enable?
I want to to test precompilation on development mode.
I set:
config.assets.digest = true
config.assets.debug = false
Then I run:
rake assets:precompile:all RAILS_ENV=development
All works, assets are precompiled but comments are not removed.
What options should I provide to make it to remove comments from assets
on precompile?
--
Posted via http://www.ruby-forum.com/.
--
You received this
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 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 Sep 02
1
can't compile assets on prod due to asset_host config && SSL requirement
My production asset_host config looks like this:
config.action_controller.asset_host = Proc.new { |source, request|
if request.ssl?
"#{request.protocol}#{request.host_with_port}"
else
"#{request.protocol}assets#{(source.length % 4) +
1}.example.com"
end
}
...which is more or less straight from the docs:
2013 May 14
4
rake precompile:assets throwing error
While running rake precompile:assets i''m getting the following error
This is the error message:
rake assets:precompile:all RAILS_ENV=production
rake aborted!
undefined local variable or method `establish_connection'' for
ActiveRecord::Base:Class
Please help
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2011 Sep 13
1
"Isn't precompiled" message while compiling
I have one JS library that references image assets in /app/assets/images/subdir/.
When I execute "bundle exec rake assets:precompile RAILS_ENV=production", I receive an error that the image file in /subdir/ isn''t precompiled ... while I''m telling it to compile all assets.
I''ve tried clearing out /public/assets/.
Any ideas?
Thanks,
Christopher Thielen
--
2013 Mar 03
1
Deploy with Capistrano. Bundle install freezes indefinetly.
I am fighting with this for 5 days... i''m getting crazy!
Here is my deploy.rb:
require "bundler/capistrano"
require "rvm/capistrano" # Load RVM''s capistrano plugin.
set :rvm_ruby_string, :local # Or whatever env you want it to run
in. ''1.9.3''
set :domain, ''www.xxx.com''
set :application,
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
2013 Feb 27
4
My SCSS compiled CSS lacks "/assets" in the generated urls
Running "rake assets:clobber assets:precompile" will generate files like
"application-xxx.css" with incorrect urls after upgrading to Rails 4.
For example url(/fields/xxx.png) when it should be
url(/assets/fields/xxx.png). For some unknown reason it worked once in
development mode, but after running rake assets:clobber I can''t get it
to work again...
Any ideas
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...
2013 May 01
2
Is there any way to update the javascript when I reload the page using rails?
Hi,
I need fix any bugs in a rails project. The problem is every time I change
anything in javascript I have to make
bundle exec rake rails_group=assets assets:clean RAILS_ENV=development and
then
bundle exec rake rails_group=assets assets:precompile RAILS_ENV=development
and finaly restart the rails server. This way spend 10 min.
Exists any other solution?
--
You received this message
2011 Aug 18
1
Rails 3.1rc6 assets / precompile change
I''m currently using Rails 3.1rc5, and deploy with capistrano. During
deploy, I precompile the assets on the server using assets:precompile
after deploy:symlink.
I noticed that "group :assets" gems in my gemfile were being included
in my production application processes (and adding a lot of memory
usage), even though they are only used during the deploy.
It looks like this
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
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 Jul 05
3
Deploying a rails 3.2 app
Hello there,
I have been working in a startup for a few weeks now, and I am responsible
for setting up the production environment and for "strengthening" the
product (a rails app).
By the way I''ve started reading "Deploying rails" from pragprog.
The deployment of the app will be done through a private beta with about
200 members.
The startup currently owns a VPS
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