app/controllers/portfolios_controller.rb
def portfolio_params
    params.require(:portfolio)
          .permit(:cryptocurrency, :amount, :date_of_purchase,
                  :wallet_location, :current_market_value)
  end
# Only allow a trusted parameter "white list" through.
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .
def portfolio_params
    params.require(:portfolio)
          .permit(:cryptocurrency, :amount, :date_of_purchase,
                  :wallet_location, :current_market_value)
  end
def portfolio_params params . require ( :portfolio ) . permit ( :cryptocurrency , :amount , :date_of_purchase , :wallet_location , :current_market_value ) end
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .