Passing values between controllers

Hi,

I have 2 controllers A and B. The create method in controller A is
programmed to redirect to B#index method. I want to pass data between my
controllers, so i have made use of the params hash. But i cannot access
the params hash on the index method of B controller. what is the right
way to pass values between controllers?

i think you can pass data as the get parameters along with the request i.e generate the url which contains the parameters that you want to pass

You can pass parameter as
redirect_to :controller=>‘tips’, :action => ‘show’, :id => “1”

or

redirect_to params[:search].merge! (:action => ‘list’)