search for: new_articl

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

Did you mean: new_article
2006 Mar 14
7
Single form w/ relationships: how do I integrate it?
OK - I know this has been asked before, but I cannot find it in the archives. Forgive me if I''m creating more noise than I should. I want to know the easiest way to deal with this scenario: I have articles. I have categories for the articles. On the form where you write an article, there needs to be a free-form field to entire the category. The create() method will build the
2006 Feb 07
3
Creating a new object with a passed in parent?
I have a simple object, Article, which has_one :parent of the same time. On my Show page for a given article there will be a "new child" button which will pass the current :id (or the current Article itself) to the new form. What is the proper way to hide a reference to this parent in the form so that when it is submitted back, the create method knows what to do with it?
2007 Jul 19
3
Merb::Controller#url Usage
...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"] [:edit_article, "/articles/:id/edit"] [:new_article, "/articles/new"]...
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 /we...
2010 Feb 16
0
Strange routing(?) Issue
...e_comments GET /articles/:article_id/ comments(.:format) {:action=>"index", :controller=>"comments"} 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"}...