I am making a generator, and I want make a partial form with all columns the of table. How made for get count of columns, and how made for get each columns, and also to show the name of column?
on 2007-01-10 23:53
on 2007-01-11 00:07
You can just say: YourModel.content_columns each do |c| ... end
on 2007-01-11 00:22
nolifetillpleather wrote: > You can just say: > > YourModel.content_columns each do |c| > ... > > end But I not have a MyModel, my model will created with the generator. How I make in a generator?