I wrote my app in your way. So I support you. I don't think it is better to write only one template for both new and edit. Because they are different methods in controller, and sometimes they take different parameters and submit different parameters too.
On Nov 13, 7:33 am, Sam Kong <[EMAIL PROTECTED]> wrote: > Hi, > > I had an argument with the web designer about a philosophical(not very > practical) issue. > > Normally, we have new.html.erb and edit.html.erb and they share > _form.html.erb as a partial render. > The designer said that there should be only one view template and use > if-statement for minor differences. > > For example, they all should be combined into form.html.erb. > She thinks that it's better design-wise. > No redundancy, blah blah... > > I am against it. > But I failed to convince her. > > What do you think? > > Thanks. > > Sam > -- > Posted viahttp://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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

