Displaying 20 results from an estimated 8000 matches similar to: "asset tag helpers"
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:
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 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
2007 Dec 16
0
Specifying asset hosts via a proc (ActionController::Base.asset_host)
Hi all,
I just submitted a patch that would allow you to pass a proc to
ActionController::Base.asset_host rather than just using a %d
wildcard (e.g. assets%d.example.com). Basically this frees you from
the hard-coded assumption that you have 4 hosts numbered 0-3 and also
allows you to do smarter things depending on the asset (e.g. images
from a particular domain, stylesheets from another). The
2008 Feb 05
0
Asset IDs not changing in development environment?
Perhaps I''m completely missing something, but...
It seems like ActionView::Helpers::AssetTagHelper#compute_public_path
keeps a cache of all public paths along with the appended asset id.
However, this means that applications (in this case, Facebook) that
cache based on the name of the file will never pull the new file if
it''s been modified.
Would it make sense to either:
(a)
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
2008 Jun 13
1
asset_host and ssl pages problem
I am configuring assets hosts for our site but am running into problems
when navigating to an https page. Basically the server is trying to pull
the assests out on https:// rather than http:/ but i do not have https
configured on the assets server. I have dug around a bit and found this
bit of code which should when a page is https:// serve the assests from
the app server and when it is not https
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
2014 Jun 11
0
my webpage does not send emails confimation/notification
Hello everybody
I have a problem with my inquireis, when I want to contact and I send the
message, I must receive two emails one of confirmation (client) and other
of notification (admin of the web page) but it does not send.
The webpage work in production environment.
When I watch the log (production.log) I seed this:
>
> There was an error delivering an inquiry confirmation:
> 503
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:
2006 Aug 10
2
Mongrel servers running in a subdirectory behind a proxy
I was able to find some information about this in the list archives,
but it ended with a possible patch being submitted for Mongrel.
I tried to follow a few of the instructions, but I''m still kind of
stuck, since I''m not sure if what I''m seeing is the proper results. I
have an application running on a cluster of mongrel servers, which is
behind pen, which in turn is
2008 Dec 05
0
Rails asset tag helpers outputting invalid xhtml
I am using Rails 2.1 and HAML for some, but not all, of my templates.
All of the self-closing asset tags (<link>, <img>) output by the rails
asset tag helper methods are not being closed at all, thus rendering my
pages as invalid XHTML. Has anyone else dealt with a similar problem? I
am completely out of ideas, so if you have any suggestions, by all
means, fire away. Thanks.
--
Posted
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
2010 Jun 08
1
session_options[:secure] resets session_id on every request
I''m working on an ecommerce site (in Rails 2.3) and I added:
ActionController::Base.session_options[:secure] = true
to ~/config/environments/production.rb
Now, every time I add something to my shopping cart and navigate away I
get a new session_id (which essentially empties my shopping cart).
How can I get the continuity of my sessions back, while still having the
session_id get set
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 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
2010 May 15
1
Asset tag helper and (Google) cache recommendations
Doesn''t he have a point? Shouldn''t Rails'' asset tag helper(s) be
changed accordingly?
http://github.com/eliotsykes/asset_fingerprint
Quote (http://code.google.com/speed/page-speed/docs/caching.html):
Recommendations
Don''t include a query string in the URL for static resources.
Most proxies, most notably Squid up through version 3.0, do not
cache
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