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

  • Home
  • SEARCH
  • 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 7068557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:20:18+00:00 2026-05-28T05:20:18+00:00

I have an array, example below, that I am serializing into the database and

  • 0

I have an array, example below, that I am serializing into the database and the result is below the example. I’ve tried using ”, “” and nil, the former two insert themselves somehow and nil inserts !!nil which when read back is giving me some weird object.

In my model.

serialize :display_instructions

In my controller.

display_instructions = [["object", '', 5]]

The result is below…

---
- - places
  - '' 
  - 5

If I edit this and remove the ” it works as expected, the problem seems to be on and off. For a while it worked as expected and I got nothing where the quotes are but now it’s doing it again.

Thanks in advance for the help!

EDIT: As the title suggest, the problem is that it’s inserting quotes where I want nothing at all, even using ” ” inserts the double surrounding quotes.

Jay

  • 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-05-28T05:20:19+00:00Added an answer on May 28, 2026 at 5:20 am

    Ok thanks to Jordan for tipping me in the correct direction. The problem was in the backend it was only checking nil? and not empty? – problem fixed.

    Just to reiterate what he said, ” and “” are how blank strings are represented in YAML.

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

Sidebar

Related Questions

I have the array example below that I am using to dynamically create an
I have a multi-dimensional array similar to the example below that I want to
I have an Array List that I want to output like my example below.
This is a general question. Using an example below, suppose that I have a
I have two arrays of animals (for example). $array = array( array( 'id' =>
I have a DependencyObject in C# that is used in an array. Example shown
Here's the problem. I ,for example,have a string 2500.Its converted from byte array into
I have a div with elements below it that I am serializing. I am
I have an array that represents a grid For the sake of this example
Hi I have the array below, I need to copy the contents into another

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.