A common idiom is to make a shared folder, put a partial called 
_error.html.erb in it.  then the _form partial will have render 
'shared/error', :object => @foo.  I think it would be wise to extract the 
error code from the form partial to the error partial to clean up the form 
when doing a rails scaffold command.  Does this seem like it would be a 
good idea?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to