Hi all, I have the same problem, after create the scaffold I try to do new methods in the controller and when I want to call it, I see
undefined local variable or method `semana_post_path' for #<ActionView::Base:0xb610e4cc> Then I try changing the url http://localhost:3000/posts/semana Couldn't find Post with ID=semana ... app/controllers/posts_controller.rb:44:in `show' I try to restart the server (webrick), map.resources is active too and the routes.lst is this: $ more routes.lst (in /home/sak/Projectos/Rails/vigg2) posts GET /posts {:controller=>"posts ", :action=>"index"} formatted_posts GET /posts.:format {:controller=>"posts ", :action=>"index"} POST /posts {:controller=>"posts ", :action=>"create"} POST /posts.:format {:controller=>"posts ", :action=>"create"} new_post GET /posts/new {:controller=>"posts ", :action=>"new"} formatted_new_post GET /posts/new.:format {:controller=>"posts ", :action=>"new"} edit_post GET /posts/:id/edit {:controller=>"posts ", :action=>"edit"} formatted_edit_post GET /posts/:id/edit.:format {:controller=>"posts ", :action=>"edit"} post GET /posts/:id {:controller=>"posts ", :action=>"show"} formatted_post GET /posts/:id.:format {:controller=>"posts ", :action=>"show"} PUT /posts/:id {:controller=>"posts ", :action=>"update"} PUT /posts/:id.:format {:controller=>"posts ", :action=>"update"} DELETE /posts/:id {:controller=>"posts ", :action=>"destroy"} DELETE /posts/:id.:format {:controller=>"posts ", :action=>"destroy"} root / {:action=>"index", : controller=>"posts"} /:controller/:action/:id /:controller/:action/:id.:format Any idea why rails ignore the new methods in the controller? It's very important for me. Thanks -- 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---