David Yip
Not a member
David Yip's latest activity
Monday, March 09 2009
-
David Yip commented at 4:02 PMI think exceptions would be fine; I personally haven't had a need for using forms on schemas that don't match what is expected by the form.
However, form_for do...
-
David Yip commented at 4:10 AMYeah, there's definitely times where the model is a more appropriate location for this sort of initialization code.
Here's another patch that implements the "do...
Sunday, March 08 2009
-
David Yip commented at 8:06 PMHmm, let me make sure I understand the proposal.
In this case, if post.author is nil, then the render result for
<% form_for @post do |f| %> <% f.fields_f... -
- Title changed from Nested model forms error on loading data from one-to-one associations that evaluate to nil to Nested model forms error on loading data from belongs_to associations that evaluate to nil
-
David Yip commented at 11:02 AMHere's a manual test in the form of a small Rails application that exercises the full stack in a scenario similar to the one in the problem description. To exer...
-
David Yip created the ticket at 10:56 AMWhen a belongs_to association called in a nested model form construction context evaluates to nil, new_record? is invoked on nil, which causes an error to be ra...