Problem with page.insert_html and page.select.().first

Hello RoR community,

I have a problem with the helpers in Rails 1.2.3.

HTML:

# Question name Class Type Level Question text  
1 test test test test test test
2 test2 test2 test2 test2 test2 test2

What do I need? I need to insert into the tbody the tr record
(

…) before all tbody’s tr elements.

How did I try? RJS:

page.insert_html :before, page.select(’#questionTable tbody
tr’).first, render(:partial => ‘question’, :locals => { :q =>
question_copy })

Not working, but JS:

new Insertion.After($$("#questionTable tbody").first(),

asdasdas”);

Work’s perfectly.

How I can solve this problem?

Dmitry