30 lines
859 B
Ruby
30 lines
859 B
Ruby
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
|