[RUBY] Rails Reverse Lookup Dictionary (Gives what you want)

Functional requirements

[Rails] Search function https://qiita.com/shin1rok/items/779e581e9d12a92310c3

[Rails] Image Search-External Library Ransack https://qiita.com/LuckOfWise/items/e020e896e71d47d0c6a4 http://nekorails.hatenablog.com/entry/2017/05/31/173925

[Rails] Text posting function https://railstutorial.jp/chapters/user_microposts?version=5.1#cha-user_microposts

[Rails] I want to post an image External Library-CarrierWave https://railstutorial.jp/chapters/user_microposts?version=5.1#sec-basic_image_upload → The posted image becomes larger https://railstutorial.jp/chapters/user_microposts?version=5.1#sec-image_validation

[Rails] How to save images in production environment → It is better to use cloud storage. https://railstutorial.jp/chapters/user_microposts?version=5.1#sec-image_upload_in_production

[Rails] Follow, follower function skeleton https://railstutorial.jp/chapters/following_users?version=5.1#sec-the_relationship_model

[Rails] I want to create a follower list page https://railstutorial.jp/chapters/following_users?version=5.1#sec-following_and_followers_pages

[Rails] I want to create a follow button (redirect and Ajax) https://railstutorial.jp/chapters/following_users?version=5.1#sec-a_working_follow_button_the_standard_way https://railstutorial.jp/chapters/following_users?version=5.1#sec-a_working_follow_button_with_ajax

[Rails] Timeline function https://railstutorial.jp/chapters/following_users?version=5.1#sec-the_status_feed

[Rails] Timeline, Feed https://railstutorial.jp/chapters/user_microposts?version=5.1#sec-a_proto_feed

[Rails] The one who will be sent an email address after new registration https://railstutorial.jp/chapters/account_activation?version=5.1#cha-account_activation

[Rails] The one that can be reset if you forget your password https://railstutorial.jp/chapters/password_reset?version=5.1#cha-password_reset

[Rails] Successful! I failed! The one who informs you-flash message https://railstutorial.jp/chapters/sign_up?version=5.1#sec-signup_error_messages https://railstutorial.jp/chapters/basic_login?version=5.1#sec-rendering_with_a_flash_message

[Rails] Login and logout functions https://railstutorial.jp/chapters/basic_login?version=5.1#cha-basic_login → External library-devise https://qiita.com/cigalecigales/items/f4274088f20832252374

[Rails] I want to stay logged in even if I log in and close the browser! --Remember me https://railstutorial.jp/chapters/advanced_login?version=5.1#sec-remember_me

[Rails] I want to put a thumbnail image https://railstutorial.jp/chapters/sign_up?version=5.1#sec-a_gravatar_image

[Rails] I want to display, update, or delete the edit screen https://railstutorial.jp/chapters/advanced_login?version=5.1#sec-remember_me

[Rails] I want to undo if the value I enter is not what I expected Determine if it is what you expect → Regular expression, validation https://railstutorial.jp/chapters/modeling_users?version=5.1#sec-user_validations Undo → Redirect https://railstutorial.jp/chapters/sign_up?version=5.1#sec-unsuccessful_signups

[Rails] Like feature ↓ This is done ↓ https://qiita.com/jaramon/items/248bcb4b56e9fed8fc90 https://qiita.com/krppppp/items/a3e6264f0458d80ca5b7 https://qiita.com/mochikichi321/items/259381d359222b78eca8 https://qiita.com/kenny_0418/items/4bccf641804763306722 https://qiita.com/fuku_tech/items/c9835b7d90bd5effe8ad https://qiita.com/hayabusa3703/items/2b916e652a1dc85bb6e3 Like feature literature https://qiita.com/rainbow___0/items/a7d66755175b3e8a9636 https://qiita.com/YuitoSato/items/94913d6a349a530b2ea2 https://qiita.com/nojinoji/items/2c66499848d882c31ffa

[Rails] I want to display the account ID as a random number (account name URL rails) https://qiita.com/awakia/items/c2c790dc51e5b084af10 https://teratail.com/questions/1442 https://blog.takady.net/blog/2015/11/29/rails-routing-with-username-instead-of-id/ https://teratail.com/questions/1442 https://stackoverrun.com/ja/q/1267118 http://vdeep.net/rubyonrails-friendly-id https://blog.takady.net/blog/2015/11/29/rails-routing-with-username-instead-of-id/

