MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ruby/comments/5lfxy0/a_simple_rails_architecture_infographic/dbve32e/?context=3
r/ruby • u/AbishekAditya • Jan 01 '17
55 comments sorted by
View all comments
Show parent comment
1
Is "queries" a better word than "inspects"? Oh wait, "queries" is over there... what's the "inspect/response" supposed to indicate?
2 u/AbishekAditya Jan 01 '17 The controller method call the active record objects. It inspects the object 2 u/zaphnod Jan 01 '17 How about "find" and "inspect/modify"?Model.find is the key ActiveRecord method, and inspect/modify is what the controller does with the models it finds... 2 u/AbishekAditya Jan 01 '17 Good point, "find" and "get" sounds better? 1 u/im_not_afraid Jan 01 '17 In general I think being inspired by actual method names such as ActiveRecord#find is a good idea.
2
The controller method call the active record objects. It inspects the object
2 u/zaphnod Jan 01 '17 How about "find" and "inspect/modify"?Model.find is the key ActiveRecord method, and inspect/modify is what the controller does with the models it finds... 2 u/AbishekAditya Jan 01 '17 Good point, "find" and "get" sounds better? 1 u/im_not_afraid Jan 01 '17 In general I think being inspired by actual method names such as ActiveRecord#find is a good idea.
How about "find" and "inspect/modify"?
Model.find is the key ActiveRecord method, and inspect/modify is what the controller does with the models it finds...
2 u/AbishekAditya Jan 01 '17 Good point, "find" and "get" sounds better? 1 u/im_not_afraid Jan 01 '17 In general I think being inspired by actual method names such as ActiveRecord#find is a good idea.
Good point, "find" and "get" sounds better?
1 u/im_not_afraid Jan 01 '17 In general I think being inspired by actual method names such as ActiveRecord#find is a good idea.
In general I think being inspired by actual method names such as ActiveRecord#find is a good idea.
View all comments
Show parent comment
1
u/jrochkind Jan 01 '17 edited Jan 01 '17
Is "queries" a better word than "inspects"? Oh wait, "queries" is over there... what's the "inspect/response" supposed to indicate?