Ruby on Rails Thursday, October 3, 2019

 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.

No comments:

Post a Comment