Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7861235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:37:38+00:00 2026-06-02T22:37:38+00:00

When I do excel_mapping = YAML.load_file(#{Rails.root}/config/FdfToExcelMapping.yml) in dev environment the result is a hash

  • 0

When I do

excel_mapping = YAML.load_file("#{Rails.root}/config/FdfToExcelMapping.yml")

in dev environment the result is a hash of strings

While in production when deployed to heroku excel_mapping evaluates to a String.

What am I missing?

$heroku run console

config = YAML.load_file("#{Rails.root}/config/FdfToExcelMapping.yml")
=> "LastName:\t\tA FirstName:\t\tB County:\t\t\tC Company:\t\tD MainPhone:\t\tE Code:\t\t\tF Source:\t\t\tG Plan:\t\t\tH Type:\t\t\tI CurrentInsurance:\tJ TypeOfCoverage:\t\tK DateAdded:\t\tM Address1:\t\tO Address2:\t\tP City:\t\t\tQ State:\t\t\tR Zip:\t\t\tS County1:\t\tT Email:\t\t\tU DOB:\t\t\tV SSN:\t\t\tW Eff2Exp:\t\tX Y:\t\t\tY Business:\t\tZ HireDate:\t\tAA Effective:\t\tAB PP:\t\t\tAC CName1:\t\t\tAD CDOB1:\t\t\tAE CSSN1:\t\t\tAF CPP1:\t\t\tAG CName2:\t\t\tAH CDOB2:\t\t\tAI CSSN2:\t\t\tAJ CPP2:\t\t\tAK Spouse:\t\t\tAL SpouseDOB:\t\tAM SpouseSSN:\t\tAN SpousePP:\t\tAO CName3:\t\t\tAP CDOB3:\t\t\tAQ CSSN3:\t\t\tAR CPP3:\t\t\tAS CName4:\t\t\tAT CDOB4:\t\t\tAU CSSN4:\t\t\tAV CPP4:\t\t\tAW"

$rails console

config = YAML.load_file("#{Rails.root}/config/FdfToExcelMapping.yml")
 => {"LastName"=>"A", "FirstName"=>"B", "County"=>"C", "Company"=>"D", "MainPhone"=>"E", "Code"=>"F", "Source"=>"G", "Plan"=>"H", "Type"=>"I", "CurrentInsurance"=>"J", "TypeOfCoverage"=>"K", "DateAdded"=>"M", "Address1"=>"O", "Address2"=>"P", "City"=>"Q", "State"=>"R", "Zip"=>"S", "County1"=>"T", "Email"=>"U", "DOB"=>"V", "SSN"=>"W", "Eff2Exp"=>"X", "Y"=>"Y", "Business"=>"Z", "HireDate"=>"AA", "Effective"=>"AB", "PP"=>"AC", "CName1"=>"AD", "CDOB1"=>"AE", "CSSN1"=>"AF", "CPP1"=>"AG", "CName2"=>"AH", "CDOB2"=>"AI", "CSSN2"=>"AJ", "CPP2"=>"AK", "Spouse"=>"AL", "SpouseDOB"=>"AM", "SpouseSSN"=>"AN", "SpousePP"=>"AO", "CName3"=>"AP", "CDOB3"=>"AQ", "CSSN3"=>"AR", "CPP3"=>"AS", "CName4"=>"AT", "CDOB4"=>"AU", "CSSN4"=>"AV", "CPP4"=>"AW"} 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T22:37:40+00:00Added an answer on June 2, 2026 at 10:37 pm

    It looks like your YAML file includes tabs “\t” instead of spaces. The YAML spec seems to indicate that spaces are needed for key/value pair separation. http://www.yaml.org/spec/1.2/spec.html#id2775170

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Excel I have a column of words. I believe you call words strings
I am coding in GWT 2.3 using Eclipse. While I have had coding experience,
Every once in a while I find myself typing a one-off script to import
I have the below action mappings in the struts-config.xml file. <action path=/getTareWeight type=com.astrazeneca.usbod.scale.actions.GetTareByBarcodeAction name
in Excel, =ROUNDUP(474.872126666666, 2) -> 474.88 in .NET, Math.Round(474.87212666666666666666666666667, 2, MidpointRounding.ToEven) // 474.87 Math.Round(474.87212666666666666666666666667,
When Excel determines the axis values it will use to represent your data in
in Excel , in my pivot tables when i drop down the row fields,
In Excel I have attached a picture to a cell using the following Sub
In Excel, there are methods to access data from external data sources. Excel comes
The excel spreadsheet is connecting to SQL server 2005 using the connection string below:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.