Use this
def auction_params
params.require(:auction).permit(:auction_email,:auction_description, :auction_location, :auction_deadline, :auction_title, bets_attributes: [ :bet_size], )
end
Assuming that Auction
is your model.
params.require
argument should be :auction
(:modelname) and in permit
method you pass the atrributes like :auction_email
(:attributename) that you would like to insert/update in database.