I want to pass a local variable that contains the origin to come on a specific page, this variable contains just a symbol with the value.
When I use this code it works perfect, the origin variable is accessible in the partial :
render :partial => "products", :collection => @products, :locals => {:origin => :gallery}
But when I use this code, the origin is not set and not accessible in the partial :
render @products, :locals => {:origin => :gallery}
What is the difference here? Is the second line of code not render the partial like the first line?