[Rails] Create a multi-level category. ancestry https://qiita.com/Sotq_17/items/120256209993fb05ebac https://qiita.com/k_suke_ja/items/aee192b5174402b6e8ca

Search https://qiita.com/sconeman/items/fca9efa22536b8b2a9ef https://qiita.com/sconeman/items/6c839c40371b4ec213bf

reply https://qiita.com/krppppp/items/7f9563e08150a008592f https://qiita.com/sconeman/items/f701474d2c0276b52bfb https://qiita.com/johnslith/items/8d931b66f72c97c78199 https://qiita.com/EastResident/items/7c96a69be16f5f46c79a https://iberiko665.hatenablog.com/entry/2018/12/06/031005 https://qiita.com/rockguitar67/items/4fd28cba0c243a8d0ba5 https://qiita.com/kurawo___D/items/d2fefdd329f5310113aa

Reply modal form (RailsTutorial extension) https://github.com/kotaroooo0/sample-app https://www.techry.net/blogs/1271 https://qiita.com/sofpyon/items/1e72426598eed745f031

Display replies as trees and threads http://railscasts.com/episodes/262-trees-with-ancestry?language=ja&view=asciicast https://stackoverflow.com/questions/51326115/reply-a-comment-not-working-using-ancestry-gem-in-rails https://www.youtube.com/watch?v=I45gHY522Ms

I want to display the reply name as a link to the target user page in the reply https://iberiko665.hatenablog.com/entry/2018/12/06/031005

Autocomplete function https://qiita.com/swamp09/items/6fb852489b4dc3acfbdd

Video upload http://ken992.hatenablog.com/entry/2018/07/04/202616 https://dev.classmethod.jp/articles/ruby-on-rails-carrierwave-ffmpeg/

There seems to be an account ID (1 day) gem https://qiita.com/awakia/items/c2c790dc51e5b084af10 https://teratail.com/questions/1442 https://blog.takady.net/blog/2015/11/29/rails-routing-with-username-instead-of-id/ https://teratail.com/questions/1442 https://stackoverrun.com/ja/q/1267118 http://vdeep.net/rubyonrails-friendly-id https://blog.takady.net/blog/2015/11/29/rails-routing-with-username-instead-of-id/

Tag function Self-help https://qiita.com/tobita0000/items/daaf015fb98fb918b6b8 https://qiita.com/you8/items/b2394104c6f9865f5d46 gem https://qiita.com/YUD96/items/f751010f8a58efaef6ed https://qiita.com/ddd555/items/e1caa8b73d118822a0a2

Notification function https://qiita.com/nekojoker/items/80448944ec9aaae48d0a https://qiita.com/tktk0430/items/bdb8fbcf4ce3258b2d41 https://qiita.com/yuto_1014/items/2db1dd4fcd7945b980f7

trend

Management screen https://qiita.com/enomotodev/items/5f6d9348207124a41bf9

Non-functional requirements

Model system

[Rails] ActiveRecord does not guarantee that the database is unique at the database level (even if validate guarantees uniqueness) → Solved by adding index https://railstutorial.jp/chapters/modeling_users?version=5.1#sec-uniqueness_validation

[Rails] I want to verify what I save before saving it to the database-validation https://railstutorial.jp/chapters/modeling_users?version=5.1#sec-user_validations

[Rails] I want to output character strings at random. random number https://docs.ruby-lang.org/ja/latest/class/SecureRandom.html

View system

[Rails] Pagination (pagination) https://railstutorial.jp/chapters/updating_and_deleting_users?version=5.1#sec-pagination

[Rails] edit form https://railstutorial.jp/chapters/updating_and_deleting_users?version=5.1#sec-edit_form

[Rails] I want to easily create an edit form https://qiita.com/Toshimatu/items/dbf4da62ab9951b67aa9

[Rails] I want to display a list https://railstutorial.jp/chapters/updating_and_deleting_users?version=5.1#sec-showing_all_users

I want to call a [Rails] partial template render ‘file name’ https://pikawaka.com/rails/render

