Yes, in this case you just add css tag to page that you want to print.
This css will be used when you run print command in your browser,
becouse parameter :media set to "print".
And you can specify look of a page when printed using the appropriate
styles, for exalple to hide
element with id="header" or with class="navigation" use

#header, .navigation{
  display:none;
}

Try to find more information on this topic using google query "css
media print"

forgive me my english, I`m using google translate.


On Jun 4, 4:30 pm, Manisha Tripathy <rails-mailing-l...@andreas-s.net>
wrote:
> Ok but in that case , I think we will not be using rjs file. right?
> Can you just explain a bit more please.
>
> Rakoth wrote:
> > Hi, Manisha Tripathy.
>
> > You can solve this problem by creating special css for printer,
>
> > <%= stylesheet_link_tag "print_style", :media => "print" %>
>
> > and in print_style.css
>
> > #header{
> >   display:none;
> > }
> > and so on..
>
> > On Jun 4, 1:41 pm, Manisha Tripathy <rails-mailing-l...@andreas-s.net>
>
> --
> Posted viahttp://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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to