Ruby Errors in Dynamic Components