Named routes inserting a . instead of a /
问题 I've been having trouble with named routes in rails 4 (Named route for non resource nesting). I've moved onto something else, but still struggling with the same problem of named routes for non resource urls. This is my route from rake routes : GET /messages/:id/report/:reply_token(.:format) messages#report messages POST /messages(.:format) messages#create and my routes.rb resources :messages, only: [:create] do member do get 'report/:reply_token', :action => 'report'#, :as => :message end end