search for: serve_static_asset

Displaying 9 results from an estimated 9 matches for "serve_static_asset".

Did you mean: serve_static_assets
2012 Nov 02
2
jquery error in production precompiled
...or 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 config.assets.compress = true config.assets.precompile = [''*.js'', ''*.css''] at application.js // = require jquery_ujs // = require jquery // = require jquery.jcarousel.min // = requier_tree . how I do for that Re...
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 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 unable to view the images, I am getting following errors in development mode. Haven''t tested yet i...
2011 Mar 16
0
Making Mongrel/WEBRick serve static assets with future expires header
...). Normally, I''d fix this by setting future expiry dates on these assets in the Apache proxy in front of the Mongrel/WEBRick, so that the assets are only requested once, and after that there is only one request per action. But in this case, there is no proxy, and i''m using config.serve_static_assets = true So the question is: is it possible to tell Mongrel/WEBrick to slap far- future expiry headers on the static assets? I''m using Rails 3 on Ruby 1.9.2. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to th...
2011 May 25
0
(solution) .js and .css error when using production environment
...route matches "/javascripts/application.js"): ActionController::RoutingError (No route matches "/favicon.ico"): Solution: in config/environments/production.rb: # Disable Rails''s static asset server # In production, Apache or nginx will already do this # config.serve_static_assets = false The key is to comment the third line. I know: using Mongrel for production isn''t recommended, to say the least. I''m just posting the info so if you try it, you''ll know why it''s behaving differently. -- Posted via http://www.ruby-forum.com/. -- You...
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 unable to view the images, I am getting following errors in development mode. Haven''t tested yet i...
2013 Jul 10
0
ActionView::Template::Error Not a directory vendor/assets/javascripts/ production
...equests config.cache_classes = true # Full error reports are disabled and caching is turned on config.consider_all_requests_local = false config.action_controller.perform_caching = true # Disable Rails''s static asset server (Apache or nginx will already do this) config.serve_static_assets = false # Compress JavaScripts and CSS config.assets.compress = true # Don''t fallback to assets pipeline if a precompiled asset is missed config.assets.compile = true # Generate digests for assets URLs config.assets.digest = true # Defaults to nil and saved in location s...
2014 Jun 11
0
my webpage does not send emails confimation/notification
...tween requests config.cache_classes = true # Full error reports are disabled and caching is turned on config.consider_all_requests_local = false config.action_controller.perform_caching = true # Disable Rails's static asset server (Apache or nginx will already do this) config.serve_static_assets = false # Compress JavaScripts and CSS config.assets.compress = true # Don't fallback to assets pipeline if a precompiled asset is missed config.assets.compile = true # Generate digests for assets URLs config.assets.digest = true # Defaults to nil and saved in location specified...
2014 Apr 26
0
jquery_ujs.js 404
...ween requests config.cache_classes = true # Full error reports are disabled and caching is turned on config.consider_all_requests_local = false config.action_controller.perform_caching = true # Disable Rails's static asset server (Apache or nginx will already do this) config.serve_static_assets = false # Compress JavaScripts and CSS config.assets.compress = true # Don't fallback to assets pipeline if a precompiled asset is missed config.assets.compile = true # Generate digests for assets URLs config.assets.digest = true # Defaults to nil and saved in location specif...