Is there a generator akin to the scaffold generator that generates the views under some sort of control? I''ve seen ''scaffold_form'' and its just about acceptable for the ** FORMS** (edit/new), but I''m wondering if there is something more capable that also includes the ''view'' and ''list'', allows id and css tagging. I really want to avoid hand typing if I can make rails/ruby do the work :-) Why? I''m experimenting with REST on a non-trivial DB schema and non-trivial functionality and I really don''t want to be bogged down in all the rest of the of these details and having them disrupt my train of thought. -- "Opportunity often comes disguised in the form of misfortune, or temporary defeat." -- Napoleon Hill --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You mean something that can lay it out in a table: <table> <tr><td>Name</td><!-- other fields --></tr> <tr class=''object'' id =''object[1];><td>Noname</td></tr> </table> HAML helps: %table %tr %td Name %tr[object] %td= object.name http://haml.hamptoncatlin.com On Jan 14, 2008 10:24 AM, Anton J Aylward <aja-XdPx9462FWc@public.gmane.org> wrote:> > Is there a generator akin to the scaffold generator that generates the > views under some sort of control? > > I''ve seen ''scaffold_form'' and its just about acceptable for the ** > FORMS** (edit/new), but I''m wondering if there is something more capable > that also includes the ''view'' and ''list'', allows id and css tagging. > I really want to avoid hand typing if I can make rails/ruby do the work > :-) > > Why? I''m experimenting with REST on a non-trivial DB schema and > non-trivial functionality and I really don''t want to be bogged down in > all the rest of the of these details and having them disrupt my train of > thought. > > -- > "Opportunity often comes disguised in the form of misfortune, or > temporary defeat." -- Napoleon Hill > > > >-- Ryan Bigg http://www.frozenplague.net Feel free to add me to MSN and/or GTalk as this email. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
No. I mean "generate my views & forms". SHAZAM! I may end up editing them at some time in the distant future but I particularly DO NOT want to be typing in their contnets. I''ve just tried ''scaffold_form'' It builds the forms but not the ''list members'' and ''show item'' views As I said, I''m trying something non trivial - lots of field and relationships. Ryan Bigg said the following on 13/01/08 10:39 PM:> You mean something that can lay it out in a table: > > <table> > <tr><td>Name</td><!-- other fields --></tr> > <tr class=''object'' id =''object[1];><td>Noname</td></tr> > </table> > > HAML helps: > > %table > %tr > %td Name > %tr[object] > %td= object.name <http://object.name> > > http://haml.hamptoncatlin.com <http://haml.hamptoncatlin.com> > > On Jan 14, 2008 10:24 AM, Anton J Aylward <aja-XdPx9462FWc@public.gmane.org > <mailto:aja-XdPx9462FWc@public.gmane.org>> wrote: > > > Is there a generator akin to the scaffold generator that generates the > views under some sort of control? > > I''ve seen ''scaffold_form'' and its just about acceptable for the ** > FORMS** (edit/new), but I''m wondering if there is something more > capable > that also includes the ''view'' and ''list'', allows id and css tagging. > I really want to avoid hand typing if I can make rails/ruby do the > work :-) > > Why? I''m experimenting with REST on a non-trivial DB schema and > non-trivial functionality and I really don''t want to be bogged down in > all the rest of the of these details and having them disrupt my train of-- When I used to teach creative writing, I would tell the students to make their characters want something right away even if it''s only a glass of water. Characters paralyzed by the meaninglessness of modern life still have to drink water from time to time. --Kurt Vonnegut --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---