log in    sign up

Rails Internals

Rails Internals

Structure and internals of Ruby on Rails. Learn how to peek under the covers of your framework.

(Log in to track progress or opt into emailed reminders.)

Understanding the Structure of Rails

Before digging into Rails' own code, it's important to know how the library is structured. The Rails gem has a number of sub-gems that you should know by name…

(Log in to track progress)

Where Do I Put My Code in Rails?

Rails is an MVC framework, but not every piece of code is a model, a view or a controller. What kind of code goes in what directories? What types of objects hold each one?

(Log in to track progress)

How Does Rack Parse Query Params?

You may know that Rails will parse your query parameters for you - including parameter names like a[] which can automatically create arrays. How does Rails do that? Where does the code live?

(Log in to track progress)

Understanding HashWithIndifferentAccess

Rails' params object is a little unusual. You can say param[:foo] or params['foo'] and both work. How does it do that?

(Log in to track progress)

Looking for similar topics?


comments powered by Disqus