class ListingsController < ApplicationController smarter_listing private def resource_params params.require(:listing).permit(:name, :content) if params[:listing] end end