search for: find_by_article_nam

Displaying 1 result from an estimated 1 matches for "find_by_article_nam".

Did you mean: find_by_article_name
2006 Apr 27
2
NoMethodError - why?
...@session[''user''] if @article.save flash[:notice] = ''article was successfully created.'' redirect_to :action => ''list'' else render :action => ''new'' end end def edit @article = Article.find_by_article_name(params[:article_name]) if @article.user != @session[''user''] flash[:notice] = ''You cannot edit an article you don\''t own.'' redirect_to :action => ''show'', :id => @article end end def update @article = Artic...