HighDots Forums  

Cucumber cannot find a static page located in public folder

Ruby On Rails Talk Ruby On Rails programming language mailing list


Discuss Cucumber cannot find a static page located in public folder in the Ruby On Rails Talk forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
comopasta Gr
 
Posts: n/a

Default Cucumber cannot find a static page located in public folder - 11-05-2009 , 04:58 AM






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
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #2  
Old   
comopasta Gr
 
Posts: n/a

Default Re: Cucumber cannot find a static page located in publicfolder - 11-05-2009 , 05:31 PM






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.

http://railscasts.com/episodes/117-semi-static-pages

Cheers.
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.