Skip to main content

🛍️ CYBER MONDAY ALL WEEK get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🤩

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Carlos Andres rodriguez
    Carlos Andres rodriguez
    4,849 Points

    I don't understand what I am missing.

    Posted August 23, 2019 2:43pm by Carlos Andres rodriguez
    Carlos Andres rodriguez
    4,849 Points
    • Ruby
    • Ruby Collections
    • Build a Grocery List Program
    • Create a Method That Returns a Hash

    2 Answers

  • Joe Quattrone
    Joe Quattrone
    195 Points

    what does this error mean? Bummer: Errno::ENOENT: No such file or directory @ rb_sysopen - 1

    Posted November 7, 2018 5:48pm by Joe Quattrone
    Joe Quattrone
    195 Points
    • Ruby
    • Ruby Collections
    • Build a Grocery List Program
    • Create a Method That Returns a Hash

    1 Answer

  • Eric Carter
    Eric Carter
    2,130 Points

    What is the challenge task asking for?

    Posted November 1, 2017 2:33pm by Eric Carter
    Eric Carter
    2,130 Points
    • Ruby
    • Ruby Collections
    • Build a Grocery List Program
    • Create a Method That Returns a Hash

    2 Answers

  • Tobias Jackson
    Tobias Jackson
    9,758 Points

    Create a method named "create_shopping_list" that returns a hash. It does not need to ask for a name or get anything fro

    Posted March 22, 2017 12:49pm by Tobias Jackson
    Tobias Jackson
    9,758 Points
    • Ruby
    • Ruby Collections
    • Build a Grocery List Program
    • Create a Method That Returns a Hash

    1 Answer

  • Joman Dzidzi
    Joman Dzidzi
    196 Points

    Ruby Methods

    Posted December 22, 2016 12:46pm by Joman Dzidzi
    Joman Dzidzi
    196 Points
    • Ruby
    • Ruby Collections
    • Build a Grocery List Program
    • Create a Method That Returns a Hash

    2 Answers

  • Simon Goldman
    Simon Goldman
    1,028 Points

    create a method

    Posted December 8, 2016 7:14pm by Simon Goldman
    Simon Goldman
    1,028 Points
    • Ruby
    • Ruby Collections
    • Build a Grocery List Program
    • Create a Method That Returns a Hash

    2 Answers

  • Marguerite Holden
    Marguerite Holden
    6,075 Points

    Need help

    Posted October 17, 2016 7:55pm by Marguerite Holden
    Marguerite Holden
    6,075 Points
    • Ruby
    • Ruby Collections
    • Build a Grocery List Program
    • Create a Method That Returns a Hash

    2 Answers

  • ahmed aboukoura
    ahmed aboukoura
    1,345 Points

    consule problem

    Posted July 22, 2016 4:00pm by ahmed aboukoura
    ahmed aboukoura
    1,345 Points
    • Ruby
    • Ruby Collections
    • Build a Grocery List Program
    • Create a Method That Returns a Hash

    2 Answers

  • Brian Patterson
    Brian Patterson
    19,588 Points

    Why isn't this working?

    Posted April 28, 2016 7:39pm by Brian Patterson
    Brian Patterson
    19,588 Points
    • Ruby
    • Ruby Collections
    • Build a Grocery List Program
    • Create a Method That Returns a Hash

    1 Answer

  • dididadaya Zhao
    dididadaya Zhao
    1,319 Points

    don't understand

    Posted March 9, 2016 8:12pm by dididadaya Zhao
    dididadaya Zhao
    1,319 Points
    • Ruby
    • Ruby Collections
    • Build a Grocery List Program
    • Create a Method That Returns a Hash

    1 Answer

  • isaacpollock
    isaacpollock
    1,023 Points

    why isn't this working

    Posted October 23, 2015 7:48pm by isaacpollock
    isaacpollock
    1,023 Points
    • Ruby
    • Ruby Collections
    • Build a Grocery List Program
    • Create a Method That Returns a Hash

    1 Answer

  • Jared Armes
    PLUS
    Jared Armes
    Courses Plus Student 6,391 Points

    Method won't return hash

    Posted August 17, 2015 12:40pm by Jared Armes
    Jared Armes
    Courses Plus Student 6,391 Points
    • Ruby
    • Ruby Collections
    • Build a Grocery List Program
    • Create a Method That Returns a Hash

    1 Answer

  • matyasmandk
    matyasmandk
    4,954 Points

    i dont undestand...

    Posted June 19, 2015 10:29am by matyasmandk
    matyasmandk
    4,954 Points
    • Ruby
    • Ruby Collections
    • Build a Grocery List Program
    • Create a Method That Returns a Hash

    0 Answers

  • Stephen Printup
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Stephen Printup
    UX Design Techdegree Student 45,252 Points

    Ruby Collections: Challenge 1 of 1: Hash

    Posted June 4, 2015 2:14pm by Stephen Printup
    .a{fill-rule:evenodd;}techdegree
    Stephen Printup
    UX Design Techdegree Student 45,252 Points
    • Ruby
    • Ruby Collections
    • Build a Grocery List Program
    • Create a Method That Returns a Hash

    1 Answer

  • Sharon Eller
    Sharon Eller
    3,090 Points

    Create a method named "create_shopping_list" that returns a hash

    Posted May 21, 2015 3:49pm by Sharon Eller
    Sharon Eller
    3,090 Points
    • Ruby
    • Ruby Collections
    • Build a Grocery List Program
    • Create a Method That Returns a Hash

    2 Answers

  • Will Long
    Will Long
    5,449 Points

    why does this say that it is not returning the hash when it explicitly say "return hash"

    Posted April 24, 2015 1:24am by Will Long
    Will Long
    5,449 Points
    • Ruby
    • Ruby Collections
    • Build a Grocery List Program
    • Create a Method That Returns a Hash

    1 Answer

  • Noobs guru
    Noobs guru
    3,847 Points

    whats wrong with this code?

    Posted February 4, 2015 2:50pm by Noobs guru
    Noobs guru
    3,847 Points
    • Ruby
    • Ruby Collections
    • Build a Grocery List Program
    • Create a Method That Returns a Hash

    3 Answers

  • jay niceness
    jay niceness
    7,406 Points

    seriously confused... asking to create simple method "create_shopping_list" and only return a hash... not working...

    Posted January 27, 2015 7:14am by jay niceness
    jay niceness
    7,406 Points
    • Ruby
    • Ruby Collections
    • Build a Grocery List Program
    • Create a Method That Returns a Hash

    4 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord