search for: _invite

Displaying 2 results from an estimated 2 matches for "_invite".

Did you mean: invite
2011 Oct 26
6
Add an index to a form
...has the following fields: * name * age * gender but one father may have more than 1 child and I''m adding another form with ajax by following this http://stackoverflow.com/questions/4812003/adding-fields-dynamically-in-a-nested-model-form-in-rails-3 in the "invite" partial _invite.html.erb <%= fields_for "user[invites_attributes][]", invite do |i| %> <li> <%= link_to("Remove", "#delete", :class => "delete-invite") %> <%= i.label :full_name, "Full Name" %> <%= i.text_field :full_name...
2010 Feb 08
0
recommending friends, using RoR's Mailer
...9; part as obviously, I dont want to only email people who are already on the site. def invite @title = "Invitation" if param_posted?(:user) email = params[:user][:email] user = User.find_by_email(email) if user UserMailer.deliver_invite(@user) flash[:notice] = "Invite sent." redirect_to :action => "index", :controller => "site" else flash[:notice] = "There is no user with that email address." end end end The UserMailer code is...