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.
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.