Customize list.rhtml to display only certain db columns

Hi,

Very new to RoR; have been a flash developer for four years or so. I
have an urgent question – in the list.rhtml file, I only want to
display certain columns instead of dumping out all the columns in the
database. Could someone shed some light this topic? Thanks!!!

Sam

You need to move off of scaffolding and actually specify the columns
you want.

This shows you an example of doing so.
http://www.onlamp.com/lpt/a/5546

Note that the new streamlined scaffolding would allow you to
configure what columns you want (along with providing much AJAXy
goodness), but it’s still in alpha state.
http://streamlined.relevancellc.com/

        - dan


Dan K. mailto:[email protected]
http://www.dankohn.com/ tel:+1-415-233-1000

Dan K. wrote:

You need to move off of scaffolding and actually specify the columns
you want.

This shows you an example of doing so.
http://www.onlamp.com/lpt/a/5546

Note that the new streamlined scaffolding would allow you to
configure what columns you want (along with providing much AJAXy
goodness), but it’s still in alpha state.
http://streamlined.relevancellc.com/

        - dan


Dan K. mailto:[email protected]
http://www.dankohn.com/ tel:+1-415-233-1000

I downloaded the Streamlined gem, it’s AMAZING… Thanks SO much.

Sam

also, as a side note, check out the rails scaffolding plugin at
http://wiki.rubyonrails.org/rails/pages/Scaffolding+Extensions
+Plugin. It’s really cool!

-Ben

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs