Hi everybody, may somebody has already an aproach and could help me? I have a app (REST Design) and what I would like to have is a link like "print page" where the actual view can be displayed in a popup and another layout. Does anybody has a clue, whats the best way to implement this? Thank you very much! kind regards Rafael --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I think a different stylesheet would make the most sense. Make a CSS stylesheet that is simplified: white background, black text, any menus/ads/etc hidden (using display: hidden or something along those lines.) You should be able to do this without directly involving rails. -- 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 email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hey Elliot, thanks a lot would you send it like this example.com/vacancies?view=print example.com/vacancies/1234?view=print and then make a condition for the params in the layout? Am 05.07.2007 um 14:10 schrieb R. Elliott Mason:> > I think a different stylesheet would make the most sense. Make a CSS > stylesheet that is simplified: white background, black text, any > menus/ads/etc hidden (using display: hidden or something along those > lines.) You should be able to do this without directly involving > rails. > > -- > 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 email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yup. -- 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 email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
beYou media { Rafael Schär } wrote:> Hey Elliot, thanks a lot > > would you send it like this > > example.com/vacancies?view=print > example.com/vacancies/1234?view=print > > and then make a condition for the params in the layout? > > > > Am 05.07.2007 um 14:10 schrieb R. Elliott Mason: > >> I think a different stylesheet would make the most sense. Make a CSS >> stylesheet that is simplified: white background, black text, any >> menus/ads/etc hidden (using display: hidden or something along those >> lines.) You should be able to do this without directly involving >> rails. >> >> -- >> Posted via http://www.ruby-forum.com/. >> >>Hi, I just want to add one thing to the solution. I don''t know about browser support but it should be possible to specify both the stylesheets with the media attribute set to "screen" and "print" (I think) and the browser is supposed to pick up the correct one when it displays/ prints. That way, you don''t have to worry about things like "example.com/vacancies?view=print" and you don''t need to re-generate the page (specially since you''ve already done the hard work of searching the DB and rendering the page) - everything is done in the browser itself. You may need to check on browser support for this - I know Firefox supports this for sure and I expect Opera does too. I wouldn''t be surprised if IE 7.0 also has proper support for this. Take a look at this page for an example.. you''ll see that in the screen mode, you get to see the menus but when you do a print preview, the page cleans up: http://www-306.ibm.com/software/os/linux/software/ Cheers, Mohit. 7/6/2007 | 12:11 PM. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---