27 lines
492 B
Ruby
27 lines
492 B
Ruby
module Nonprofits
|
|
class ButtonController < ApplicationController
|
|
include NonprofitHelper
|
|
|
|
|
|
before_filter :authenticate_user!
|
|
|
|
|
|
def send_code
|
|
NonprofitMailer.button_code(current_nonprofit, params[:to_email], params[:to_name], params[:from_email], params[:message], params[:code]).deliver
|
|
render json: {}, status: 200
|
|
end
|
|
|
|
def basic
|
|
@nonprofit = current_nonprofit
|
|
end
|
|
|
|
def guided
|
|
@nonprofit = current_nonprofit
|
|
end
|
|
|
|
def advanced
|
|
@nonprofit = current_nonprofit
|
|
end
|
|
|
|
end
|
|
end
|