Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7883969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:40:30+00:00 2026-06-03T04:40:30+00:00

So I made a quick ruby on rails app (railstutorial twitter clone). My source

  • 0

So I made a quick ruby on rails app (railstutorial twitter clone). My source code is the same as https://github.com/railstutorial/sample_app_2nd_ed.

Then I tried adding replies to the messages with http://railscasts.com/episodes/262-trees-with-ancestry?view=asciicast. My comment is at the bottom BigBoy1337. This is what it says:

I keep getting an error saying

undefined method `new_message_path'

This is in app/views/messages/_messages.html.erb

for

<%= link_to "Reply", new_message_path(:parent_id => message) %> 
<% if current_user?(message.user) %>
<%= link_to "delete", message, method: :delete,
                     confirm: "You sure?",
                     title: message.content %>
<% end %>

Any idea where to define new_message_path? I tried adding

def new_message_path
end

in app/controllers/message/controllers

…but it didn’t work. I have downloaded the source code (https://github.com/BigBoy1337/railscasts-episodes/tree/master/episode-262/messenger-after) and that works! but I cant find where they define new_message_path, yet it works. Why does it work for them, and how can I get it to work for me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:40:31+00:00Added an answer on June 3, 2026 at 4:40 am

    That’s a resource route. Try adding the following to routes.rb:

    resources :messages

    Also, read this: http://guides.rubyonrails.org/routing.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made a quick Jsbin: http://jsbin.com/ujabew/edit#javascript,html,live What i'm trying to achieve is to
I have made a quick fiddle: http://jsfiddle.net/tLLB4/ Ok, so the premise is, i'm hovering
Just a quick questions.. I have made an outlook add-in for 2007 version and
I made the mistake of modifying my original source after importing it into subversion.
I have made a quick fiddle to outline my problem: http://jsfiddle.net/mYdxw/ I'm trying to
I am using the following code to capture all the AJAX calls being made
I have one question. I made quick search on the site, but don't found
I've made a quick python script that converts to Unicode from ASCII and back.
I made a quick gridview, bound it to a datasource, put in a select
I have a SharePoint site and made several quick launches by going in SiteActions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.