changing how we are restricitng rails