With the form tag you can pick up new database columns as they are added to the
database. You can''t do that with your suggested
approach. It also makes generate scaffold somewhet more complex. But I can
understand your point: if you design the database before
designing your screens, it would save tremendous amounts of time. Maybe a flag
for generate scaffold would be nice.
-- stefan
-----Ursprungliche Nachricht-----
Von: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org]Im
Auftrag von Roeland Moors
Gesendet: Mittwoch, 12. Januar 2005 13:49
An: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
Betreff: [Rails] scaffold form
When generating views with scaffold the edit file looks like
this:
<h1>Editing stuff</h1>
<%= error_messages_for ''stuff'' %>
<%= form ''stuff'', :action => ''update''
%>
<%= link_to ''Show'', :action => ''show'',
:id => @stuff.id %> |
<%= link_to ''Back'', :action => ''list''
%>
This works fine, but now I want to type some text between the inputs.
This means I have to remove the form tag and use other tag helpers
for each field.
Isn''t it possible to generate a view with all the input fields
instead of one form field? That way I can change thinks much
quicker.
--
Roeland
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails