Ruby on Rails Thursday, October 3, 2019

SomeClass::ITEM_TYPES

El jue., 3 oct. 2019 a las 19:25, fugee ohu (<fugee279@gmail.com>) escribió:
 ITEM_TYPES =  ['General', 'Book', 'Record', 'Magazine', 'Pez dispenser', 'CD', 'VHS casette']
Now I wanna use ITEM_TYPES in my view but rails says

undefined method `ITEM_TYPES' for #<Class:...>

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/91b6e184-aa15-4da4-b567-d567005c9e6d%40googlegroups.com.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcDnkL6vFNizeN%2BWrMw061tnrcwYYUcd3_5R092JK3LZGA%40mail.gmail.com.

No comments:

Post a Comment