before action only code example Example: before action only before_action :set_newsletter_email, only: [:show, :edit]