Was hoping someone could point me in the right direction for using
namespaces in routes with form_for blocks.  This is on Merb 1.0rc2
In my router.rb, I have a resource entry that is within a namespace:

  namespace(:admin) do
    resources(:users)
  end

Now I am trying to use form_for to edit a resource:

  <%=form_for @user do %>
    ...
  <% end =%>

However the form generates an error saying "Named route not found: default"
in router.rb:288 method url.

I even tried putting the model in the Admin module like with the namespace,
but still encountered the same error.  Passing in resource(:admin, @user)
doesn't really work either, since then I'm not passing in the object.

Anyone have any pointers?  Should I just avoid using form_for with
namespaces and just use unbound forms?

Thanks,
  Ken Robertson

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to