Displaying 20 results from an estimated 200 matches similar to: "Link_to image_tag popup"
2006 Jul 03
0
image_tag refuses to work in email context
I have a model called ImageMailer derived from ActionMailer.
It contains a method called sent that takes some args and send email to
a recipient. Works fine. I am testing this in script/console.
I now want to start sending HTML email.
Content type is "text/html".
I can successfully deliver HTML email using the template "sent.rhtml"
thusly:
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©''
In the view:
<%= image_tag(''path/to/file.png'', :alt => @sale[''title'']) %>
Output:
<img alt="My Company
2006 May 03
1
image_tag + ssl
Hi,
If request.env["HTTPS"] == "on", shouldn''t image_tag generate image
URLS that use HTTPS?
Joe
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
2006 May 30
0
url_for_file_column and image_tag not working right together
i just got file_column working and i love it. but i''m having some
problems with the urls. my application is not in the base directory, it
is in a folder called "/testapp". when i use "image_tag" with
"url_for_file_column", i get this path:
/testapp/testapp/entry/image/3/myimage.jpg
the image is located at:
/testapp/entry/image/3/myimage.jpg
to see if
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;
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 :)
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 =>
2013 Mar 09
2
Default image_tag folder
Hey, guys. In documentation i read: "By default, files are loaded from
public/images". I add for example <%= image_tag "logo.gif" %>
When i check html code in browser i see next: <img alt="Logo"
src="/assets/public/images/logo.gif">. Why folder assets? The default
should have been <img alt="Logo"
2008 May 14
1
link_to_remote with embedded image_tag
Hi-
I want to generate a link with an image embedded between the <a> and </
a> so when the user clicks on the image the ajax call fires. I can''t
find any documentation on how to do this with link_to_remote. Is this
possible? I''d like to generate something like:
<a href = ...> <img src = .../></a>
Thanks,
Dino
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 =>
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 =
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 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:
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 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)
2012 Sep 13
1
SELinux is preventing /bin/ps from search access
CentOS 6.3. *Just* updated, including most current selinux-policy and
selinux-policy-targeted. I'm getting tons of these, as in it's just
spitting them out when I tail -f /var/log/messages:
Sep 13 15:20:51 <server> setroubleshoot: SELinux is preventing /bin/ps
from search access on the directory @2. For complete SELinux messages. run
sealert -l d92ec78b-3897-4760-93c5-343a662fec67
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.
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