On Viernes, 2 de Julio de 2010 09:25:17 djfolchetto escribió:
> Thank you for the reply, but sincerly I am quite new in the
> activescaffold and I am afraid to ask how to apply "the stylesheet for
> print media" basing on your last reply. Can you suggest me an example
> to do or a web site explaining this suggestion? Thanking you in
> advance, cheers

It's not an ActiveScaffold issue, it's a CSS issue:

<link src='route/to/your/css' media='print' rel='text/css' />

or with helpers:

<%= stylesheet_link_to 'print', :media => 'print' %>

And in public/stylesheets/print.css define for example:
.active-scaffold .actions {
  display: none;
}

>
> On 2 Lug, 08:21, "Sergio Cambra .:: entreCables S.L. ::."
>
> <[email protected]> wrote:
> > On Jueves, 1 de Julio de 2010 15:23:05 djfolchetto escribió:
> > > Sorry for the delay in my reply. I try to explain better what I want
> > > to do. In my active scaffold I have added an action "Print" to print
> > > the active scaffold. If I insert the "Search" criteria, the scaffold
> > > shows a subset of database records satisfying my criteria. Printing
> > > this active scaffold, excluding the "div" section of currnet view, the
> > > print result on paper is a set of items with the last columns
> > > containing the actions (edit, delete, etc...) and without the grids of
> > > scaffold. My first request is to print the activescaffold without the
> > > column of actions and the last request is to print the activescaffold
> > > content applying a stylesheet. I tried to get the records of AS
> > > displayed throuth "records = find_page().items" in the controller
> > > print routine, but the active scaffold returns all records of database
> > > and not the filtered ones. Is it right this way to manage the scaffold
> > > items or do you know other ways to print an activescaffold with the
> > > records filtered?
> >
> > Don't use a print action to print, add a stylesheet for print media,
> > hidding what you don't want to print.
> >
> > --
> > Sergio Cambra .:: entreCables S.L. ::.
> > Mariana Pineda 23, 50.018 Zaragoza
> > T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to