[Rails] Sharing code between the edit and create actions

Bill Atkins batkins57 at gmail.com
Thu Jan 27 00:49:09 GMT 2005


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"


More information about the Rails mailing list