Quoting Justin Ko <jko...@gmail.com>:
> Run "rake routes" and you'll see what the two "paths" generate.

Rake routes didn't really give me much insight - but playing around in
the console did. Any argument to messages_path gets interpreted as a
format - even an integer. 

 > app.messages_path(:pdf)
 => "/messages.pdf"
 > app.messages_path("doc")
 => "/messages.doc"
 > app.messages_path(1)
 => "/messages.1"

That hadn't occured to me - even once someone pointed out my
singular/plural problem.  

-- 
Cynthia N. Kiser
c...@ugcs.caltech.edu
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to