On 24/08/2006, at 4:01 AM, Mark Van Holstyn wrote:

> I have in my controller
> >> redirect_to :action => 'edit', :id => @controller
>
> This works find when using the site: '/projects/edit/1'
>
> However, when this code is hit froim a functinoal test, it  
> produces: "/projects/edit/#<Account:0xa74a5ba8>"

Is @controller a model object? It's probably not a good idea to name  
your instance var @controller. Try something else, like @project

-- tim


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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-core
-~----------~----~----~----~------~----~------~--~---

Reply via email to