John Merlino
2010-Jan-30 14:48 UTC
difference between singularized symbol and pluralized symbol
Hey all, Does anyone know the difference between a singularized symbol (:student_state) and a pluralized symbol (:student_states). How can they be used differently. Thanks for suggestions. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Jan-30 17:09 UTC
Re: difference between singularized symbol and pluralized sy
John Merlino wrote:> Hey all, > > Does anyone know the difference between a singularized symbol > (:student_state) and a pluralized symbol (:student_states). How can they > be used differently. Thanks for suggestions.They''re completely different symbols. What are you really trying to ask? Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
John Merlino
2010-Jan-30 19:50 UTC
Re: difference between singularized symbol and pluralized sy
Marnen Laibow-Koser wrote:> John Merlino wrote: >> Hey all, >> >> Does anyone know the difference between a singularized symbol >> (:student_state) and a pluralized symbol (:student_states). How can they >> be used differently. Thanks for suggestions. > > They''re completely different symbols. What are you really trying to > ask? > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.orgIf one stemmed from this: StudentState.name.tableize and then was converted to a symbol (:student_states) and the other stemmed from this: StudentState.name.underscore and then was converted to a symbol (:student_state). StudentState is the model. I see this done all the time. I''m just curious of what different functionality the two provide. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Jan-31 00:52 UTC
Re: difference between singularized symbol and pluralized sy
John Merlino wrote:> Marnen Laibow-Koser wrote: >> John Merlino wrote: >>> Hey all, >>> >>> Does anyone know the difference between a singularized symbol >>> (:student_state) and a pluralized symbol (:student_states). How can they >>> be used differently. Thanks for suggestions. >> >> They''re completely different symbols. What are you really trying to >> ask? >> >> Best, >> -- >> Marnen Laibow-Koser >> http://www.marnen.org >> marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > If one stemmed from this: StudentState.name.tableize and then was > converted to a symbol (:student_states) and the other stemmed from this: > StudentState.name.underscore and then was converted to a symbol > (:student_state). StudentState is the model. I see this done all the > time. I''m just curious of what different functionality the two provide.Symbols don''t provide functionality. They''re just data. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.