If action_name Rails
Try:
if action_name == "new" or action_name == "edit"
Or:
if ["new", "edit"].include? action_name
You probably want this:
if action_name == 'new' || action_name == 'edit'
Try:
if action_name == "new" or action_name == "edit"
Or:
if ["new", "edit"].include? action_name
You probably want this:
if action_name == 'new' || action_name == 'edit'