私は問題があります:
When I follow "Find Movies With Same Director" #
features/step_definitions/web_steps.rb:56
Unable to find link "Find Movies With Same Director" (Capybara::ElementNotFound)
web_steps.rb内:
When /^(?:|I )follow "([^"]*)"$/ do |link|
click_link(link)
end
私のルートで:
find_movies_with_same_director_movie GET /movies/:id/find_movies_with_same_director(.:format) {:action=>"find_movies_with_same_director", :controller=>"movies"}
movies GET /movies(.:format)
私の見解ではshow.html.haml:
%br
= link_to 'Find Movies With Same Director', find_movies_with_same_director_movie_path(@movie)
コントローラmovies_controller.rb内:
def find_movies_with_same_director
# some code
end
どうしたの?