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
  • Nickhil Gholkar
    PLUS
    Nickhil Gholkar
    Courses Plus Student 2,024 Points

    I seriously can not figure out what I am doing wrong here

    Posted September 5, 2023 7:05pm by Nickhil Gholkar
    Nickhil Gholkar
    Courses Plus Student 2,024 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Controller Action to Create Pets

    1 Answer

  • valeriuv
    valeriuv
    20,999 Points

    Error: Template is missing

    Posted May 4, 2019 12:48pm by valeriuv
    valeriuv
    20,999 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Controller Action to Create Pages

    1 Answer

  • MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points

    my form_for isn't working.

    Posted September 17, 2018 11:48pm by MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • View for New Pages

    10 Answers

  • Christopher Kemp
    Christopher Kemp
    3,446 Points

    Within the form_for block, output a label for the name field.

    Posted August 13, 2018 1:26am by Christopher Kemp
    Christopher Kemp
    3,446 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • View for New Pets

    2 Answers

  • Christopher Phillips
    Christopher Phillips
    10,061 Points

    Quotation convention

    Posted July 24, 2018 7:00am by Christopher Phillips
    Christopher Phillips
    10,061 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Route to Create Pages

    1 Answer

  • SOS Norway
    SOS Norway
    4,219 Points

    NoMethodError in PagesController#create

    Posted December 15, 2017 1:29pm by SOS Norway
    SOS Norway
    4,219 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Controller Action to Create Pages

    1 Answer

  • Piotr Ragankiewicz
    Piotr Ragankiewicz
    3,447 Points

    controller-action-to-create-pets / task 3

    Posted December 14, 2017 4:15pm by Piotr Ragankiewicz
    Piotr Ragankiewicz
    3,447 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Controller Action to Create Pets

    1 Answer

  • kavan Sharma
    kavan Sharma
    1,903 Points

    Why post 'pages',to 'pages#create' and why not post 'pages/new',to 'pages#create'

    Posted October 14, 2017 4:33am by kavan Sharma
    kavan Sharma
    1,903 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Route to Create Pages

    1 Answer

  • Joey Zheng
    Joey Zheng
    19,319 Points

    Why can't I use redirect_to method to redirect to an object?

    Posted July 29, 2017 1:29pm by Joey Zheng
    Joey Zheng
    19,319 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Controller Action to Create Pages

    1 Answer

  • Tommy Tayler
    Tommy Tayler
    11,549 Points

    Can't define "params"

    Posted June 19, 2017 10:01pm by Tommy Tayler
    Tommy Tayler
    11,549 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Controller Action to Create Pages

    1 Answer

  • Marcela Jackowski
    Marcela Jackowski
    2,045 Points

    I cannot guidance for this question, take the pet parameter group returned from require, and use the permit method on it

    Posted June 7, 2017 3:51am by Marcela Jackowski
    Marcela Jackowski
    2,045 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Controller Action to Create Pets

    1 Answer

  • Marcela Jackowski
    Marcela Jackowski
    2,045 Points

    Here's the full set of parameters coming in from a POST request again:

    Posted June 7, 2017 12:38am by Marcela Jackowski
    Marcela Jackowski
    2,045 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Controller Action to Create Pets

    0 Answers

  • Marcela Jackowski
    Marcela Jackowski
    2,045 Points

    Add a route that sends all GET requests for the /pets/new path to the PetsController's new action method.

    Posted June 6, 2017 9:22pm by Marcela Jackowski
    Marcela Jackowski
    2,045 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Route for New Pets

    1 Answer

  • Eric Lobatos
    Eric Lobatos
    2,112 Points

    Controller Action to create pages: What does "render text:", do exactly? And what is "params"?

    Posted May 22, 2017 2:04pm by Eric Lobatos
    Eric Lobatos
    2,112 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Controller Action to Create Pages

    1 Answer

  • Sarah Eichenstein
    Sarah Eichenstein
    7,488 Points

    First argument in form cannot contain nil or be empty

    Posted May 4, 2017 5:08pm by Sarah Eichenstein
    Sarah Eichenstein
    7,488 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • View for New Pages

    2 Answers

  • Danish Saleem
    Danish Saleem
    7,965 Points

    undefined method error when using form_for

    Posted April 26, 2017 1:27am by Danish Saleem
    Danish Saleem
    7,965 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • View for New Pages

    2 Answers

  • André Hatlo-Johnsen
    André Hatlo-Johnsen
    1,170 Points

    Cant understand what objects it wants

    Posted April 25, 2017 6:30pm by André Hatlo-Johnsen
    André Hatlo-Johnsen
    1,170 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • View for New Pets

    2 Answers

  • Yiheng Chu
    Yiheng Chu
    8,465 Points

    Why I can't use redirect_to '/pages/:id'? It said the 'id' params doesn't passed into the #show action.

    Posted April 11, 2017 7:54pm by Yiheng Chu
    Yiheng Chu
    8,465 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Controller Action to Create Pages

    1 Answer

  • Derek Lin
    Derek Lin
    1,563 Points

    new can have an id? how can new have an id?

    Posted March 17, 2017 5:03pm by Derek Lin
    Derek Lin
    1,563 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Route for New Pages

    2 Answers

  • PoJung Chen
    PoJung Chen
    5,856 Points

    At the video time of 9'10, what is AMS variable?

    Posted February 20, 2017 7:33am by PoJung Chen
    PoJung Chen
    5,856 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Controller Action to Create Pages

    1 Answer

  • PoJung Chen
    PoJung Chen
    5,856 Points

    What does it mean by passing an instance object into redirect_to method?

    Posted February 20, 2017 7:30am by PoJung Chen
    PoJung Chen
    5,856 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Controller Action to Create Pages

    2 Answers

  • Yuichi Narisawa
    Yuichi Narisawa
    19,548 Points

    Where did I make a mistake? (Challenge 1)

    Posted November 18, 2016 3:30am by Yuichi Narisawa
    Yuichi Narisawa
    19,548 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Controller Action to Create Pets

    1 Answer

  • nope
    PLUS
    nope
    Courses Plus Student 4,771 Points

    Why page but new_page_path

    Posted October 30, 2016 9:57am by nope
    nope
    Courses Plus Student 4,771 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • View for New Pages

    1 Answer

  • Oğulcan Girginc
    Oğulcan Girginc
    24,848 Points

    Why not post '/pages/new'?

    Posted October 12, 2016 6:05pm by Oğulcan Girginc
    Oğulcan Girginc
    24,848 Points
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Route to Create Pages

    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