Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

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

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

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
  • alexx1000
    alexx1000
    16,187 Points

    In hello.rb, in the get route for the "/greet/:name" path, set the @name instance variable to equal the contents of the

    Posted March 12, 2021 8:51pm by alexx1000
    alexx1000
    16,187 Points
    • Ruby
    • Building Web Apps with Sinatra
    • ERB Templates
    • Embedding Instance Variables

    2 Answers

  • alexx1000
    alexx1000
    16,187 Points

    Hi there! I'm a bit confused about what I my code should be. Can you please take a look and help me? Thanks so much!! :)

    Posted March 12, 2021 8:48pm by alexx1000
    alexx1000
    16,187 Points
    • Ruby
    • Building Web Apps with Sinatra
    • ERB Templates
    • Embedding Instance Variables

    0 Answers

  • Hans Peter Jonas Høgh-Noori
    Hans Peter Jonas Høgh-Noori
    8,781 Points

    Let's greet the user, as we did before, but this time using an ERB template. Set up views/hello.erb to output "Hello"

    Posted December 18, 2020 10:50am by Hans Peter Jonas Høgh-Noori
    Hans Peter Jonas Høgh-Noori
    8,781 Points
    • Ruby
    • Building Web Apps with Sinatra
    • ERB Templates
    • Embedding Instance Variables

    1 Answer

  • aa122
    aa122
    6,922 Points

    How does erb knows the path of the file which sits in another folder

    Posted August 20, 2019 8:59pm by aa122
    aa122
    6,922 Points
    • Ruby
    • Building Web Apps with Sinatra
    • ERB Templates
    • Embedding Instance Variables

    1 Answer

  • demi hwang
    demi hwang
    3,691 Points

    I don't know how to solve Taks 2. I did many thing like using .capitalize method but I can't handle it plz help me

    Posted August 31, 2017 12:24am by demi hwang
    demi hwang
    3,691 Points
    • Ruby
    • Building Web Apps with Sinatra
    • ERB Templates
    • Embedding Instance Variables

    1 Answer

  • JOSE PAEZ
    JOSE PAEZ
    7,566 Points

    My code doesn't work, bug?

    Posted June 29, 2017 4:37pm by JOSE PAEZ
    JOSE PAEZ
    7,566 Points
    • Ruby
    • Building Web Apps with Sinatra
    • ERB Templates
    • Embedding Instance Variables

    1 Answer

  • Hannah Trewern
    Hannah Trewern
    13,429 Points

    render the views/hello Not sure what I am doing wrong

    Posted April 9, 2017 10:20pm by Hannah Trewern
    Hannah Trewern
    13,429 Points
    • Ruby
    • Building Web Apps with Sinatra
    • ERB Templates
    • Embedding Instance Variables

    1 Answer

  • Osvaldo Gonzalez
    Osvaldo Gonzalez
    5,340 Points

    Back in hello.rb, at the end of the route block, render the views/hello.erb template. What am I doing wrong?

    Posted March 31, 2017 4:25am by Osvaldo Gonzalez
    Osvaldo Gonzalez
    5,340 Points
    • Ruby
    • Building Web Apps with Sinatra
    • ERB Templates
    • Embedding Instance Variables

    2 Answers

  • Tracy Bowen
    Tracy Bowen
    8,526 Points

    Embedding instance variable

    Posted January 30, 2017 2:10am by Tracy Bowen
    Tracy Bowen
    8,526 Points
    • Ruby
    • Building Web Apps with Sinatra
    • ERB Templates
    • Embedding Instance Variables

    1 Answer

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