On 05 Dec 2008, at 11:21, balaji rajagopal wrote:

> I follow ur way and i used the above code but i got the bugs
>
>     can't convert nil into String

Well, if an application gives you an error, it usually wants to say  
something. In this case it expected a string, and got a nil. You  
didn't include what line it choked on, but I guess it's the render  
one. It's telling you that params[:stage] is nil, so you need to  
handle that.

  'wizard/stage'+(params[:stage] || '')

And please please please, do yourself a favor, read some books on  
Rails first. There are some nice ones out there and most of them have  
a nice introduction to basic programming principles. Your code is just  
completely unmaintainable.


Best regards

Peter De Berdt


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to