Railsで自分で作ったアクション(メソッド)をRoutingに追加する場合は、/config/routes.rbに以下を追加。
resources :リソース名 do
member do
HTTPメソッド名 'アクション名'
end
collection do
HTTPメソッド名 'アクション名'
end
end
例としてはこんな感じ
resources :timelines do
member do
get 'index'
end
end
memberとcollectionの違いはわかんないけど、これで設定はできる。
[参考文献]
http://www.rubylife.jp/rails/routing/index6.html