Fix pre_script position in rails_part.