use wear with rails parameter