Yes, this is a pluralization error.
By passing the ID 1, I assume that you wish to display a single record.
So you need to use the singular ‘message_thread’:
message_thread_path(1)
Which will yield:
http://localhost:3000/message_threads/1
More Related Contents:
- Format a string containing Phone numbers
- Best way to load module/class from lib folder in Rails 3?
- Eager load polymorphic
- No route matches [GET] /assets
- rails 3 – link_to to destroy not working
- Is it possible to set ENV variables for rails development environment in my code?
- Devise limit one session per user at a time
- Why doesn’t `config.time_zone` seem to do anything?
- Setting Environment Variables in Rails 3 (Devise + Omniauth)
- Using Rails link_to for links that post
- Can we call a Controller’s method from a view (as we call from helper ideally)?
- Validate uniqueness of multiple columns
- Use rvmrc or ruby-version file to set a project gemset with RVM?
- Rails naming convention for join table
- How to change the default path of view files in a Rails 3 controller?
- Why use “self” to access ActiveRecord/Rails model properties?
- Rails 3 check if attribute changed
- Rails has_many through form with checkboxes and extra field in the join model
- Changing the base URL for Rails 3 development
- Is it possible to refresh partial frequently using Ajax?
- PGError: ERROR: aggregates not allowed in WHERE clause on a AR query of an object and its has_many objects
- API Versioning for Rails Routes
- Index on multiple columns in Ruby on Rails
- Ruby on rails 4 app does not work in iframe
- Rails Devise: after_confirmation
- Why is Rspec saying “Failure/Error: Unable to find matching line from backtrace”?
- Rails 3.1 include_root_in_json
- Where to put Global variables in Rails 3
- Rails: Order with nulls last
- Why should we avoid using class variables @@ in rails?