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.

John M. 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
[email protected]

Marnen Laibow-Koser wrote:

John M. 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
[email protected]

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.

John M. wrote:

Marnen Laibow-Koser wrote:

John M. 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
[email protected]

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
[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs