🤑 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
  • 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.

    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.