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

  • Home
  • SEARCH
  • 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 8921961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:41:55+00:00 2026-06-15T06:41:55+00:00

According to current best practices a RESTful URL for a given thread on a

  • 0

According to current best practices a RESTful URL for a given thread on a message board should look something like this:

http://domain/forum/threads/3

It is also a common SEO practice that URLs should contain keywords (slug), so perhaps the above URL could become:

http://domain/forum/threads/3/title-of-this-particular-thread

Now, to edit this thread, again, according to the guidelines I’ve linked to in the first paragraph, the URL would be:

http://domain/forum/threads/3/edit

What should happen when someone starts a thread with the title of “edit”? How should it be decided if the thread is to be shown or edited?

  • 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-15T06:41:57+00:00Added an answer on June 15, 2026 at 6:41 am

    Instead of http://domain/forum/threads/3/title-of-this-particular-thread

    You should be doing http://domain/forum/threads/3-title-of-this-particular-thread

    This will prevent conflicts and is just as SEO friendly. There are a few ways to accomplish this, but the easiest is to add a to_param method in your model that does the conversion automatically:

    class Thread < ActiveRecord::Base
      to_param
        "#{id}-#{title}"
      end
    end
    

    If you need more flexibility than this, or don’t want to repeat it in all your models, you can use the friendly_id Gem.

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

Sidebar

Related Questions

According to current requirement,user will upload files with large size,which he may like to
I have models of one of my projects set up to something like this
I have to make a flash game like this: There is a board with
Is it possible to auto-rotate the default application image according to current landscape mode?
I have a data Table with numbers formatted according to the current regional settings.
According to the documentation for getResultSet in java.sql.Statement , it says: Retrieves the current
I am implementing a comet using AsyncHttpHandlers in my current asp.net application. According to
According to this SO post: How to check the TEMPLATE_DEBUG flag in a django
I teach programming at secondary school: this is our current status and I would
This is more of a 'How should I?' rather than 'How do I?' question.

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.