Using this works but have a problem. The msg who in a green background line, but when you close that line (click con X close button) the green line goes, but the text is yet there and you cannot see the original row.
On 26 jun, 13:54, "Sergio Cambra .:: entreCables S.L. ::." <[email protected]> wrote: > On Viernes, 26 de Junio de 2009 13:40:09 José Alberto escribió: > > > > > > respond_to do |format| > > > format.html { redirect_to login_path } > > > format.js do > > > render(:update) {|page| page.redirect_to login_path} > > > end > > > end > > > Using this i get a green backgrounf line on top of AS with this msg: > > > try { window.location.href = "/login"; } catch (e) { alert('RJS > > error:\n\n' + e.toString()); alert('window.location.href = > > \"/login\";'); throw e } > > > anyway, i prefer to send a message to AS so AS can show it usign the > > same style as other errors or messaes. > > > It is possible? > > Try with render :text => 'Your message' > > -- > Sergio Cambra .:: entreCables S.L. ::. > Mariana Pineda 23, 50.018 Zaragoza > T) 902 021 404 F) 976 52 98 07 E) [email protected] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en -~----------~----~----~----~------~----~------~--~---
