rails by (foundation ,devise,cancan,state_machine,roles)