Displaying 15 results from an estimated 15 matches for "asset_tag_helper".
2011 Mar 16
1
Help overriding rescue_action_in_public in Rails 3
...%= stylesheet_link_tag "app", "jquery-ui", "jquery.fancybox", :cache => "all" %>
Whatever ActionView normally uses to render templates isn''t getting loaded.
The stack trace is:
/var/lib/gems/1.8/gems/actionpack-3.0.5/lib/action_view/helpers/asset_tag_helper.rb:794:in `join''
/var/lib/gems/1.8/gems/actionpack-3.0.5/lib/action_view/helpers/asset_tag_helper.rb:794:in `rails_asset_id''
/var/lib/gems/1.8/gems/actionpack-3.0.5/lib/action_view/helpers/asset_tag_helper.rb:817:in `rewrite_asset_path''
/var/lib/gems/1.8/gems/action...
2011 Oct 25
0
Sprocket Digest + Debug combination broken?
....1)
lib/sprockets/helpers/rails_helper.rb:141:in `digest_for'' actionpack (3.1.1)
lib/sprockets/helpers/rails_helper.rb:154:in `rewrite_asset_path'' actionpack
(3.1.1) lib/action_view/asset_paths.rb:27:in `compute_public_path''
actionpack (3.1.1)
lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb:64:in
`path_to_asset'' actionpack (3.1.1)
lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb:19:in
`asset_tag'' actionpack (3.1.1)
lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb:57:in `block
in include_tag'' actionp...
2007 Jun 17
1
actionmailer & picture
...12: <tr><td align="center">
Trace of template inclusion:
/app/views/user_mailer/vic_announcement.rhtml
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/asset_tag_helper.rb:207:in
`compute_public_path''
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/asset_tag_helper.rb:164:in
`image_path''
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/asset_tag_helper.rb:188:in
`image_tag...
2007 Dec 01
3
Rails 2 problem with compute_public_path
...;</
td>
62: </tr><tr>
63: <td class="signupdescription"
rowspan="2">Enter code:</td>
64: <td><%= text_field_tag :code %></td>
vendor/rails/actionpack/lib/action_view/helpers/
asset_tag_helper.rb:350:in `compute_public_path''
vendor/rails/actionpack/lib/action_view/helpers/
asset_tag_helper.rb:350:in `path_to_image''
vendor/rails/actionpack/lib/action_view/helpers/
asset_tag_helper.rb:390:in `image_tag''
app/views/users/new.rhtml:61:in
`_run_rhtml_47ap...
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 meth...
2006 May 23
3
image_tag problem
...public/images/open.png in place, however this seems not
enough :) When executing the call to the above method, rails complains
with the following:
You have a nil object when you didn''t expect it!
The error occured while evaluating nil.request
.../actionpack-1.12.0/lib/action_view/helpers/asset_tag_helper.rb:150:in
`compute_public_path''
.../actionpack-1.12.0/lib/action_view/helpers/asset_tag_helper.rb:120:in
`image_path''
.../actionpack-1.12.0/lib/action_view/helpers/asset_tag_helper.rb:135:in
`image_tag''
#{RAILS_ROOT}/app/controllers/webca_controller.rb:90:in
`untouched_st...
2008 Aug 01
2
image_path without timestamp
Every time I use an asset tag helper, there is a parameter appended to
the end of my file name.
e.g. <input src="/images/search.gif?1213816620" type="image" />
From what I am reading, this appears to be a timestamp for caching
purposes. It works in most cases, but I want to use image_path to embed
a flash file.
.swf file in public/images/flash
e.g.
2011 Jan 22
1
uninitialized constant ActionView::Helpers::TagHelper::ERB (NameError)
...from
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require''
from
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require''
from
C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-3.0.3/lib/action_view/helpers/asset_tag_helper.rb:3
from
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require''
from
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`require''
from ./helper.rb:3
from
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/...
2007 Nov 09
0
Trac error
I just tried browsing to:
http://dev.rubyonrails.org/browser/trunk/actionpack/lib/action_view/helpers/asset_tag_helper.rb
and got a Trac internal error. It looks to be this issue:
http://trac.edgewall.org/ticket/5123
Could somebody upgrade the SilverCity package, if that is indeed the
problem?
Cheers,
Brad
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subsc...
2008 Jun 02
0
stylesheet_link_tag, javascript_include_tag, caching problems
...''ve
reduced the number of gets ...
The problem is what occurs when the files already exist ... even if
I''ve changed my list of js/css files to something completely
different, it won''t rewrite the file if it already exists ...
Do we really need the unless in this block? (asset_tag_helper.rb)
def write_asset_file_contents(joined_asset_path, asset_paths)
unless file_exist?(joined_asset_path)
FileUtils.mkdir_p(File.dirname(joined_asset_path))
File.open(joined_asset_path, "w+") { |cache|
cache.write(join_asset_file_contents(asset_pat...
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
2009 Jan 06
2
Change the default folder for image_tag, javascript_include_
Hi,
I don''t want my default folder to be mysite.com/images/logo.png, but
instead mysite.com/common/images/logo.png
How can I change that? Same applies to stylesheets and javascripts.
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2010 Jan 15
21
Dynamic Assets - can it be done?
I''m looking for 3 areas to work as dynamic assets:
image_path, javascript_path, and stylesheet_path
When I say dynamic, I mean that they will be dynamic through
controller/models. I have been working through approx. 12 hours of
searches to satisfy my answer to this question but am not finding much
luck.
The closest things I''ve found enabling this are use of config for assets
2008 Dec 10
12
image_tag cannot show picture
Dear all
I am new to rails.
In view, I place the following code, but cannot show the picture in the
webpage
<%= image_tag("green.JPG") %>
However, I can access the picture in this url
http://localhost:3000/images/green.JPG
The HTML source code generated
<img alt="Green" src="/images/green.JPG.?1228211220" />
I cannot identify the problem. Please help
2006 Sep 20
17
Newbie : What is the number Rails adds in images URL, etc?
If I write :
<%= image_tag "rails.png" %>
I get in HTML :
<img alt="Rails" src="/images/rails.png?1158095722" />
What is the number at the end of the src tag ? What is it for ?
Thanks :).
Nicolas.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to