search for: edit_article_path

Displaying 2 results from an estimated 2 matches for "edit_article_path".

2008 Jul 01
8
Scaffolding: Create, Edit, Destroy in admin area
...:ArticlesController < ApplicationController. 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...
2008 Oct 22
1
simple dumb rails from datastore question
...t;%= link_to ''New Article'', :action => ''new'' %> <% for article in @articles %> <tr> <h1> </h1> <td><%= link_to ''Show'', article %></td> <td><%= link_to ''Edit'', edit_article_path(article) %></td> <td><%= link_to ''Destroy'', article, :confirm => ''Are you sure?'', :method => :delete %></td> </tr> <% end %> Thanks for any help -- Posted via http://www.ruby-forum.com/. --~--~---------~--~---...