• Home
  • Free Trial
  • Sign In
  • Techdegree
  • Tracks
  • Library
  • Community
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • Ruby
      • • Security
  • 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

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

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

  • Perks
  • Treehouse for Libraries
  • Treehouse for Teams
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2022 Treehouse Island, Inc.