PROBLEN IN AJAX USING RJS

I am using rails 3. I have problem in out put so please tell me my mistake

routes

because you're calling render :update here, your template isn't getting rendered (much like if you were to tall render :text => 'OK', that would also suppress 'normal' template rendering.

Fred

thanks for your answer . so how do i render the parcial? can you explain/ thanks.

def create
@comment = Comment.new(params[:comment])
@comment.user_id = params[:user_id]
@comment.article_id = params[:article_id]
if @comment.save
  respond_to do |format|
    flash[:notice] = "Comment was Successfully created"
    format.html { redirect_to view_article_path(params[:user_id],

params[:article_id] ) }

    format.js {
      render :update do |page|
      end

because you’re calling render :update here, your template isn’t

getting rendered (much like if you were to tall render :text => ‘OK’,

that would also suppress ‘normal’ template rendering.

Fred

thanks for your answer .

so how do i render the parcial?

can you explain/

thanks.

thanks for your help but I solved it.