Ruby on Rails Wednesday, November 26, 2014

fred,
cant find it in the docs, is that also available for r3.2?
thx

On Wed, Nov 26, 2014 at 5:09 AM, Frederick Cheung <frederick.cheung@gmail.com> wrote:


On Tuesday, November 25, 2014 9:02:29 PM UTC, der_tom wrote:
hi, 

im having this:
  alias_attribute "id" , "No_"
  alias_attribute "name" , "Name"
  alias_attribute "name2" , "Name 2"
  alias_attribute "address" , "Address"
#  alias_attribute "no_series" , "No Series"
#  alias_attribute "property_no" , "Property N

Model.attribute_aliases returns a hash with all the aliases.

Fred

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5e7b82d5-552a-406a-a4a9-103cba7ce093%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMeywfZRYcRjOzEFmCh%2BPxUTpcL0en0-emX_nPqBvCQbsA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment