That's because you haven't included the namespace in the for for object:

<%= form_for([:admin, @user]) do |f| %>

should work


On 4 November 2013 15:05, BitGub <notifications@github.com> wrote:

> In app/views/admin/users/new.html.erb:
>
> > @@ -0,0 +1,26 @@
> > +<%= provide(:title, 'New User')%>
> > +
> > +<%= render "shared/error_messages", :target => @user %>
> > +
> > +<%= form_for @user, :url => {  :action => "create"} do |f|%>
>
> before it was trying to hit UsersController#create instead of
> Admin::UsersController#create for some reason... that seems to fix it
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/BitGub/zucono/pull/6/files#r7401768>
> .
>