LoginSignup
1
1

More than 3 years have passed since last update.

[Rails]ルーティング系

Posted at

[Rails]localhost3000/の状態でトップページを表示したい(3)
→root
https://railstutorial.jp/chapters/static_pages?version=5.1#sec-setting_the_root_route

[Rails]RESTfulなルーティング
https://railstutorial.jp/chapters/sign_up?version=5.1#table-RESTful_users
https://qiita.com/NagaokaKenichi/items/0647c30ef596cedf4bf2

[Rails]resourceを使ったRESTfulなルーティングにRESTful以外の新しいアクションを追加したい。
https://qiita.com/ebihara99999/items/37afb1486442e7c16a8a
https://railstutorial.jp/chapters/following_users?version=5.1#sec-stats_and_a_follow_form
[Rails]link_toを使ってパラメーターを複数送る方法
https://poyopoyo0.hatenablog.com/entry/2016/02/29/100431

[Rails]resourseでネストをする際に、ネスト元もonly:createなどで制限したい
https://railsguides.jp/routing.html#rails%E3%83%AB%E3%83%BC%E3%82%BF%E3%83%BC%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B

[Rails]id(並び順整数)をuuid(乱数)に変更したい(localhost:3000/user/ae6cdc44-68cd-4c76-b972-26d8a39b4bbb)みたいにしたい
https://qiita.com/params_bird/items/9e162fdcd9bdc2e42ccd

[Rails]ユーザー名(アカウント名)の初期設定を乱数にしたい。
https://teratail.com/questions/285445
username = SecureRandom.urlsafe_base64(10)

[Rails]パラメーターを追加で送信したい
hidden_tag

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1