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
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
2 matches
Mail list logo