similar to: Asset IDs not changing in development environment?

Displaying 20 results from an estimated 10000 matches similar to: "Asset IDs not changing in development environment?"

2007 May 24
0
asset tag helpers
Is it possible to add another asset tag helper (ActionView::Helpers::AssetTagHelper ) ?? coz i''m using the ActionController::Base.asset_host = "http:// assets.example.com" for my static files.. and I want my app to get video files from that host too.. but the thing is only images, javascripts and stylesheets have the asset tag helpers with them.. what if i wanted videos? any
2007 May 24
0
asset tag helper
Is it possible to add another asset tag helper (ActionView::Helpers::AssetTagHelper ) ?? coz i''m using the ActionController::Base.asset_host = "http:// assets.example.com" for my static files.. and I want my app to get video/flash files from that host too.. but the thing is only images, javascripts and stylesheets have the asset tag helpers with them..what if i wanted videos?
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:
2008 Oct 28
7
How to override one method of AssetTagHelper
I created a file ./lib/action_view/helpers/asset_tag_helper.rb and put in it only the method I want to override. like this module ActionView module Helpers #:nodoc: module AssetTagHelper def image_path(source) compute_public_path(source, ''images'') end end end end But as soon I try this all the others methods from the overriden module are not
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
2006 Aug 06
0
Best practice: installing plugin assets in rake task or install.rb?
I noticed that a few plugins come with rake tasks to install additional assets. In Rails 1.1.4 there''s a hook file, install.rb, that is run when after the plugin has been installed (edge Rails has uninstall.rb, too). Wouldn''t it be nicer to use this (these) hooks to install (remove) plugin specific files automatically? Preferrably existing (different) files are overwritten
2006 May 23
3
image_tag problem
Hiall, I want to make an image_tag from within a controller in order to be able to present a link (with a status image) in a view. Here is my controller method (in file webca_controller.rb, hence WebcaController) def untouched_status_image_tag image_tag("open", { :alt => "Offen", :title => "Offen", :size => "12x12", :class =>
2007 Dec 01
3
Rails 2 problem with compute_public_path
I''m trying to migrate to Rails 2, but keep getting these errors all over the place: ActionView::TemplateError: wrong number of arguments (2 for 3) On line #61 of users/new.rhtml 58: <% if @captcha_error -%><div class="fieldWithErrors">< % end -%> 59: <table class="signup"><tr> 60: <td
2010 Oct 15
2
include ActionView::Helpers in Rails 3?
How do you do the equivalent of: module MyLibrary include ActionView::Helpers::AssetTagHelper end ...in Rails 3? I''m trying to upgrade my app from 2.3.9 to 3.0.1 and I have some stuff in /lib that needs to include these helpers from ActionView. It works fine in 2.3.x, but in 3.x it''s giving me the error: undefined local variable or method `config'' One of the
2009 Apr 09
4
uninitialized constant ActionView::Helpers::AssetTagHelper
Hi All, I just wiped out my hard drive, did a fresh install of os x 10.5, and upgraded to rails 2.3.2. i installed the mysql pkg for os x, and created the databases i needed for the project i was working on before the upgrade. However when i run rake db:migrate to run my migrations i get this error uninitialized constant ActionView::Helpers::AssetTagHelper I''ve found some stuff about
2006 May 23
0
rails_asset_id, query strings, and browser caching
Hi all. Now that compute_public_path calls _rails_asset_id to append a query string containing the asset file''s modification date, all asset URLs contain query strings. [1] Which, in theory, is a fantastic thing for caching, since it forces browsers to download and not cache changed assets, allows them to cache unchanged assets forever, and has no effect on the actual file or what is
2013 Nov 05
3
rails 4 logging during development, surpress asset messages?
Is it possible to surpress all those asset related messages? I have a terminal open where I run ''rails s'' and it gets hard to read. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to
2006 Jul 25
1
Battle of Namings: stylesheet_link_tag vs link_to_javascript
Link helper namings counterintuitive in an environment where convention over configuration prevails: <%= link_to_javascript ''myscript'' %> <%= stylesheet_link_tag ''mystyle'' %> A simple def in ActionView::Helpers::AssetTagHelper would fix things in a nice, backward-compatible way, such that: <%= link_to_javascript
2008 Oct 31
2
Stubbing #javascript_include_tag in a helper spec
When writing specs for a helper method, how do you set an expectation for #javascript_include_tag ? describe NeighbourhoodsHelper do describe ''#initialise_map'' do it ''should include the "foo" JS file'' do # expectation here helper.foobar end end end I''ve tried replacing "# expectation here" with the
2011 Mar 16
1
Help overriding rescue_action_in_public in Rails 3
In Rails 2.3.x, you can override render_optional_error_file like so: # ApplicationController.rb protected def render_optional_error_file(status_code) render :template => "errors/500", :status => 500, :layout => ''application'' end However, Rails 3 no longer has render_optional_error_file. Instead, you need to overriderescue_action_in_public, which I do:
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 25
0
Sprocket Digest + Debug combination broken?
Hi all, we''re just in the process of upgrading to the new asset pipeline, but I''m having an annoying issue with Sprockets. It turns out that I can''t enable both *debug* and *digest* in development mode. When I do, I get a Errno::ENAMETOOLONG because the digest becomes the *entire* *content* of the file instead of a hex. I get this with both sass and javascript.
2012 Feb 26
0
Served asset /application.css - 304 Not Modified
Hi I am thinking to hide warning that is ”Served asset /application.css - 304 Not Modified”. How can I fix something if I change the settings? I''ve run that is less than server: rails new myapp cd myapp rake db:migrate rails s client: http://localhost:3000/books warning: Started GET "/assets/books.css?body=1" for 127.0.0.1 at 2012-02-26 14:48:35 +0900 Served asset /books.css
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`
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