:action Problem

Hello,

I am trying to create a new message in my application and when I click
on the submit button to create the new message, I get redirected to the
form to create a new message. Here is my code:

class MessageController < ApplicationController
before_filter :logged_in?

def new
@message = Message.new
end

def create
@message = Message.new(params[:message])

if @message.save
  flash[:notice] = 'Message sent successfully!'
  redirect_to :controller => 'client', :action => 'show', :id =>

session[:client]
else
render :text => ‘Something invalid!’
end
end

end

Here is my .rhtml file:

New Message

Subject:

Message:

Thanks
M.