How ActionController instance variable @test="123"
is accessible in ActionView? Similarly how helper method is available in ActionView? What's core architecture? What is the purpose of ActionPack?
views:
34answers:
1
+1
A:
in controller.rb
def index
@test = "123"
end
in index.html.erb
<%= @test %>
Salil
2010-06-30 09:46:30
no, i think you don't got my point i know this thing my question that what is core architecture that make it possible.
Usman Ali
2010-07-01 11:22:37
that is a scope of instance variable. you have to look for then the different variables and there scopes.
Salil
2010-07-01 11:25:17
i know there is scope of variables, you are talking on abstract level.
Usman Ali
2010-07-01 11:31:08