Im using Cucumber + Capybara.
This is how one of my step definitions looks like.
When /^(?:|I )go to (.+)$/ do |page_name|
visit path_to(page_name)
end
And here is my routing file:
match "home" => "home#index"
resources :searches
root :to => 'firstpage#index'
What is the name of a path?