view config/routes.rb @ 247:e181716b8dc8

Fix parameter name
author nanaya <me@nanaya.net>
date Mon, 17 Jul 2023 04:27:19 +0900
parents 5af9b537db86
children
line wrap: on
line source

Rails.application.routes.draw do
  root "tweets#index"

  get ":id/:name" => "tweets#show", :defaults => { :format => :atom }, :as => "tweet"
  get ":name" => "tweets#redirect"
end