What does the partial contain? have u given @listhub any value for
this action that its failing in?

On Jun 1, 3:37 am, Frederick Cheung <frederick.che...@gmail.com>
wrote:
> On May 31, 10:45 pm, Jay Covington <rails-mailing-l...@andreas-s.net>
> wrote:
>
>
>
> > Hi All,
>
> > I'm currently stuck trying to get a scaffold routed correctly. The line
> > of code causing me problems is:
>
> > (link_to 'Edit', edit_listhub_path(@listhub))
>
> > It works fine in 127.0.0.1:3000/listhubs.
>
> > However, when I try it in a partial in the "user" controller
> > (127.0.0.1:3000/user,
>
> > I receive the error below:
>
> > --------------------------------------------------------------------------- 
> > --
> > ActionController::RoutingError in User#index
>
> > edit_listhub_url failed to generate from {:action=>"edit",
> > :controller=>"listhubs", :id=>nil}, expected: {:action=>"edit",
> > :controller=>"listhubs"}, diff: {:id=>nil}
>
> This looks suspicious - is @listhub non nil in the case where you are
> rendering this partial ?
>
> Fred
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to