use hash from model in controller

14 views
Skip to first unread message

fugee ohu

unread,
Apr 25, 2017, 5:49:50 PM4/25/17
to Ruby on Rails: Talk
I have a hash in my model and need to lookup keys from values in my controller Here's the hash:
VENUE_STATE_TYPES = 
  [
    ['Alabama', 'AL'],
    ['Alaska', 'AK'],
    ...
  ]

Walter Lee Davis

unread,
Apr 25, 2017, 7:19:25 PM4/25/17
to rubyonra...@googlegroups.com
Please stick to one thread per question, I've answered this separately.

Walter
> --
> 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-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bd870ca2-a3f5-4932-8ab7-32808bc6df3d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

fugee ohu

unread,
Apr 25, 2017, 8:30:33 PM4/25/17
to Ruby on Rails: Talk
Thanks Should I delete this post? 

Walter Lee Davis

unread,
Apr 26, 2017, 8:52:44 AM4/26/17
to rubyonra...@googlegroups.com
When you figure out how to delete an e-mail from everyone's in-box, you will have a long line of Senators and Congress(persons) at your door asking how. This is a mailing list, even if you interact with it through a Web site.

Walter


nynhex

unread,
Apr 26, 2017, 9:07:58 AM4/26/17
to rubyonra...@googlegroups.com
Lol this was epic

Sent from my iPhone
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/F6F566C1-3428-47F4-BA55-C8DA3365C1F3%40wdstudio.com.
Reply all
Reply to author
Forward
0 new messages