Checking before action

I have the following code:

   def create
     redirect_to :action => "index" unless
     @entry =[:entry])
       flash[:notice] = "Successfully created..."
       redirect_to :action => "index"
       render :action => "new"

I get an error "Can only render or redirect once per action".
I understand "redirect_to" or "render" doesn't end the script.

I would like to allow only "post" request for "create" action,
so I need to do somehting about this.

But how can I improve the script?

Is there any way to write
redirect_to :action => "index" unless
in model?



You need to return or the processing keeps happening through the
method. I.e.:

redirect_to :action => "index" and return unless