the problem is here
def create
> @invitation = Invitation.new(params[:invitation])
>
> respond_to do |format|
> if @invitation.save
> Mailer.invitation(@invitation,
> signup_url(*:invitation_token=>*@invitation.token)).deliver
> format.html { redirect_to(@invitation, :notice => 'Invitation
> was successfully created.') }
> format.xml { render :xml => @invitation, :status => :created,
> :location => @invitation }
> redirect_to root_url
> else
> format.html { render :action => "new" }
> format.xml { render :xml => @invitation.errors, :status =>
> :unprocessable_entity }
> end
> end
> end
try it now
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.