On Sat, Nov 27, 2010 at 3:43 PM, Zack Nathan <[email protected]> wrote: > Hey everyone, > > I get this error for some reason when trying to access my new action. > Here's the error: > undefined method `repositories_path' for #<ActionView::Base:0x1034c7648> > > Heres my view code: > > <% form_for(@repository) do |f| %>
It is expected by your view that the controller serving up this view has defined a model instance @repository. > <%= f.error_messages %> > > <p> > <%= f.label :name %><br /> > <%= f.text_field :name %> > </p> > <p> > <%= f.label :owner %><br /> > <%= f.text_field :owner %> > </p> > <p> > <%= f.label :private %><br /> > <%= f.check_box :private %> > </p> > <p> > <%= f.submit 'Update' %> > </p> > <% end %> > > My repository controller is a resources in routes. Whats wrong?! > > Thanks, > > jakx12. > > -- > Posted via http://www.ruby-forum.com/. > > -- > 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 [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-talk?hl=en. > > -- 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 [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-talk?hl=en.

