[Rails] Re: how to get a value of a variable from a controller to different view?

2011-07-27 Thread shrimpy
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 :contro

[Rails] how to pass validation error message to another page?

2011-07-05 Thread shrimpy
I have a form under user controller And i have another controller call my_account, i render the _form inside the index page of my_account. to allow user to update their user information. So when user click update, update method in UserController will be invoked. My question is, if faild to upda