Add rails binding for testing