Displaying 1 result from an estimated 1 matches for "processnewarticle".
2006 Jan 13
1
ActiveRecord: using with multiple threads/DB connections
...nization take place?
Again, I''m new to RoR so that may be stupid questions. Feel free to send
me a RTFM, but please provide a link to said manual! ;)
Thanks,
Max
class ArticlesController < ApplicationController
...
def create
@article = Article.new(params[:article])
if processNewArticle(@article)
flash[:notice] = ''Article was successfully created.''
redirect_to :action => ''list''
else
render :action => ''new''
end
end
def processNewArticle(article)
...do some validation...
if (!article.s...