If an action looks like:
def show
@post = Post.find(params[:id])
end
I can then do:
<%= @post.title %>
How does it pass the object to the view?
Since my action has only one line, what programming technique or pattern is used to take the @post
object and pass it to the view (template) page?
I know it assumes the view will be the same name as the action, but how does it do this?