On Nov 22, 9:38 pm, jawosis <[EMAIL PROTECTED]> wrote:
> I get a "syntax error, unexpected tIDENTIFIER, expecting kEND" when
> the following RJS template is rendered:
>
> page.insert_html :bottom, :requisite_table, :partial =>
> "insert_jobrequisite_select", :locals => {:job => @job, :counter =>
> @counter}
> page.alert("hi")
>
> The same RJS template is rendered without errors as soon as the rjs
> file has only one single javascript call - that means, the prior
> example works if "page.alert("hi")" is deleted.
>
> The strange thing about it is, that in another controller action I use
> a similar rjs template (containing two javascript calls as above) and
> it works.
>
> The only difference between both rjs templates is that the problematic
> one (the above example) renders a template which itself calls another
> template within a loop over a collection (job.requisites each do |r|
> render :partial => "requisite").
>
> Anyone knows what is going on here and how to make this problematic
> example work?
>
Bad line endings or invisible gremlins ?

Fred

> Thanks for any help!
>
> Jochen
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to