Displaying 2 results from an estimated 2 matches for "nganpham".
Did you mean:
gandham
2013 Jan 25
9
Object#tap_if and Object#tap_unless
I originally brought this up in: https://github.com/rails/rails/issues/9067
Rails paved the way for Object#tap and Object#try...I''d like to propose
Object#tap_if and its counterpart,Object#tap_unless.
I''ve been following 37signals conventions of tapping variables in the views:
<% account.owner.tap do |user| %>
...
<% end %>
But, I find myself having to do this
2012 Jul 10
1
has_many association with autosave issues
I''d like to use autosave => true for an association for its added benefits:
the parent doesn''t save unless the children saves. However, it seems to
skip validations when saving the children. And this seems to be the case
since the beginning of time...
Anyone know why?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: