listpush/app/controllers/list_entries_controller.rb
2014-02-13 00:07:45 -05:00

31 lines
879 B
Ruby

class ListEntriesController < ApplicationController
layout "listpush"
def new
@listentry = ListEntry.new
end
def create
ListEntry.new(listentry_params)
end
private
def listentry_params
params.require(:user).permit(:Address,
:AltNumber,
:BusinessName,
:City,
:CreditCards,
:Department,
:Fax,
:HoursOfOperation,
:LogoImage,
:Phone,
:State,
:URL,
:UnstructuredTerms,
:Zip,
:eMail)
end
end