views:

34

answers:

1

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?

+1  A: 

in controller.rb

  def index
    @test = "123"
  end

in index.html.erb

  <%=  @test %>
Salil
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
that is a scope of instance variable. you have to look for then the different variables and there scopes.
Salil
i know there is scope of variables, you are talking on abstract level.
Usman Ali