Hello, I read the whole mailing, and not sure if I agree. So first this problem means you don't have the method in the Controller. I agree, controllers have naming conventions, check those. Also routes.rb has conventions, depends on version - which do you use?
If you've written your route to the file, you can check if it's available from command line: rake routes Here you will see the url path and the pathname also, so will be visible if you gave it wrong. Which versions do you use? Did you scaffolded or created part by part? cheers, Zoltán On nov. 27, 20:43, 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| %> > <%= 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 viahttp://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.

