similar to: need help for my link_to

Displaying 20 results from an estimated 20000 matches similar to: "need help for my link_to"

2008 Feb 19
1
adding an onclick option to link_to method
Hello, I''m trying to use the rail link_to to open a popup window and then print the popup window at the same time. Is there a way to add another "onclick" option to tell the popup to print? I know how to do this in javascript but not sure how to use the rails help to do it. I also am aware that the link_to_function method is used to call a javascript function.
2011 May 13
2
Popup window
How can I insert (:popup => true) into code below? <%= link_to "Source_#{i}", link.url , :style => "color:#0096FF;font- family:''LucidaGrande'',''Lucida Grande'',''Lucida Sans Unicode'',sans- serif; font-size: 11px; text-decoration: none; margin-right: 10px;" if link.show? %> -- You received this message because you
2007 Jul 31
2
link_to
Im trying to use the link_to helper to open a blank window which is basically just a framed window to display user info without all the extra distractions that come along with opening this window. Here is what I got: <%= link_to ''Airline Preferences'', {:action => ''airline_preferences'', :id => @user.id, :method => ''post'' }, :target
2006 Jan 04
4
How to open a pdf file in new window
Hi all I made a pdf file in ruby and to display it used the method send_data like # send_data pdf.render, :filename => "Hello.pdf",:type => "application/pdf" # Now I want to open it in another window or as a popup. How can I achieve it? Thanks to all. Sainaba. -- Posted via http://www.ruby-forum.com/.
2007 Nov 19
3
link_to and GET parameters
Hi, I am trying to generate a link to external site with GET parameters ( in new window). I tried following code, but it does not produce any parameters. <%=link_to "Open New Page", "https://www.foo.com/page/", {:popup => true}, {:param1 => "value1", :param2 => "value2"}%> and <%=link_to "Open New Page",
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,
2007 Mar 16
7
how to send mp3 inline?
hey all, I''m trying to do a: send_file @file, :type => ''audio/mp3'', :disposition => ''inline'' ,:stream=>true I tried with all browsers and it always asks me to download the file or open it with a player. Is there a way to make it open in the embeded player (QT,Windows media player,Mplayer etc)? Only with konqueror if I open in new tab then I
2006 Jan 06
6
NewbieQ: How do I refresh view after return from popup window
Hi, I have this bitta code that is supposed to open a new window and allow the user to create a new Organisation on the fly whilst editing a new Person i.e. if the Organisation exists they can select it from the drop down select. Otherwise they can click on the cute button and enter a skeleton Organisation record. What I need to do next is refresh the drop down select on returno the new
2006 Jan 03
7
link_to an external url ?
Simple question. Is it possible to generate a link like <a href="http://www.google.com" target="_blank" >google</a> with the link_to function ? Thanks
2006 Jan 26
2
javascript in link_to?
having trouble finding how to include a random chunk of javascript (an onclick event handler) in a link_to generated link. at first i thought i could use the html_options field, but if i understand correctly, that only supports :confirm, :popup, and :post options. hope i''m wrong. anyone know different? john _______________________________________________ John McGrath
2006 Dec 16
5
trying to add another app
hey all, I have an app working great with apache2 and mongrel_cluster. However, I''m trying to run another application and now when I go to app1.comit falls to app2.com and the opposite. That''s probably because I messed up somewhere with the cluster. this is the content of my conf.d/app1.proxy_cluster.conf: <Proxy balancer://mongrel_cluster> BalancerMember
2007 Nov 09
26
RSpec on Rails 2.0
I have a project on edge rails that I''m trying to convert from Test:Unit to rspec. I have the rspec gem version 2338, the rspec and rsepc_on_rails version 2831 in vendor/plugins, and rails version 8117 in vendor/rails. I''ve been able to get a few specs passing, have gotten the specs running from autotest, and am able to do "rake spec:doc" and get the basic command
2006 Mar 22
1
HABTM / Dropdown Help Needed
I''m terribly new to Rails, so bear with me. I have an application I am working on which deals with projects and subcontractors. There can be several subs on each project and each sub can work on several projects. I have my join table set up and has_and_belongs_to_many in both models. If I manually put data in the join table, this works in my show view: <% for subcontractor in
2012 Dec 08
9
link_to popup
Hello All, I have a link. Which I want to open as a new window :- <%= link_to "Google", "https://www.google.com", :popup => [''new_window_name'',''toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes''] %> But it is opening in the same page.... Any suggestions how to do it ?? Even hover will be
2006 Oct 25
4
need help on special HABTM relation
hey all, I have three tables like this: forum (id,title) usergroup(id,title) forum_perms(usergroup_id,forum_id,read,write,post) is there a way to deal with that kind of relation with rails such as by using has_and_belongs_to_many kind of stuff? thanx in advance Pat --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2006 May 24
1
link_to CSS problem
Hi all, I''m a Ruby/Rails/web development newbie, so this may be a stupid question. I''m putting some links using link_to into my rhtml page, creating the layout using the DIV tag: <div id="description"> <%= link_to h (item.description), :action => ''show'', :id => item.id %> </div> ... div#description { float: left;
2006 Nov 20
2
getting form content for print popup
I''m trying to open a new window for printing a form from a link. I want to display the contents of the form for printing. I can get the popup to work, but am wondering how to get the contents of the form from the parent window, using RJS. I can use a submit option to get the form parameters in a link_to_remote, but the popup doesn''t work. <%= link_to_remote
2006 Mar 16
1
Newbie Question on Link_to Method
Hi, How do I use link_to method to link a page to another page in a different views folder. Say I have Projects and Issues, and on projects list page, I want a hyper link ''New Issue'' to link to new issue page. /Projects/List /Issues/New How do I code in views\projects\list.rhtml to link to views\Issues\new.rhtml? this doesn''t work: <%= link_to "New
2006 Feb 11
7
A quick question on popup windows
How the hell do you close em off after the action is completed? Ta, Eric
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