I was wondering which generators (in particular view generators) you
guys would recommend to replace the built-in code from the scaffolding
system? I’m particularly interested in replacing the current views, as I
would like for:
- Foreign keys should get a dropdown list linked to the other table
instead of a textbox.
- I’d like the columns to actually be listed on the page, instead of
iterating through them at run-time, as this makes it easier to customize
them.
Any thoughts?
Yahoo! oneSearch: Finally, mobile search that gives answers, not web
links.
Well as the point of the scaffold generator is to get you a starting
place
when learning Rails, or doing something simple, I think it serves it’s
job
quite well. Scaffolding is never and was never meant to be a production
site
generation recipe.
That said, I believe the AjaxScaffold has a bit more of the
functionality
you’re looking for, otherwise you are free to jump into the scaffold and
make those changes yourself. However, I highly doubt such stuff will be
added to the Rails core as it is superfluous.
Jason
I was just thinking that if I could push the scaffolding a bit further,
it would get rid of about half the stuff I do in every project (making
dropdowns for foreign keys, inferring relationships between models,
using better markup).
Has anyone tried Custom_Scaffold? I was thinking I could customize it to
do most of what I need:
http://www.tonyspencer.com/2007/03/01/custom-scaffolding-for-rails/
Will
Jason R. [email protected] wrote: Well as the point of the
scaffold generator is to get you a starting place when learning Rails,
or doing something simple, I think it serves it’s job quite well.
Scaffolding is never and was never meant to be a production site
generation recipe.
That said, I believe the AjaxScaffold has a bit more of the
functionality you’re looking for, otherwise you are free to jump into
the scaffold and make those changes yourself. However, I highly doubt
such stuff will be added to the Rails core as it is superfluous.
Jason
On 7/2/07, Will G. [email protected] wrote: I was wondering
which generators (in particular view generators) you guys would
recommend to replace the built-in code from the scaffolding system? I’m
particularly interested in replacing the current views, as I would like
for:
- Foreign keys should get a dropdown list linked to the other table
instead of a textbox.
- I’d like the columns to actually be listed on the page, instead of
iterating through them at run-time, as this makes it easier to customize
them.
Any thoughts?
Yahoo! oneSearch: Finally, mobile search that gives answers, not web
links.
It’s here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.
Have you tried out ActiveScaffold?
I’ve just started using it, and it looks very promising.