Ruby on Rails
Thursday, June 7, 2018
how do i get options as well as values from select_tags in my controller or how do i lookup the options I have states stored in my User model as STATE_TYPES which looks like ["Alabamba", "AL"] ... How do I reference the element in the hash for AL so I can display Alabama in my views instead of AL Thanks in advance
-- 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/20ba4e7a-ac9d-4839-abd9-c70550f5f89f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment