• Home
  • Free Trial
  • Sign In
  • Plans
  • 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
  • fazrul kamisan
    fazrul kamisan
    9,368 Points

    No route matches {:action=>"edit", :controller=>"comments", :id=>nil, :post_id=>"2"}, missing required keys: [:id]

    Posted April 1, 2019 10:31pm by fazrul kamisan
    fazrul kamisan
    9,368 Points
    • Ruby
    • Active Record Associations in Rails
    • Using Associations in Your App
    • Updating an Associated Record

    3 Answers

  • Jacob Brantley
    Jacob Brantley
    124 Points

    Accessing comments from the post_controller

    Posted November 26, 2018 2:22am by Jacob Brantley
    Jacob Brantley
    124 Points
    • Ruby
    • Active Record Associations in Rails
    • Using Associations in Your App
    • Updating an Associated Record

    4 Answers

  • Jacob Brantley
    Jacob Brantley
    124 Points

    before_action :set_post performance

    Posted November 26, 2018 2:13am by Jacob Brantley
    Jacob Brantley
    124 Points
    • Ruby
    • Active Record Associations in Rails
    • Using Associations in Your App
    • Updating an Associated Record

    2 Answers

  • Christopher Phillips
    Christopher Phillips
    10,061 Points

    No before_action for @comment ?

    Posted August 4, 2018 4:09am by Christopher Phillips
    Christopher Phillips
    10,061 Points
    • Ruby
    • Active Record Associations in Rails
    • Using Associations in Your App
    • Updating an Associated Record

    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
  • Perks
  • Public Library Access
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2023 Treehouse Island, Inc.