# Webrat step to go to view

**URL:** <https://www.ruby-forum.com/t/webrat-step-to-go-to-view/183826>\
**Category:** Rails\
**Created:** [February 21, 2010, 5:13am UTC](https://www.ruby-forum.com/t/webrat-step-to-go-to-view/183826 "2010-02-21T05:13:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Learn\_by\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Post date:** [February 21, 2010, 5:13am UTC](https://www.ruby-forum.com/t/webrat-step-to-go-to-view/183826/1 "2010-02-21T05:13:55Z")

</div>

I am trying to make webrat step just go to /controller/view url .  
I have the following, but it takes a full URL. How can I make it to  
take only the relative path containing only /controller/view. Thanks.

When /^I open (.+)$/ do |url|  
visit url  
end
