Obviously I didn't explain myself well enough! :)

I have a repeating/looped template, that is parsed (partial) by Rails,
but I also want to load that "template" (html with rail template tags)
into jQuery, so I can dynamically attach that same template using the
client. It's hard to explain exactly what I'm doing, which could be a
good sign that it's a bad idea, but basically, I was trying to get
jQuery to remove the rails template tags. I realized later though,
that I can just use Ruby to load the template (not eval), then strip
the rails template tags, and use that template with jQuery!

Matt

On Aug 20, 3:38 pm, "Estevão Lucas" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Rails generate the code HTML that jQuery will access it. You cannot access a
> Rails code because Rails run on server and JavaScript run on client-side
>
> 2007/8/20, goodieboy <[EMAIL PROTECTED]>:
>
>
>
> > Hi, I'm trying to search through a node and find all of the Rails template
> > tags: <% and %>. I'd like to simply remove them, but can't figure out how.
> > How is this done? :)
>
> > Thanks!
> > --
> > View this message in context:
> >http://www.nabble.com/Seach-and-replace-Rails-template-tags-tf4300911...
> > Sent from the JQuery mailing list archive at Nabble.com.

Reply via email to