Sharing code between the edit and create actions

Bill Atkins
Thu, 27 Jan 2005 00:49:09 -0000

Is there an easy way to reuse the code used to generate an edit form
to generate the form for the create action?  In the ONLamp tutorial, a
custom edit page is written, but the changes have no effect on
creating a recipe.

Bill

--
$stdout.sync = true
"Just another Ruby hacker.".each_byte do |b|
  (''a''..''z'').step do|c|print
c+"\b";sleep 0.007 end;print b.chr
end; print "\n"