Displaying 2 results from an estimated 2 matches for "gjenwoaiub4".
2007 Jul 11
10
read params
hi.
I am a rails newbie.
I have am Model user with name and email. How can I acces and modify the
param email before user.save?
<% form_for :user do |f| -%>
<p><label for="name">Username:</label><br/>
<%= f.text_field :name %></p>
<p><label for="email">Email</label><br/>
<%= f.text_field :email
2008 Jul 24
0
Errno::EBADF Send an Email in Rails using GMail
...:class => "submit" %> or <%= link_to
''Cancel'', ''/'' %>
<% end -%>
in app/controllers/emailer_controller.rb:
class EmailerController < ApplicationController
def sendmail
email = params[:email]
recipient = ''abc-gJEnWOaiUB4@public.gmane.org''
subject = ''Request A Call Back''
firstname = email["firstname"]
surname = email["surname"]
email_address = email["email_address"]
telephone = email["telephone"]
message_...