similar to: image_tag refuses to work in email context

Displaying 20 results from an estimated 3000 matches similar to: "image_tag refuses to work in email context"

2007 Aug 13
1
link_to image_tag puts a box round my image
I''ve got a rather long conditional statement that either displays a link_to(image_tag(blah)blah) or just an image_tag (i''ve edited it a bit to show the structure): <%= (article.score_from_user(:user_id => session[:user]) != -1) ? (link_to image_tag("/images/down_arrow_grey.jpg", :alt => "down"), :controller=>"article", :action =>
2008 Oct 17
1
link_to + image_tag
i want to integrated link_to with image_tag before i did link_to with image_tag like this <%=link_to image_tag(image.filename
2009 Oct 25
3
Image_tag Positioning/Alignment
Hi: I searched the forum before posting and could not find any help on how to position an image using image_tag (''image_name''). I have an image in a div, and I need to move it to the right. How do I this? I have this code: <div id="mainDivright"><%= image_tag (''name.gif''), :options => {:align=>"right" } %></div> I
2006 Jan 25
1
Using image_tag in Action Mailer???
I''m trying to send a HTML formatted email with Action Mailer and everything works fine except for when I try to use a Rails image_tag in my email template. Does anyone have experience doing this? I keep getting this error |undefined method `request'' for #<SamplesDirectMailer:0x231d4d8>| Extracted source (around line *#7*): |7: <div style="position:absolute;
2006 Jun 16
2
DISABLE auto-escaping in image_tag helper
Is there any way to disable image_tag''s automatic escaping of special html entities in it''s :alt tag? Example: >From the controller: @sale[''title''] = ''My Company Product&copy;'' In the view: <%= image_tag(''path/to/file.png'', :alt => @sale[''title'']) %> Output: <img alt="My Company
2009 Nov 08
1
link_to_remote with image_tag using Paperclip
I am creating a layout of images with links. In Photo model: has_attached_file :mainimg, :styles => {:original => "465x365", :thumb => "80x70"} In my Front controller: def index @photos = Photo.find(:all) @photos = Photo.paginate :per_page => 28, :page => params[:page] end In index.dryml: <% outer = ''a'' %>
2008 Feb 11
1
image_tag is it just plain Broken?
I''m trying <%= link_to image_tag("#{gallery.link_to}"), gallery_path(gallery) unless gallery.thumbnail_id == 0%> and get the error: ActionView::TemplateError (undefined method `image_tag'' for #<Gallery: 0xb7083be4>) on line #23 of app/views/users/index.rhtml This is my definition of link_to def link_to unless self.thumbnail_id == 0 picture =
2013 Jun 05
1
Link_to image_tag popup
Hello All, How can I add a popup in link_to image_tag? I am trying as :- <%= link_to image_tag(@user.avatar.url(:small)), ''/users/edit'', :popup=>[''original_image'', ''height=700,width=900''] %> It goes to the edit page. But it doesn''t opens popup. Is this the correct way to call a popup? How can I achieve this? Thanks,
2006 Nov 04
6
image_tag keeping add ???? after the url it generates
hi, all, I have a problem with image_tag, the url it generates keeps adding ???? at the tail. e.g. src="/images/gicon.jpg?1153577588??????????" src="/images/gicon.jpg?1153577588?????????????????" I''ve checked the source code of image_tag, and couldn''t find any solution. The ???? is appended to the "source" parameter before it goes to the real
2006 May 06
0
file_column, image_tag, absolute paths?
The docs in the SVN version of file_column state that url_for_file_column will return paths relative to the application root, and that if I pass it to image_tag, I''ll get an absolute URL. This doesn''t appear to be the case, at least with Rails 1.1. image_tag returns the same app-root-based path that it''s given. Doc bug? Rails change? file_column bug? Jay Levitt
2012 Apr 23
0
doubt on image_tag
Hello, I am very new to ruby on rails and I am facing little problem with image_tag. I have two controller product and items. In product view, I have a partial called _show.html.erb. And in items view, i call index of item to display all products. The problem is, when user clicks on the image_tag of the items view, i want to call partial of product view i.e _show.html.erb. Please help me :)
2010 Dec 22
0
image_tag and send_data
i''m storing images in database. i have this action in controller: def image begin item = StoredItem.find(:first, :conditions => {:id => params[:id]}) rescue return end return if item.nil? if item.image_binary.nil? render :nothing => true else send_data(item.image_binary, :type => item.image_datatype, :disposition =>
2006 Jan 04
1
[BUG?] image_tag
i''ve got the latest ruby and rails on this box and am seeing that image_tag will turn something like /foo/bar.jpg into /foo/foo/bar.jpg in the following situation: /ror/foo/public /var/www/html/foo -> /var/ror/foo/public/ image_tag("/foo/bar.jpg") this is exactly how compute_public_path is written to work: def compute_public_path(source, dir, ext)
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 =>
2006 Aug 04
5
image_tag + ActionMailer
Hi, Any idea why image_tag doesn''t work within an email template? I''m trying to generate the URL for an image and I''m getting the following error. undefined method `request'' for #<Mailer:0x6a719e0> I''ve been able to use link_to but no luck with image_tag. I''ve seen a similar post to this in the list but no one has posted a response.
2005 Aug 31
5
image_tag :align => 'absmiddle' ?
hi, i''ve been through the rails apis and searched through past rails discussion, but i haven''t managed to find a way of aligning images with the image_tag() method. ideally i''d like to write something like image_tag("image.gif", :align => ''absmiddle'') to position the image vertically in the middle of some text. thanks luke
2008 Jan 22
4
resizing images for display only with image_tag()
image_tag() has :size option, but only takes height/width parameters. i want to be able to scale down the image by 50% because all my images are different sizes so i cannot be specific as image_tag() wants me to be. is there another RoR method i could use. note: i don''t want to resize my original images, i just want to be able to display them %50 smaller. hope i make sense. btw, great
2007 Mar 24
4
image file URL generated by image_tag include some parameter
I''m using image_tag to generate img tag. URL of image file generated by image_tag include a parameter like following. "http:// ..... /images/filename.gif?123123123" What''s this number parameter for? How can I remove it? I''m using rails with built-in WEBrick server in test mode. --~--~---------~--~----~------------~-------~--~----~ You received this message
2005 Dec 16
5
Question: image_tag(source, options = {})
image_tag(source, options = {}) Ok, when I want to use an image I added the following code: <%= image_tag "dsf.jpg" options = {[align="right", style="padding-right: 10px; padding-top: 5px;"]} %> However, this doesn''t seem to work, it doesn''t like how I have the "options" part setup. I''m sure there is something very easy
2006 May 03
1
image_tag + ssl
Hi, If request.env["HTTPS"] == "on", shouldn''t image_tag generate image URLS that use HTTPS? Joe