Well, this is not scaffolding but it can help with getting a quick start
in rails with established database schemata:
views/model/new.html.erb
<%- content_tag_for :h2, @model do %>
Adding Model <%= @model.id.to_s -%>
<%- end -%>
<%= error_messages_for :model -%>
<%= form :model -%> <== this generates an entire data entry html
form
from the database attributes
<%= link_to 'Back', model_path %>
See ActionView::Helpers::ActiveRecordHelper form method
--
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@...
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en-~----------~----~----~----~------~----~------~--~---