From: Rick DeNatale Date: 2009-10-05T21:03:17+09:00 Subject: Re: Wierd stuff in an controller On Mon, Oct 5, 2009 at 7:46 AM, David Westerink wrote: > 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? 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/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale