daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Apr 24th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class ContactsController < ApplicationController
  2.  
  3.   def index
  4.   end
  5.  
  6.   def new
  7.   end
  8.  
  9.   def create
  10.    
  11.     LegMailer.deliver_legislator(params[:name], params[:email], params[:body], params[:legislator])
  12.     flash[:notice] = "You've successfuly registered. Please check your email for a confirmation!"
  13.     render :action => 'index'
  14.     logger.debug params.inspect
  15.   end
  16.  
  17. end
RAW Paste Data
Top