@MohabGhanim  I know it's the implementation reviewer to say this its better to use : 
resources :profile
instead of
get 'profile' => 'profile#index'
since resource includes all index and show and edit and new and create actions