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

New No-Code Track! 🚀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
    • 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
  • 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
    • Showing results for:
    • Ruby
    • Rails Routes and Resources
    • Routes to Create Actions
    • Close
  • Nickhil Gholkar
    PLUS
    Nickhil Gholkar
    Courses Plus Student 2,024 Points

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

    Posted on Sep 5, 2023 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 on May 4, 2019 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 on Sep 17, 2018 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 on Aug 13, 2018 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 on Jul 24, 2018 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 on Dec 15, 2017 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 on Dec 14, 2017 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 on Oct 14, 2017 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 on Jul 29, 2017 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 on Jun 19, 2017 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 on Jun 7, 2017 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 on Jun 7, 2017 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 on Jun 6, 2017 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 on May 22, 2017 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 on May 4, 2017 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 on Apr 26, 2017 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 on Apr 25, 2017 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 on Apr 11, 2017 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 on Mar 17, 2017 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 on Feb 20, 2017 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 on Feb 20, 2017 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 on Nov 18, 2016 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 on Oct 30, 2016 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 on Oct 12, 2016 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.