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 !

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 Cheung wrote:

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

Frederick Cheung 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

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 Pathak
Software Engineer
Gloscon