search for: new_article_path

Displaying 3 results from an estimated 3 matches for "new_article_path".

2014 May 16
0
(Beginner) ActionController::UrlGenerationError - No route matches
...2.1.1 on Mac OSX 10.6 Snow Leopard) I'm doing a Rails tutorial (in case you are interested in: It's http://guides.rubyonrails.org/getting_started.html), and I'm stuck on the following: I create in some erb file a link using <%= link_to 'Add new weird stuff', controller: new_article_path %> and this raises the exception ActionController::UrlGenerationError in Articles#index No route matches {:action=>"index", :controller=>"articles/new"} The helper new_article_path returns 'articles/new'. My routes are these: welcome_index GET /welcome/...
2008 Jan 21
7
undefined method error
Hello everyone, I am following the Practical Rails: Social Networking sites book. In chapter 7 photo gallery I am getting a NoMethodError in Pages#show Showing layouts/_menu.rhtml where line #12 raised: undefined method `new_entry_path'' for #<ActionView::Base:0x52fa56c> Extracted source (around line #12): 9: <% if is_logged_in? %> 10:
2008 Jul 01
8
Scaffolding: Create, Edit, Destroy in admin area
...licationController. This works great. I can view the public area by http://localhost:3000/articles and the admin area by http://localhost:3000/admin/articles. But I''ve got problems with the routing: The named routes (?) generated by map.resources :articles (e.g. edit_article_path(article), new_article_path, and so on…) still point to the "public area", whereas the actions aren''t there. I think it''s pretty a newbie question, but how can I generate different routes so that these routes don''t point to the "public area". Thank you very much in advance Chris...