search for: edit_article

Displaying 5 results from an estimated 5 matches for "edit_article".

2006 Jul 07
5
link_to: link is missing id
...<td><%=h article.send(column.name) %></td> <% end %> <td><%= link_to ''Show'', :action => ''show_article'', :id => article %></td> <td><%= link_to ''Edit'', :action => ''edit_article'', :id => article %></td> <td><%= link_to ''Destroy'', { :action => ''destroy_article'', :id => article }, :confirm => ''Are you sure?'', :post => true %></td> </tr> <% end %> (In cas...
2007 Oct 01
1
form urls and activeresource object
...r /> <%= f.text_field :title %> </p> <p> <%= f.submit "Update" %> </p> and when I try to update it doesn''t work because it prints this in the html form: <form action="/articles/%23%3CArticle:0xb6951170%3E" class="edit_article" id="edit_article_1" method="post"><div style="margin:0;padding:0"><input name="_method" type="hidden" value="put" /> so rails thinks that my article id is "%23%3CArticle:0xb6951170%3E", any idea how to make...
2007 Jul 19
3
Merb::Controller#url Usage
...rticles do |article| article.resources :article_attachments end irb(main):002:0> show_routes [:articles, "/articles"] [:article_attachments, "/articles/:article_id/article_attachments"] [:article_attachment, "/articles/:article_id/article_attachments/:id"] [:edit_article_attachment, "/articles/:article_id/article_attachments/:id/edit"] [:new_article_attachment, "/articles/:article_id/article_attachments/new"] [:custom_new_article_attachment, "/articles/:article_id/article_attachments/new/:action"] [:article, "/articles/:id"]...
2014 May 16
0
(Beginner) ActionController::UrlGenerationError - No route matches
...articles/new'. My routes are these: welcome_index GET /welcome/index(.:format) welcome#index articles GET /articles(.:format) articles#index POST /articles(.:format) articles#create new_article GET /articles/new(.:format) articles#new edit_article GET /articles/:id/edit(.:format) articles#edit article GET /articles/:id(.:format) articles#show PATCH /articles/:id(.:format) articles#update PUT /articles/:id(.:format) articles#update DELETE /articles/:id(.:format) art...
2010 Feb 16
0
Strange routing(?) Issue
...POST /articles/:article_id/ comments(.:format) {:action=>"create", :controller=>"comments"} new_article_comment GET /articles/:article_id/ comments/new(.:format) {:action=>"new", :controller=>"comments"} edit_article_comment GET /articles/:article_id/ comments/:id/edit(.:format) {:action=>"edit", :controller=>"comments"} article_comment GET /articles/:article_id/ comments/:id(.:format) {:action=>"show", :controller=>"comments"}...