[rspec-users] oddness with messages_path

Patrick J. Collins patrick at collinatorstudios.com
Sat Nov 26 17:21:52 EST 2011


> I can work around it by constructing the url myself with
> "/messages/#{message.id}" but I am curious where the period is coming
> from in the constructed url. 

It's because you should be using a singular resource name to signify that you
are updating an existing record.  I believe you want to do
"message_path(message)" instead of "messages_path(message)"

Patrick J. Collins
http://collinatorstudios.com


More information about the rspec-users mailing list