search for: asset_tag_helpers

Displaying 15 results from an estimated 15 matches for "asset_tag_helpers".

Did you mean: asset_tag_helper
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 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'' actionpa...
2007 Jun 17
1
actionmailer & picture
Hello I''m using action mailer to create an HMTL outbound email. This email renders a partial. In that partial, a call is made to a public location to get a picture for display in the email. When this email is generate, I get the following error (note: I''m sure it has something to do with not understanding the context of actionmailer and how it functions): NoMethodError in
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
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
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 =>
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)
I am a new to ruby and rails and am trying to refactor some code with rspec and have run into a problem that has stumped me for a few days and I have searched google and ruby/rails forums to no avail so I really hope somebody can help me out with this problem which I think may be caused by a rails config problem. Anyway, I used ''rails new myapp'' to make a new rails project and
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
2008 Jun 02
0
stylesheet_link_tag, javascript_include_tag, caching problems
So, the new caching for stylesheet_link_tag, javascript_include_tag which rolls up the files into one all.js or all.css files is great ... however I''ve run into an issue: If all.cs or all.js don''t exist, they get generated ... great, I''ve reduced the number of gets ... The problem is what occurs when the files already exist ... even if I''ve changed my list of
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