# Cucumber cannot find a static page located in public folder

**URL:** <https://www.ruby-forum.com/t/cucumber-cannot-find-a-static-page-located-in-public-folder/178487>\
**Category:** Rails\
**Created:** [November 5, 2009, 10:58am UTC](https://www.ruby-forum.com/t/cucumber-cannot-find-a-static-page-located-in-public-folder/178487 "2009-11-05T10:58:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [November 5, 2009, 10:58am UTC](https://www.ruby-forum.com/t/cucumber-cannot-find-a-static-page-located-in-public-folder/178487/1 "2009-11-05T10:58:12Z")

</div>

Hi,

I recently started with Cucumber. I’m having an issue with a static page  
that I locate in the public folder.

When an user registers to the site I send an activation code via email.  
That notification is show to the user by redirecting to a static page  
located in the public folder.

If I start the server and register I get redirected properly to the  
static page.

But when I run the same with cucumber it cannot find the static page. I  
have added the location into the features/paths.rb but it just fails.

Is this a familiar problem for anyone?  
Can I add the static page to the routes so cucumber can find it?

Thanks

---

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [November 5, 2009, 11:31pm UTC](https://www.ruby-forum.com/t/cucumber-cannot-find-a-static-page-located-in-public-folder/178487/2 "2009-11-05T23:31:16Z")

</div>

Ok, so apparently I was being too rude by just adding the static pages  
to the public folder.

I followed Mr Bates advice and created a controller to also server  
static content, now it is integrated into the app so cucumber can also  
find it easily.

> **[\#117 Semi-Static Pages - RailsCasts](http://railscasts.com/episodes/117-semi-static-pages)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.

Cheers.
