It is just me or does anyone else find it strange that layouts can''t seem to access instance variables set by a controller. Instead I have to set an instance variable in the controller and then in the view assign another instance variable to the first one. This is an issue for me because I have a list controller and a search controller which both use the same view, just search has a smaller dataset. - Michael
? def my_method @title = "Ed" ... end and you can get <%= @title %> in the layout Michael King wrote:>It is just me or does anyone else find it strange that layouts can''t >seem to access instance variables set by a controller. Instead I have >to set an instance variable in the controller and then in the view >assign another instance variable to the first one. > >This is an issue for me because I have a list controller and a search >controller which both use the same view, just search has a smaller >dataset. > >- Michael >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > > > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails