similar to: auto_discovery_link_tag in a partial ?

Displaying 20 results from an estimated 30000 matches similar to: "auto_discovery_link_tag in a partial ?"

2007 Jan 08
0
[PATCH] auto_discovery_link_tag with more bacon!
Could a core member please check out ticket #6941? Makes auto_discovery_link_tag accept tons more content types. auto_discovery_link_tag :xml, formatted_posts_url(:xml) => <link href="http://localhost:3000/posts.xml" rel="alternate" title="RSS" type="application/xml" /> -- Josh Peek http://joshpeek.com/
2006 Jan 21
0
helpefying a list partial
Hi all, I''ve got this code which is alway the same. In a list it displays a show, edit and destroy icon behind each record. <% for todo in @todos %> <tr valign="top" class="ListLine<%= cycle("0","1") %>"> <td><%=h todo.prio %></td> <td><%=h todo.title %></td> <td><%=
2006 May 03
2
render partial collection
my view contains a call to a partial: <%= render(:partial => ''item_list'', :collection => @keyword.synonyms, :locals => { :action_delete => "removesynonym", and_some_other_stuff }) %> _item_list.rhtml contains: <%= link_to ( image_tag(''/images/deletebutton.png''), { :action => action_delete, :id =>
2006 May 03
0
render partial collection passing property
my view contains a call to a partial: <%= render(:partial => ''item_list'', :collection => @keyword.synonyms, :locals => { :action_delete => "removesynonym", and_some_other_stuff }) %> _item_list.rhtml contains: <%= link_to ( image_tag(''/images/deletebutton.png''), { :action => action_delete, :id =>
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
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 =>
2006 Jun 06
8
How do I wrap a <%= link to %> around an image?
I''ve got a bunch of dynamically generated link paths that I want to use to link some dynamically-generated image paths. Specifically, I want to link thumbnails in a gallery to the larger images. But I''m stymied by Rails'' syntax. I can''t figure out how to do this. I tried this: <%= link_to(image_tag("../../images/photos/photo.photogroup/TN_
2006 Jan 13
1
file_column - how to test for empty column?
I am using the excellent file_column, but have run into an issue. I am wanting the user to be able to *not* upload an image if they so choose. Then I am trying to determine if that column is empty or not, and display a generic image if that column is empty. I have tried both of the following code blocks: <% if @newsentry.image -%> <%= link_to(image_tag((url_for_image_column
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 =
2006 Jun 09
5
Using link_to with an image tag & link text
Hi , I was trying to use link_to along with image_tag to setup a link that would open in an external window. But I was unable to make a link using both text & an image So my current workaround looks like this inside a partial where link is http://foo.com & text would be descriptive <img src="images/arrow.gif" border="0"/> <%= link_to(text, link, :popup
2006 May 09
3
Named link to image
Hiall, Call me stupid if you like .,) but it seems i can''t figure out how to get a named link using a combination of link_to and image_tag. What I need is basically a link displaying a name along with some image to indicate status (open,working,finished). I found no combination of link_to and image_tag that accepts a name, this seems to be solely used for making whole images into links
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 Jul 27
1
response from ajax request
Hi, newbie here. I am trying to implement a filtering interface using observe_field. Using firebug I can see that I am getting the properly rendered html blob back in the response, but when it get inserted into the dom element that I am targeting, the plain html elements from the partial template have been stripped, leaving only the elements inserted via the <%= statements. I would
2006 Mar 27
2
svg image link
the link_to command is really nice, especially with confirm built in - wondering if there is a way to use it with SVG images since SVG doesn''t seem to work with image_tag I can display svg images (in Firefox) with the following code: <embed width=32 height=32 src="/images/quit.svg" type="image/svg+xml"></embed> "normal" link_to code:
2006 Jan 19
1
partials and instance variables for file_column
Hi, Sebastian Kanthak of the file_column-Plugin wrote once: "is the photo object inside a local variable or an instance variable (e.g. photo or @photo)? url_for_file_column only works with instance variables, like all other active record form helpers. Could this be the problem?" So I''m using file_column in a partial, e.g. <%= render (:partial => "product",
2006 Feb 10
2
file column within link_to
Hi, I correctly see: image_tag url_for_file_column("element", "picture_url", "medium") now I need to make it a link so I''ve used: <%= link_to(image_tag url_for_file_column("element", "picture_url", "medium"), {:controller => "products", :action => "sec_level", :level_id => @element.id}) unless
2008 Feb 29
4
App design question: user_photo helper
I''m having trouble using an application helper and understanding how I should make it work throughout my application - so if you can help me with this I''ll be overcoming a big hurdle in my learning. Here''s the helper method; [code=]# application_helper.rb def user_photo if @user.photo? return @user.photo.public_filename(:thumb) else return
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.
2006 Jan 21
1
Sortable Element with Partials?
Hi Everyone, I posted this last month and unfortunately, I didn''t recieve any replies. Maybe this time I''ll have better luck. I originally had my sortable element list working properly like so: <ul id="sortable_list"> <% @items.each do |item| %> <li id="item_<%= item.id %>"><%= image_tag "dragme.gif"
2006 Jun 22
0
sortable list doesn''t work on production server
I have a sortable list in one of my views, using the sortable example from the recipes book. The sorting works great on my mac. When I throw it on the server for testing it doesn''t save the display order. I cracked open the log file and see that it''s not even returning the id''s like it should: Parameters: {"action"=>"sort",