On Wed, Sep 30, 2009 at 11:45, Shaun Pearl <[email protected]> wrote: > > Thanks :) The link is greatly appreciated! But I was hoping for a > solution from within rails really, mainly for my learning purposes, I > apprecaite doing it that way isn't really going to cause any harm, but > there most be a solution to the problem without resorting to javascript?
How is it "resorting to JavaScript", when you're already doing AJAX (AKA: JavaScript)? If you were using the link that Greg posted to handle doing the alternation on non AJAXy pages, I can definitely see why you'd want to avoid that (I would, too). On an AJAXy page, it seems, to me, like there's no problem with this solution. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

