Sam Purtill
2006-Jul-24 23:32 UTC
[Rails] 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 -- Posted via http://www.ruby-forum.com/.
Dan Kohn
2006-Jul-25 00:30 UTC
[Rails] Customize list.rhtml to display only certain db columns
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 Kohn <mailto:dan@dankohn.com> <http://www.dankohn.com/> <tel:+1-415-233-1000> On Jul 24, 2006, at 4:32 PM, Sam Purtill wrote:> 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 > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Sam Purtill
2006-Jul-25 03:20 UTC
[Rails] Re: Customize list.rhtml to display only certain db columns
Dan Kohn 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 Kohn <mailto:dan@dankohn.com> > <http://www.dankohn.com/> <tel:+1-415-233-1000>I downloaded the Streamlined gem, it''s AMAZING... Thanks SO much. Sam -- Posted via http://www.ruby-forum.com/.
Ben Lisbakken
2006-Jul-25 04:03 UTC
[Rails] Customize list.rhtml to display only certain db columns
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 On Jul 24, 2006, at 5:19 PM, Dan Kohn 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 Kohn <mailto:dan@dankohn.com> > <http://www.dankohn.com/> <tel:+1-415-233-1000> > > > > On Jul 24, 2006, at 4:32 PM, Sam Purtill wrote: > >> 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 >> >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails