Here is some simple code that doesn't work:
module ApplicationHelper def industries industries = ['Agriculture','Food', etc.] end end class User < ActiveRecord::Base include ApplicationHelper validates_inclusion_of :industries, :in => ApplicationHelper.industries ... end
This code does not work when a user action is executed using the undefined method 'industries' . Do you know how to properly contact an assistant (or, preferably, to industries)?
Edit
According to the code below in Mauricio, how can INDUSTRIES access the controller and view? I have real problems with the fact that the industry is available everywhere, but it is really necessary for my application.
source share