Dont want to display all column created by scaffold

hi i have generated page with scaffolding but i don want to show all
column which are showed by default using scaffolding utility . is there
any way ? to view customize display tables columns apart from this in
show method or view ?
waiting for answer …

Thanks in advance !

On 7 Aug 2008, at 11:34, dharmdip rathod wrote:

hi i have generated page with scaffolding but i don want to show all
column which are showed by default using scaffolding utility . is
there
any way ? to view customize display tables columns apart from this in
show method or view ?
waiting for answer …

Just remove the appropriate bits from the view file.

Fred

Frederick C. wrote:

On 7 Aug 2008, at 11:34, dharmdip rathod wrote:

hi i have generated page with scaffolding but i don want to show all
column which are showed by default using scaffolding utility . is
there
any way ? to view customize display tables columns apart from this in
show method or view ?
waiting for answer …

Just remove the appropriate bits from the view file.

Fred

sorry !
but for display columns auto generated code is this
<%= column.human_name %>
and how can i remove this ?

Frederick C. wrote:

On 7 Aug 2008, at 11:34, dharmdip rathod wrote:

hi i have generated page with scaffolding but i don want to show all
column which are showed by default using scaffolding utility . is
there
any way ? to view customize display tables columns apart from this in
show method or view ?
waiting for answer …

Just remove the appropriate bits from the view file.

Fred

From my point of view instead of using <%= column.human_name %>, you
just use this

<% for about in @abouts = About.find(:all) %>
<%= about.field %>
<% end %>

you access specific field (name,…). i think this may help you.

Priyanka P.
Software Engineer
Gloscon

On Aug 7, 11:49 am, Dharmdip R. [email protected]
wrote:

Just remove the appropriate bits from the view file.

Fred

sorry !
but for display columns auto generated code is this
<%= column.human_name %>
and how can i remove this ?

Ah you’re still using the old scaffold, in which case it’s not that
easy. I suppose you could overide content_columns not to return the
columns you don’t want to display.

Fred