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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -