similar to: prob linking to static page in public folder

Displaying 20 results from an estimated 50000 matches similar to: "prob linking to static page in public folder"

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.
2009 Mar 26
1
Lightbox popup on ajax pages....
Hi, I''m using lightbox.js for displaying chromeless popup windows. I have a main page on which I have javascript_include_tag and stylesheet_link_tag to include lightbox. Calls to the lightbox popups from this main page work perfectly... But....calls to the lightbox popups from pages which are called by ajax(using link_to_remote) from the main page do not work... :( They work like
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,
2009 Nov 05
1
Cucumber cannot find a static page located in public folder
Hi, I recently started with Cucumber. I''m having an issue with a static page that I locate in the public folder. When an user registers to the site I send an activation code via email. That notification is show to the user by redirecting to a static page located in the public folder. If I start the server and register I get redirected properly to the static page. But when I run the
2006 Mar 10
0
link_to(... :popup => true) problem
I have a file_column that points to a pdf. I want that pdf to open in a new window, thus wrote the code: <%= link_to(''PDF version'', url_for_file_column(''floor_plan'', ''pdf_file''), :popup => true) %> which generates the code: <a href="/floor_plan/pdf_file/12/first_floor.pdf" onclick="window.open(this.href);return
2007 Oct 02
0
showing popup window without showing any status on taskbar
Hi friends, I am new to ROR , I want to show the popup window instead of using the title attribute of the link_to tag so that I can reseize it, Is there any way to do that Please Help Me.......................... Kiran Polawar, PolwarKiranD-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received
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
2009 Nov 12
1
Please help me ------ Mapping an item to article
Hi everybody, I have a form like this <h1>New menuitem</h1> <% form_for(@menuitem) do |f| %> <%= f.error_messages %> <p> <%= f.label :title %><br /> <%= f.text_field :title %> </p> <p> <%= f.label :alias %><br /> <%= f.text_field :alias %> </p> <p> <%= f.label
2011 Mar 09
1
Javascript call from view.
Hello All, I am working on a Microblogging application.(majorly written in Ruby on Rails).(the application is similar to twitter) .There is a timeline showing messages by the logged-in user and his/her followers. Each message has a reply link which has been coded as follows <%=link_to "Reply" ,{},:href=>"#",:class => "replyMessage noBackgroundImage" ,:title
2010 Sep 17
1
using OpenPGP gem and getting "out of range error"
I''ve been handed someone else''s code to debug, but am getting no further than he did... perhaps someone can help. We''re using the OpenPGP gem (http://openpgp.rubyforge.org/) to PGP- encrypt an XML file for submission to a third-party for processing. The prob is that when encrypting, we get errors like the following: RangeError: 1502 out of char range from
2006 Dec 02
0
Serving static svg images in the public folder
Hi! I am trying to use svg images and serve them from the public/images folder. When using the url_for method I have to use the complete file name including the extension. Can you explain why? I don''t need to use the extension for gifs/jpegs/pngs. Using the complete filename with url_for or writing a direct url to /public/images I can get the file, but the mime type is text/plain, so
2006 Jul 24
4
how to get your controller to close a browser popup window
While editing a record I need to have a link to create a new record in another scaffold. I''ve done this by using a popup window <%= link_to("Add new Person", "/person/new", :popup => [''window_name'', ''width=600,height=600'']) %> It all works great - but when the save is done I want to kill the popup window.
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 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
2013 Feb 22
0
Rake task that allows you generate static error pages in public folder from partial.
https://gist.github.com/907th/5013075 Rake task that allows you generate static error pages in public folder from layouts/exception partial. Usage: rake exceptions:compile_error_pages RAILS_ENV=production. Dependencies: colored gem for pretty output (https://rubygems.org/gems/colored), rails 3.2 (tested only for that version). -- You received this message because you are subscribed to the
2006 Mar 14
0
Hyperlink "pop-back" from popup window
Hello all, I have a popup window (via link_to :popup=>true) that contains a link to an external page. How can I get navigation of that link to go back to the original calling browser -or- launch a new browser window in the background? Thank you! -- ------------------------------ Forget the icing. Bake the Cake! - the epi-centered developer ------------------------------ Peter
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
2006 Feb 20
1
Form linking question
Hello all. I currently have a method that is accessed from a form using this: View: <%= start_form_tag :action => :history %> <p><label for="componentlog_cl_compname">Component Name</label><br /> <%= text_field ''componentlog'', ''cl_compname'', :class => ''mandatory'', :value =>
2008 Apr 16
3
Linking to "Next Entry >>" from the current Entry Page
Hi all, I''m trying to link to the "Next Entry >>" from the current entry page (in show.html.erb). Any one know how I would do it? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send