for this part: @s="please select a choice" redirect_to :controller=> "home",:action =>"index"
i think you suppose to use notice or flash redirect_to :controller=> "home",:action =>"index", :notice=> 'please select a choice' or flash[:s] = "please select a choice" redirect_to :controller=> "home",:action =>"index" On Jul 27, 10:12 pm, "praveen k." <li...@ruby-forum.com> wrote: > Chirag Shah wrote in post #1013322: > > > If you redirect your page then you can not get that variable value to > > your view > > Only on render you have that variable value > > And you can not have value in params unless you pass it in the arguments > > at the time of the redirection > > > - Chirag Shah > > hi Chirag > then how i do that? > > -- > Posted viahttp://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.