# In my "create" methon
def create
require "myEmailValidator"
@result = EmailValidator.validate(params[:email_from_form])
end
It works, but maybe is there a better way to work with it?
Isn't it generally accepted practice to put require statements at the
top of the file? It seem odd to me to put them inside a method as you've
done here. Maybe I'm just used to treating require like import from
other languages.