Zac Elston
2006-Aug-23 19:12 UTC
[Rails] Documentation for LegacyDB scaffold and STP (no CRUD)
Does any documenttion exist for augmenting the existing scaffold generator for a legacyDB where storedProcedures have to be used inplace of a normal CRUD command? ie modify def create @setting = Setting.new(params[:setting]) if @setting.save [...] to use the insert storedprocedure? sql_server.rb is great for making hand written SQL calls but I''m betting there is somehting in rails that will keep me from rewriting every method. ideas? thanks -- 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 -~----------~----~----~----~------~----~------~--~---
Jeremy Evans
2006-Aug-24 15:00 UTC
[Rails] Re: Documentation for LegacyDB scaffold and STP (no CRUD)
On 8/23/06, Zac Elston <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Does any documenttion exist for augmenting the existing scaffold > generator for a legacyDB where storedProcedures have to be used inplace > of a normal CRUD command?Modify the ActionController::Scaffolding::ClassMethods.scaffold command to generate different code. See the Scaffolding Extensions plugin [1] for an example. The SVN server is back up now, and the tar.gz should be up hopefully by this weekend. [1] http://wiki.rubyonrails.com/rails/pages/Scaffolding+Extensions+Plugin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---