Does Rails have an "active?" method on ActiveRecord? -
i'm looking @ "fields_for" helper doc @ rails api website. following piece of code confuses me.
<%= form_for @person |person_form| %> ... <%= person_form.fields_for :projects |project_fields| %> <% if project_fields.object.active? %> name: <%= project_fields.text_field :name %> <% end %> <% end %> ... <% end %>
does have idea "acitve?" is? looks method on activerecord object, can't find doc/reference it.
no (activemodel) doesn't, asking object generated fields_for.
Comments
Post a Comment