listpush/app/controllers/list_entries_controller.rb

30 lines
859 B
Ruby
Raw Normal View History

class ListEntriesController < ApplicationController
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