2009/11/12 Newb Newb <[email protected]>: > > .... > but the below code not works still no errors > > if @newsinfo.update_attributes(params[:newsinfo]) > > flash[:notice] = "news has been successfully modified, click 'edit' > to modify and 'remove' to delete flash news" > > redirect_to :controller => 'news', :action => 'list' > > else > > puts @newsinfo.errors.inspect > > end > > the control goes to if condition only.no validation errors
Do you mean it goes to to the else condition but shows no errors? Or do you mean it passes the if test but the data is not updated in the db? Colin > > Any suggestion on this. > > Thanks for information > > Have a Pleasent daY > -- > Posted via http://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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

