params not working with gem, must assign variable. Using variable