Hi there, I have just started playing with that awesome ActiveScaffold plugin, but I´ve notice that the only way it generates scaffolds is dynamicly. Is there a way of generating the code in advance, like the old ./script/generate scaffold User ... way? It would be very useful for adjust some views and maybe the CSS. Overriding seems dirty and uncomfortable to me (and I don´t knwo how could I override for example the list.rhtml view). Thank you! Alvaro -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
http://activescaffold.com/docs/template-overrides -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi Alvaro Igor is right ! You can override almost anything from stylesheets to views via partials, helpers and the great form__ui stuff. IF you need any further help, goto the AS forum On Oct 10, 6:42 pm, Alvaro Perez <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi there, > > I have just started playing with that awesome ActiveScaffold plugin, but > I´ve notice that the only way it generates scaffolds is dynamicly. Is > there a way of generating the code in advance, like the old > > ./script/generate scaffold User > ... > > way? It would be very useful for adjust some views and maybe the CSS. > Overriding seems dirty and uncomfortable to me (and I don´t knwo how > could I override for example the list.rhtml view). > > Thank you! > > Alvaro > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Its also easy to write a "generator" that can automatically generate your controllers, and models from existing database. I did it with activescaffod, tabnav, and rolerequirement. And even check to see if the model/controller exist so its safe to run it. Check out my blog at mentalpagingspace.blogspot.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---