# Wierd stuff in an controller

**URL:** <https://www.ruby-forum.com/t/wierd-stuff-in-an-controller/176722>\
**Category:** Ruby\
**Created:** [October 5, 2009, 1:46pm UTC](https://www.ruby-forum.com/t/wierd-stuff-in-an-controller/176722 "2009-10-05T13:46:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dawillis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ebca7d/32.png) [@dawillis](https://www.ruby-forum.com/u/dawillis)\
**Post date:** [October 5, 2009, 1:46pm UTC](https://www.ruby-forum.com/t/wierd-stuff-in-an-controller/176722/1 "2009-10-05T13:46:37Z")

</div>

Hi,

I’ve something wierd in an controller of mine. It’s an wizard  
controller, that does some stuff for an advertisement.  
The wierd thing is, that some logic is not executed when I go though  
the wizard. All views render perfectly, but the logic doesn’t execute.  
Like this:

def step 1  
#reset session  
end

def step2  
#check some details of the first form  
#works!  
end

def step3  
#displays an simple form nothing else…  
end

def step4  
#saves data, works!  
end

def step5  
#FAILS! doesn’t execute the logic  
end

def finish  
#FAILS! doesn’t execute…  
end

Very strange indeed!!!

How Can I slove this, or were do I need to look?

Ohw yeah, the routes involved look like this:  
map.wizard\_step1 ‘/wizard\_step1’, :controller =\> ‘wizard’, :action =\>  
‘step1’  
map.wizard\_step2 ‘/wizard\_step2’, :controller =\> ‘wizard’, :action =\>  
‘step2’  
map.wizard\_step3 ‘/wizard\_step3’, :controller =\> ‘wizard’, :action =\>  
‘step3’  
map.wizard\_step4 ‘/wizard\_step4’, :controller =\> ‘wizard’, :action =\>  
‘step4’  
map.wizard\_step5 ‘/wizard\_step5’, :controller =\> ‘wizard’, :action =\>  
‘step5’  
map.wizard\_finish ‘/wizard\_finish’, :controller =\> ‘wizard’, :action =\>  
‘finish’

If you could please help me?

–  
David W.

blog: [http://www.davidakachaos.nl](http://www.davidakachaos.nl)  
LinkedIn: [http://www.linkedin.com/in/davidakachaos](http://www.linkedin.com/in/davidakachaos)  
Hyves: [http://davidakachaos.hyves.nl](http://davidakachaos.hyves.nl)  
msn: removed\_email\_address@domain.invalid

I never said it was your fault, I said I was going to blame you!!!

---

<div class="post-metadata">

**Author:** ![dawillis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ebca7d/32.png) [@dawillis](https://www.ruby-forum.com/u/dawillis)\
**Post date:** [October 5, 2009, 2:03pm UTC](https://www.ruby-forum.com/t/wierd-stuff-in-an-controller/176722/2 "2009-10-05T14:03:36Z")

</div>

On Mon, Oct 5, 2009 at 7:46 AM, David W.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> end  
> def step4
> 
> map.wizard\_finish ‘/wizard\_finish’, :controller =\> ‘wizard’, :action =\> ‘finish’
> 
> If you could please help me?

Yes.

First, you need to ask this on the ruby on rails forum, not the ruby  
language forum.

BUT

before you post there, you need to add more info. I doubt that  
controller actions which consist solely of comments are failing in any  
interesting way, and even if they are you need to provide more info  
about how they are failing.

There are lots of helpful folks on both the ruby and ruby on rails  
forum, but I haven’t seen any who were clairvoyant!

–  
Rick DeNatale

Blog: [http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)  
Twitter: [http://twitter.com/RickDeNatale](http://twitter.com/RickDeNatale)  
WWR: [http://www.workingwithrails.com/person/9021-rick-denatale](http://www.workingwithrails.com/person/9021-rick-denatale)  
LinkedIn: [http://www.linkedin.com/in/rickdenatale](http://www.linkedin.com/in/rickdenatale)
