Php rails like proof of concept