Hi, I would like to know if there is a way to maintain database reflection for the 'new' and 'edit' views whilst removing scaffolding? I'm trying to create a webapp that will be somewhat maintainable by colleagues (that aren't necessarily web developers) through simple manipulation of db table fields. For example to add another field to the webapp for tracking another tidbit of information, one would just have to add an additional column in the db. I've found that as soon as I remove the scaffolding, or try to override the 'new' or 'edit' views, the db reflection goes away. Please excuse me if this is in the docs somewhere already, I wasn't able to find it before posting here. Thank you! Matt -- Matt C. Wagner Information Security Analyst Network Intrusion Detection Security Operations Center Corporate Information Security Wells Fargo Bank This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.
on 2005-12-29 22:06
on 2005-12-29 23:58
On 30/12/2005, at 9:04 AM, email@example.com wrote: > > I've found that as soon as I remove the scaffolding, or try to > override > the 'new' or 'edit' views, the db reflection goes away. > > Please excuse me if this is in the docs somewhere already, I wasn't > able > to find it before posting here. Check out what Scaffolding does, it's something like: Model.columns.each do |c| # print field... end Check the docs at api.rubyonrails.org, they have all the details. -- Phillip H. firstname.lastname@example.org