Fix rails generate issue