put button javascript inside ruby code to access url