✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

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

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

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

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
    • Showing results for:
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • Close
  • Eldin Guzin
    Eldin Guzin
    6,010 Points

    Question about the "new" problem

    Posted on Feb 5, 2024 by Eldin Guzin
    Eldin Guzin
    6,010 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • Route Priority

    0 Answers

  • Alex Godfrey
    Alex Godfrey
    9,249 Points

    FYI URI.encode_www_form_component to be used instead of URI.escape for Ruby 3.0 and above

    Posted on Mar 27, 2023 by Alex Godfrey
    Alex Godfrey
    9,249 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • A Route for POST Requests

    0 Answers

  • Rhonda Goolsby
    Rhonda Goolsby
    6,992 Points

    redirect

    Posted on Aug 3, 2020 by Rhonda Goolsby
    Rhonda Goolsby
    6,992 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • Submitting the Form Via POST Request

    1 Answer

  • Rhonda Goolsby
    Rhonda Goolsby
    6,992 Points

    How to make this code correct?

    Posted on Jul 28, 2020 by Rhonda Goolsby
    Rhonda Goolsby
    6,992 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • Route Priority

    1 Answer

  • Muhammad sharifi
    Muhammad sharifi
    4,455 Points

    anyone know why this is not working.?

    Posted on Apr 23, 2019 by Muhammad sharifi
    Muhammad sharifi
    4,455 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • Submitting the Form Via POST Request

    1 Answer

  • Muhammad sharifi
    Muhammad sharifi
    4,455 Points

    With this app, when a browser sends a GET request with a path of /1/fish, the response will be the string "I see 1 fish!

    Posted on Apr 22, 2019 by Muhammad sharifi
    Muhammad sharifi
    4,455 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • Route Priority

    1 Answer

  • Andrew Ackerman
    Andrew Ackerman
    8,347 Points

    Struggling with task 3.

    Posted on Mar 7, 2019 by Andrew Ackerman
    Andrew Ackerman
    8,347 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • Submitting the Form Via POST Request

    2 Answers

  • MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points

    If I didn't want to use the save content option, how would i save it to a database instead of to a file using sqlite3?

    Posted on Jul 28, 2018 by MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • A Route for POST Requests

    2 Answers

  • Christopher Phillips
    Christopher Phillips
    10,061 Points

    Challenge Task 2 of 4

    Posted on Jul 16, 2018 by Christopher Phillips
    Christopher Phillips
    10,061 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • Submitting the Form Via POST Request

    2 Answers

  • Steve Torrens
    Steve Torrens
    3,826 Points

    Changed the route definition order but not getting a correct answer

    Posted on Jul 11, 2018 by Steve Torrens
    Steve Torrens
    3,826 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • Route Priority

    1 Answer

  • Christopher Kemp
    Christopher Kemp
    3,446 Points

    "/signatures/new"

    Posted on Jun 29, 2018 by Christopher Kemp
    Christopher Kemp
    3,446 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • Submitting the Form Via POST Request

    1 Answer

  • manu anku
    PLUS
    manu anku
    Courses Plus Student 1,673 Points

    With this app, when a browser sends a GET request with a path of /1/fish, the response will be the string "I see 1 fish!

    Posted on Oct 30, 2017 by manu anku
    manu anku
    Courses Plus Student 1,673 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • Route Priority

    1 Answer

  • Sviatoslav Terletskyi
    Sviatoslav Terletskyi
    6,150 Points

    Finally, at the end of the post "/signatures/create" route, redirect the browser to the /signatures/new path (which will

    Posted on Sep 22, 2017 by Sviatoslav Terletskyi
    Sviatoslav Terletskyi
    6,150 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • Submitting the Form Via POST Request

    1 Answer

  • Volodymyr Rusynyk
    Volodymyr Rusynyk
    5,725 Points

    Rewatching the video 20 times and I can't see there anything similar with the code challenge Stuck on it. Can anybody he

    Posted on Sep 13, 2017 by Volodymyr Rusynyk
    Volodymyr Rusynyk
    5,725 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • Route Priority

    2 Answers

  • Amir Tamim
    Amir Tamim
    8,597 Points

    Redirecting browser...

    Posted on Sep 12, 2017 by Amir Tamim
    Amir Tamim
    8,597 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • Submitting the Form Via POST Request

    1 Answer

  • Kepa Tairua
    PLUS
    Kepa Tairua
    Courses Plus Student 4,404 Points

    Error for Task 2, input type="text" but says it isn't.

    Posted on Jul 15, 2017 by Kepa Tairua
    Kepa Tairua
    Courses Plus Student 4,404 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • An HTML Form

    1 Answer

  • Kyle Shamblin
    Kyle Shamblin
    9,945 Points

    test.rb file wont load.

    Posted on May 30, 2017 by Kyle Shamblin
    Kyle Shamblin
    9,945 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • Saving Text Files

    1 Answer

  • Noor Muhammad Iskandar
    Noor Muhammad Iskandar
    6,869 Points

    Ruby Post HTML challenge

    Posted on Mar 23, 2017 by Noor Muhammad Iskandar
    Noor Muhammad Iskandar
    6,869 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • Submitting the Form Via POST Request

    3 Answers

  • Neil Graham
    Neil Graham
    8,191 Points

    Does writing into a file always overwrite it?

    Posted on Feb 28, 2017 by Neil Graham
    Neil Graham
    8,191 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • Saving Text Files

    1 Answer

  • Hadi Farhat
    PLUS
    Hadi Farhat
    Courses Plus Student 7,102 Points

    my form handles white spaces normally

    Posted on Jan 12, 2017 by Hadi Farhat
    Hadi Farhat
    Courses Plus Student 7,102 Points
    • Ruby
    • Building Web Apps with Sinatra
    • Adding New Data
    • A Route for POST Requests

    4 Answers

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

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.