, , Ruby, Rails.
Rails Ruby, , , - , :

Rails , , Ruby .
- , Ruby classes, . methods, .
Rails ( Ruby) :
. , , @alien.is_visible?
, Ruby .
Rails Ruby (Ruby - , Rails - ), , Rails .
, , Rails MVC ( M odel V iew C ontroller):

, Rails . @article = Article.find x.
, , redirect_to @article, , Rails (IE - ActiveRecord::Base).
, Rails . redirect_to:
Prefix Verb URI Pattern Controller
articles GET /articles(.:format) articles
POST /articles(.:format) articles
new_article GET /articles/new(.:format) articles
edit_article GET /articles/:id/edit(.:format) articles
article GET /articles/:id(.:format) articles
PATCH /articles/:id(.:format) articles
PUT /articles/:id(.:format) articles
DELETE /articles/:id(.:format) articles
Rails , , CRUD/RESTful:

, @article ( Rails, , ):
resources :articles

Rails Article redirect_to.
-
Here's how Rails populates many of its helper methods, including form_forand render. This is intellectual guessing based on conventions that define the structure.
This is why Rails programmers often seek to indicate how their "Railsy" code is.
source
share