fixed error using current_page method to buy pass no route match error

<% unless current_page?(action: 'index') %>