def add_contact
@contact = Contact.new(:user_id => current_user.id, :profile_id =>
params[:profile_id])
if @contact.save
flash[:notice] = "Successfully added contact."
redirect_to params[:url]
else
flash[:error] = "Could not add contact."
redirect_to params[:url]
end
end
That's the method I need to execute.
--
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.