Radhames Brito wrote in post #987907:
> @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
I simply substitute the follow line
Mailer.invitation(@invitation,signup_url(@invitation.token)).deliver
with this
Mailer.invitation(@invitation,signup_url(@invitation.token)).deliver
this is the result
http://localhost:3000/signup?invitation_token=30220e3a8db1994bc7c672d55491991f8e2ebf1a
I wish this
http://localhost:3000/signup/30220e3a8db1994bc7c672d55491991f8e2ebf1a
I'm searching in other forum and documentation on line ... when I will
find the solution will put there ...
bye,
C
ps. I don't understand 'cause you put the '*' simbol
--
Posted via http://www.ruby-forum.com/.
--
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.