[Rails] Difference between render and redirect_to https://qiita.com/january108/items/54143581ab1f03deefa1

[Rails] Drawing microposts https://railstutorial.jp/chapters/user_microposts?version=5.1#sec-rendering_microposts

I want to change pages by clicking the icon with the [Rails] button https://github.com/neneti/Elily/blob/master/app/views/layouts/_header.html.slim https://elily.herokuapp.com/

Controller system

[Rails] Implementation when form input fails https://railstutorial.jp/chapters/updating_and_deleting_users?version=5.1#sec-unsuccessful_edits

[Rails] Rails redirect_to uses _path and _url properly (similar) https://teratail.com/questions/204077

I want to call a [Rails] partial template render ‘file name’ https://pikawaka.com/rails/render

[Rails] Destroy Actions and Security https://railstutorial.jp/chapters/updating_and_deleting_users?version=5.1#sec-the_destroy_action

[Rails] Difference between new and build Both the new and build methods instantiate, build can automatically set the user_id and create an instance. https://qiita.com/Kaisyou/items/8876f39e12631f4e5154

[Rails]CRUD(Create) https://railstutorial.jp/chapters/sign_up?version=5.1#sec-signup_form

[Rails]CRUD(Read) https://railstutorial.jp/chapters/updating_and_deleting_users?version=5.1#sec-showing_all_users

[Rails]CRUD(Destroy) https://railstutorial.jp/chapters/updating_and_deleting_users?version=5.1#sec-the_destroy_action

[Rails] Why is it created or destroyed even though the HTML form doesn't have a create or destroy method? → ① Send a URL request to routes. (2) There, an instruction is given to the corresponding action of the corresponding controller, and the create and destroy processes described in advance are performed there. Some draw it by themselves, while others write it automatically with resourse.

URL, routing system

[Rails] I want to display the top page in the state of localhost3000/(3) →root https://railstutorial.jp/chapters/static_pages?version=5.1#sec-setting_the_root_route

[Rails] RESTful routing https://railstutorial.jp/chapters/sign_up?version=5.1#table-RESTful_users https://qiita.com/NagaokaKenichi/items/0647c30ef596cedf4bf2

[Rails] I want to add new non-RESTful actions to RESTful routing using resources. https://qiita.com/ebihara99999/items/37afb1486442e7c16a8a https://railstutorial.jp/chapters/following_users?version=5.1#sec-stats_and_a_follow_form [Rails] How to send multiple parameters using link_to https://poyopoyo0.hatenablog.com/entry/2016/02/29/100431

When nesting with [Rails] resourse, I want to limit the nesting source with only: create etc. 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

I want to change [Rails] id (order integer) to uuid (random number) (localhost: 3000/user/ae6cdc44-68cd-4c76-b972-26d8a39b4bbb) https://qiita.com/params_bird/items/9e162fdcd9bdc2e42ccd

[Rails] I want to set the initial setting of the user name (account name) to a random number. https://teratail.com/questions/285445 username = SecureRandom.urlsafe_base64(10)

I want to send additional [Rails] parameters hidden_tag

DB, ActiveRecord system

[Rails] I want to change the column name https://qiita.com/libertyu/items/93acd8733e34b1d0a63c

[Rails] Create seed (I want to create many sample users in DB) https://qiita.com/takehanKosuke/items/79a66751fe95010ea5ee https://railstutorial.jp/chapters/updating_and_deleting_users?version=5.1#sec-sample_users https://teratail.com/questions/7371

[Rails] Delete migration file https://qiita.com/tanaka-t/items/cd6aa0526725e88f5024

[Rails] I want to improve the readability of SQL in ActiveRecord → Scope https://qiita.com/ngron/items/14a39ce62c9d30bf3ac3

[Rails] I want to search across multiple tables https://qiita.com/leon-joel/items/f26556c9e56833983856 https://qiita.com/makitokezuka/items/f13b2e7bad77b5594911 [Rails] When a column is covered when doing a search that spans multiple tables

[Rails] Intermediate table naming convention https://qiita.com/tkawa/items/dc3e313021f32fd91ca6 https://ja.stackoverflow.com/questions/12618/rails%E3%81%AE%E4%B8%AD%E9%96%93%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%E3%81%AE%E5%91%BD%E5%90%8D%E8%A6%8F%E5%89%87%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6

