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 %>
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.
You might notice, that your current route mapping is singular, and the
one I've suggested using is plural...
But does that work with a singular named controller?
Why do you want a singular-named controller? Plural is the usual
convention, unless you have a singular resource (in which case you need
"resource", not "resources", in your routes file).
Learn the Rails conventions and understand them before you try to break
them.
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
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,
Zoltn
I scaffolded it. Im using rails 2.3.8. Sorry I meant that my controller
is named singularly. So do you guys think I should pluralize it?
I Like to order ugg boots,they are 100% original,
and they are very cheap and good secvice,
Non Tax,Free Shipping.
if you like it,you can buy it from
this company.
www uggscom com
really?