It was very surprising to me to find out that there is no current, GPL''ed "ruby-" package designed for outputting HTML / CSS pages to a printer. For reasons of principle, I won''t use any add on modules for ruby that are not GPL''ed. Does anyone know of a package currently under development that is at least reasonably close to such support? Arthur --~--~---------~--~----~------------~-------~--~----~ 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''m not sure if I understand completely, but I would just render a ''printer_friendly'' layout. And you do know that Rails itself is not GPL, right? On Mar 26, 5:03 pm, eengnerd <eengn...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> It was very surprising to me to find out that there is no current, > GPL''ed "ruby-" package designed for outputting HTML / CSS pages to a > printer. For reasons of principle, I won''t use any add on modules for > ruby that are not GPL''ed. Does anyone know of a package currently > under development that is at least reasonably close to such support? > > Arthur--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I found THE solution for this problem and it is extremely simple. In the line: <%= stylesheet_link_tag ''scaffold'', ''TCO'', :media => :all %> all that was required was to add the part: , :media => all to the existing line. This gives me a print out that matches the screen. Arthur On Mar 26, 5:24 pm, Eric <ericgh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m not sure if I understand completely, but I would just render a > ''printer_friendly'' layout. > > And you do know that Rails itself is not GPL, right? > > On Mar 26, 5:03 pm, eengnerd <eengn...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote: > > > It was very surprising to me to find out that there is no current, > > GPL''ed "ruby-" package designed for outputting HTML / CSS pages to a > > printer. For reasons of principle, I won''t use any add on modules for > > ruby that are not GPL''ed. Does anyone know of a package currently > > under development that is at least reasonably close to such support? > > > Arthur--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
eengnerd wrote:> I found THE solution for this problem and it is extremely simple. In > the line: > <%= stylesheet_link_tag ''scaffold'', ''TCO'', :media => :all %> > all that was required was to add the part: > , :media => all > to the existing line. This gives me a print out that matches the > screen. > > Arthurgenerally is not a good practice to use the same CSS for screen and for printer. For printer is better to use a CSS that hide header , footer and menu and flat down colors to simple grayscale for better laser printing -- 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 -~----------~----~----~----~------~----~------~--~---