[Rails] many-to-many https://qiita.com/Kohei_Kishimoto0214/items/cb9a3d3da57708fb52c9 [Rails] I want to search and update from a many-to-many table https://qiita.com/Kohei_Kishimoto0214/items/cb9a3d3da57708fb52c9 https://qiita.com/ryutaro9595/items/e021eb789914cead4677

[Rails] Data storage of intermediate table http://once-and-only.com/programing/ruby/%E3%82%A2%E3%82%BD%E3%82%B7%E3%82%A8%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E5%85%88%E3%81%AE%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%E4%BF%9D%E5%AD%98/

[SQL] Data modeling ER diagram https://www.atmarkit.co.jp/ait/articles/0604/06/news110.html https://jp.drinet.co.jp/blog/datamanagement/data_modeling_3minutes

[Rails] index By creating an index, only the necessary data is saved separately from the table in a state optimized for searching separately from the table. In addition to sorting for search, only indexed columns can be searched, so high-speed search is possible. The disadvantage is that it takes time to add data because the table for searching is saved separately from the table. Because when you add data you have to add two tables. https://railstutorial.jp/chapters/user_microposts?version=5.1#sec-a_micropost_model https://www.dbonline.jp/sqlite/index/index1.html https://ja.wikipedia.org/wiki/%E7%B4%A2%E5%BC%95_%28%E3%83%87%E3%83%BC%E3%82%BF%E3%83%99%E3%83%BC%E3%82%B9%29

[Rails] I want to be able to delete children when I delete parents dependent: :destroy https://railstutorial.jp/chapters/user_microposts?version=5.1#sec-dependent_destroy

[Rails] How to call data in another table at the time of relation → micropost.user etc. https://railstutorial.jp/chapters/user_microposts?version=5.1#sec-destroying_microposts

[Rails] Preventing a user from following the same user more than once-composite key index add_index :relationships, [:follower_id, :followed_id], unique: true In the case of, a mechanism that guarantees that the combination of follower_id and followed_id is always unique. https://railstutorial.jp/chapters/following_users?version=5.1#sec-a_problem_with_the_data_model

[SQL] I want to practice SQL https://paiza.hatenablog.com/entry/2019/12/22/SQL%E3%81%AE%E7%B7%B4%E7%BF%92%E3%81%AB%E6%9C%80%E9%81%A9%EF%BC%81%E3%83%96%E3%83%A9%E3%82%A6%E3%82%B6%E4%B8%8A%E3%81%A7%E5%AE%9F%E8%A1%8C%E3%81%A7%E3%81%8D%E3%82%8B%E5%88%9D%E5%BF%83%E8%80%85%E5%90%91

[Rails] I want to introduce Secureramdom to seed https://qiita.com/takuyanin/items/5334908b22156ec7290f

Security system

[Rails] Strong parameters https://railstutorial.jp/chapters/updating_and_deleting_users?version=5.1#sec-revisiting_strong_parameters [Rails] Mass Assignment → Save the request data as it is in the database (weak in security) https://thinkit.co.jp/story/2015/09/03/6389

[Rails] I want to get my work back! rails destroy controller ~ https://railstutorial.jp/chapters/static_pages?version=5.1#sec-generated_static_pages

[Rails] Account activation https://railstutorial.jp/chapters/account_activation?version=5.1#cha-account_activation

[Rails]SSL Technology that encrypts important information before it flows from a local server to the network https://railstutorial.jp/chapters/sign_up?version=5.1#sec-ssl_in_production

[Rails] CSRF measures [Controller] protect_from_forgery with: :exception https://qiita.com/tanaka7014/items/5b4e2204dc6bec83c90e

[Rails] Placeholder https://wa3.i-3-i.info/word118.html

[Rails] I want to hash and encrypt passwords and save them https://railstutorial.jp/chapters/modeling_users?version=5.1#sec-adding_a_secure_password

Debug system

How to debug with binding.pry under docker https://qiita.com/STHEXA/items/1de2411cb3987066c9b9 https://qiita.com/sukezane/items/c97b9e977d111794d810 https://qiita.com/hb5kz/items/7c9d266480079910de5c

Error system

