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

New No-Code Track! 🚀 New videos dropping every week—start learning today!

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

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

  • 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
    • Community Projects
    • Live Sessions
    • 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
  • Community Projects Live Sessions 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
  • 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.

    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.