Menu

1 / 7

"Rails Magic" Isn't Magic. How a Request Actually Travels Through Rails.

DEV Community: ruby·S M Tahosin·about 23 hours ago
#WIq0yk1f
#devtoruby#devto#dev#show#rails
Reading 0:00
15s threshold

Ask any developer who has worked with modern web frameworks what they think of Ruby on Rails, and you will almost certainly hear the same word within thirty seconds:

"Magic."

You run a generator, and entire database tables spring to life. You write an empty model class, and it immediately knows every column in your schema without a single property declaration. You define an instance variable inside a controller action, and it appears inside a separate view template as if object boundaries ceased to exist. You reference a class you have never required, and Ruby finds it instantly.

To newcomers, it feels like witchcraft.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.