Displaying 1 result from an estimated 1 matches for "messagecontrol".
2007 Jul 25
0
: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 => ''...