similar to: Asset pipeline giving me hard time. Please help !!! - (rails 3.1.3)

Displaying 20 results from an estimated 3000 matches similar to: "Asset pipeline giving me hard time. Please help !!! - (rails 3.1.3)"

2011 Nov 26
1
ActionController::RoutingError (No route matches [GET] "/image.jpg"):
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 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 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 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
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"
2011 Aug 20
1
Asset Pipeline (Rails 3.1.0.rc4)
Hey all, I''ve got an issue trying to figure out this asset pipeline stuff... So in my application layout, I have: <%= stylesheet_link_tag "application" %> which translates the URL to /assets/application.css in the HTML output. The problem is that it can never find it -- I can see the file under app/assets/stylesheets/application.css . I''ve tried moving it
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
2012 Mar 27
0
Offline apps and Asset pipeline Problem in rails3.2
I have a question about using rack-offline with asset pipeline in rails3.2.2. rack-offline creates application.manifest for local caching. This gem watches file modification then re-generate hash-key in manifest. I confuse offline apps with asset pipeline. asset pipeline provides variable paths file to assets/foo.js (actually app/assets/javascript/foo.js). I use `config.assets.debug = false`
2012 Jan 03
1
Rails 3.1 assets pipeline issue in production
I am running a jwplayer with an open ads server plugin .. it''s running fine in development, ads are served , but not in production on the remote server... I guess it''s related to the plugin file access ... in development , I wrote in the script : ''plugins'': { "/assets/jwplayer/ova-jw.swf": { "overlays": {"regions": [{
2012 Sep 16
1
“Routing Error No route matches {}” when omniauth failed on registration
(Original question was asked here: http://stackoverflow.com/questions/11506734/routing-error-no-route-matches-when-omniauth-failed-on-registration ) I am using omniauth-identity and configure its "fail on registration". My files: config/initializers/omniauth.rb OmniAuth.config.logger = Rails.logger Rails.application.config.middleware.use OmniAuth::Builder do #... provider
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
2012 Jul 27
0
How to get asset pipeline host url in Grape Api
Hi All how can i get the asset pipeline host url in grape api to append to the image url in config/environments/development.rb ActionController::Base.asset_host = "assets.example.com" i have configured the asset url. How can i generate this image with asset host url in grape api -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2013 Apr 22
0
Using rack-offline with the asset pipeline (images not cached)
Hi, I''ve been trying to incorporate https://github.com/wycats/rack-offline into my app. I followed the example in the readme that shows how to cache application.css and application.js files and that works. When I go to my browser in production mode, though, and turn off my network connection, then reload the app, the app is reloaded successfully, except for the images. I think I
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" %> - <%=
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 Apr 30
0
Rails 3.1.3 -> 3.2.3 upgrade, assets can't be found
Hello everyone, I''m upgrading one application from Rails 3.1.3 to 3.2.3 and run into a nasty problem that none of the assets are found (everything worked great before upgrade). I''ve investigated for several hours and it seems that the root of the problem is that the order of initializers becomes wrong after initializers.tsort (in railties-3.2.3/lib/rails/ initializable.rb:54).
2012 Feb 19
0
Session id unavailable if assets pipeline enabled in Rails 3.2.1
I have a Rails 2.3.2 application I am upgrading to Rails 3.2.1. I am using ActiveRecord::SessionStore connected to an Oracle database using the oracle_enhanced_adapter. On my first attempt (creating a new, default Rails 3 application copying in the application code, and fiddling with routes etc) I found that most things could be made to work, but that: request.session_options[:id] returns
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 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