Allen Walker
2008-Sep-10 07:06 UTC
[Facebooker-talk] validators posting to facebook_messages?
I have some validation going on in a model class. When I submit and a validator returns false, for some reason nothing is being populated into flash[:error] or flash[:notice]. It returns me back to the form_for (and it adds some divs in the html indicating an error with the associated field) but no actual error messages. I have <%= facebook_messages %> in my layout. Anyone having issues with this and or have this working? thanks
Allen Walker
2008-Sep-10 07:24 UTC
[Facebooker-talk] validators posting to facebook_messages?
Nevermind. I''m a rookie. I put in: <%= error_messages_for ''article'' %> and it works. I guess I thought that was somehow done automatically. Allen Walker wrote:> I have some validation going on in a model class. When I submit and a > validator returns false, for some reason nothing is being populated > into flash[:error] or flash[:notice]. It returns me back to the > form_for (and it adds some divs in the html indicating an error with > the associated field) but no actual error messages. I have <%= > facebook_messages %> in my layout. > > Anyone having issues with this and or have this working? > > thanks > >