[Rails] Re: Scaffolding for pre-existing database table in 2.0.1

2014-10-03 Thread Richard Lenawasae
Email Address:richardlenawa...@gmail.com Hi, I'm developing a heavy project using Ruby on Rails, and I already have a big database schema in my sublime text,but my database has a dozen of fields of tables which are sometimes very tiresome when scaffolding such as £rails g scaffold profile

[Rails] Re: Scaffolding for pre-existing database table in 2.0.1

2014-10-03 Thread Richard Lenawasae
Email Address:richardlenawa...@gmail.comJason Fleetwood-Boldt @Jasonfb, i guess i did alot of research on ruby on rails as far scaffolding is concern, but you find when it comes on real world boilerplate applications..it's kind of a nightmare when we try oldschool method 'scalfolding' because

[Rails] Re: Scaffolding for pre-existing database table in 2.0.1

2014-08-29 Thread Al Rushing
Sebastian wrote in post #599469: Hi, first of all I will apologize in advance for my presumably noobish question, but I'm only starting to learn Rails and am a little confused with all the changes in 2.0.1. There are as good as no tutorials out yet and the 2 or 3 screencasts I've seen deal

[Rails] Re: Scaffolding for pre-existing database table in 2.0.1

2014-08-29 Thread Al Rushing
Just another quick solution. You can generate the Ruby scaffolding commands using SQL out of the database. Just access sys.columns or whatever your particular database provides (INFORMATION_SCHEMA or something). For each column, generate that line that Ruby wants for a column / table entry.

[Rails] Re: Scaffolding for pre-existing database table in 2.0.1

2012-12-06 Thread Humberto P.
Mr Mapes wrote in post #613756: Ryan Bigg wrote: New way is to specify the fields. script/generate scaffold person first_name:string last_name:string I'm considering Ruby on Rails, but I already have a big database schema, and I'd rather not re-type firstname:string lastname:string, for

[Rails] Re: Scaffolding for pre-existing database table in 2.0.1

2009-03-27 Thread Tony Ennis
Mr Mapes wrote: Ryan Bigg wrote: New way is to specify the fields. script/generate scaffold person first_name:string last_name:string I'm considering Ruby on Rails, but I already have a big database schema, and I'd rather not re-type firstname:string lastname:string, for the dozens