[Rails] I want to display an error message on the browser screen https://railstutorial.jp/chapters/basic_login?version=5.1#sec-rendering_with_a_flash_message https://railstutorial.jp/chapters/sign_up?version=5.1#sec-signup_error_messages https://railstutorial.jp/chapters/sign_up?version=5.1#sec-the_flash

Timing system

[Rails] I want to make the email address lowercase before saving it to the database-callback https://qiita.com/okamoto_ryo/items/458097542e826623b7ad https://railstutorial.jp/chapters/account_activation?version=5.1#sec-activation_token_callback Callback. It refers to a mechanism that adds common processing before and after when an object is created (created), updated (updated), destroyed (deleted), or when validation is executed. before_save { self.email = email.downcase } Pass the block and set the user's email address before_create :create_activation_digest The code above is called a method reference, which causes Rails to look for a method called create_activation_digest and execute it before creating the user.

Authorization, authentication, authority related

[Rails] I want to display the page only to logged-in users Controller before_action :logged_in_user, only: [:edit, :update] https://railstutorial.jp/chapters/updating_and_deleting_users?version=5.1#sec-authorization

[Rails] I want to edit only myself https://railstutorial.jp/chapters/updating_and_deleting_users?version=5.1#sec-requiring_the_right_user

[Rails] Ability to redirect to the page you were viewing just before logging in after the user logged in → I want to access the URL of the page dedicated to login users → Log in → I can go to the page dedicated to login that I saw earlier Friendly forwarding request.url https://railstutorial.jp/chapters/updating_and_deleting_users?version=5.1#sec-friendly_forwarding [Rails] I want to return the previous URL (I want to redirect) request.referrer https://railstutorial.jp/chapters/user_microposts?version=5.1#sec-destroying_microposts [Rails] Difference between authorization and authentication https://qiita.com/kaysquare1231/items/c4e4736f2a924b03777b

I want to write in DRY (readability, maintainability)

[Rails] I want to combine similar code into one (partial) https://railstutorial.jp/chapters/filling_in_the_layout?version=5.1#sec-partials

[Rails] If you want to write DRY code, but some parts are different https://railstutorial.jp/chapters/updating_and_deleting_users?version=5.1#sec-edit_form

[Rails] DRY variable elements in the title https://railstutorial.jp/chapters/static_pages?version=5.1#sec-layouts_and_embedded_ruby https://qiita.com/shumpeism/items/a0ad5930fa3bc0d24c70

[Rails] I want to use the method defined in different Controller because it is versatile Inherit → application_controller.rb https://railstutorial.jp/chapters/user_microposts?version=5.1#sec-micropost_access_control

[Rails] Notation list https://qiita.com/gakkie/items/3afcd505c786364aa5fa https://blog.mothule.com/ruby/ruby-percent-syntax

[Ruby] Notation list https://railstutorial.jp/chapters/rails_flavored_ruby?version=5.1#cha-rails_flavored_ruby

[Rails] Difference between keyword argument and optional argument https://railstutorial.jp/chapters/updating_and_deleting_users?version=5.1#sec-users_index

A list of what Rails does implicitly Rails customarily calls the view corresponding to the action implicitly. For example, call show.html.erb at the end of the show action.

Other [Rails] rails s is in the background and can't be erased with ctrl + c https://qiita.com/kanuu/items/fd6e33fca6ad6a90d059

[Rails] What is a unique constraint? What are the benefits?

When to use the [Rails] symbol https://uxmilk.jp/25934

[Rails] What is attr_accessor? http://bryankawa.hatenablog.com/entry/2017/01/28/150537

I want to communicate asynchronously → Ajax, JS https://railstutorial.jp/chapters/following_users?version=5.1#sec-a_working_follow_button_with_ajax

http://railscasts.com/episodes/205-unobtrusive-javascript

Recommended Posts

Rails Reverse Lookup Dictionary (Gives what you want)
Basic Rails commands you want to learn
[Rails Struggle/Rails Tutorial] What you learned in Rails Tutorial Chapter 6
[Rails Struggle/Rails Tutorial] What you learned in Rails Tutorial Chapter 3
[Rails Struggle/Rails Tutorial] What you learned in Rails Tutorial Chapters 4 and 5