controller and model for rails eng plugin