Ruby Rails: control flow in the main blog application

I am a complete newbie for ruby โ€‹โ€‹rails, and I looked at the basic tutorial and sample blogging application with the postgresql backend, in. Although I seemed to understand the essence of this, I really did not understand how the application accessed postgresql on the backend, and also did not understand the flow of applications and several keywords that appear in the controller and view the files, for example, the bottom line that appears in the index.html.erb file.

 <td><%= link_to 'Edit', edit_post_path(post) %></td>

For example, I did not understand the keyword edit_post_path (post). Can someone point me to a good source for understanding the very foundation of rails?

+4
source share
1 answer

Welcome to the Rails Developer Community!

Resources


MVC

Rails

enter image description here

"" MVC

(/

+7

Source: https://habr.com/ru/post/1530841/


All Articles