Whats with this > st.execute(#{line[3]}) shouldn't you be using > st.execute(line[3]) the #{...} stuff is just for string interpolation