On Tue, Aug 26, 2008 at 3:39 PM, Rustam Mamat
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> i am using rubyonrails 2.1 and i have used scaffold .on controller i
> added new method and html.erb now what i want is to back to the
> index.html.erb page of the scaffold ,i have tried to use render but on
> the original scaffold i have met the problem on the below
> "You have a nil object when you didn''t expect it!
> You might have expected an instance of Array.
> The error occurred while evaluating nil.each"
> can any one tell me what should i do thanks.
you must use redirect_to, render :action only display the action it
does not execute the method
--
Gabriel Laskar <bibi.skuk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---