Prasad Gurjar wrote in post #1125841:
> For e.g How objects are called from controller to view ? what actions
> are performed in background?

The controller is given a template, either implicitly by the method name 
or explicitly in the code.
The template may have multiple extensions, e.g. "template.html.erb". 
These show the sequence in which the template is interpreted.

In the above example, the file is treated first as an eRuby file, and 
interpreted - "rendered" - as such. Each line is interpreted in its 
environment and any return values are left behind as HTML, forming the 
document. This is where you'll normally have content from the model 
appearing with objects provided by the controller or whatever constants 
and variables are available.

The resulting HTML is sent to the client.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/bb93a1deaab14581e4d8489c35735f37%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to