search for: contactmail

Displaying 5 results from an estimated 5 matches for "contactmail".

Did you mean: contact_mail
2012 Jun 30
0
undefined method `xxx_path' for #<#<Class....
when i try /contact_mail/newi it return me error: undefined local variable or method `em'' for #<#<Class:0x007fca24248858>:0x007fca21186df0> model: contact_mail.rg class ContactMail < ActiveRecord::Base attr_accessible :email, :message, :name, :subject end controler: contarct_mail_controller.rb class ContactMailController < ApplicationController def new @em=ContactMail.new end def create @em = ContactMail.new(params[:contact_mail]) @em.save end...
2006 Jul 19
7
Email Form for Contact Page
Can anyone point me to or provide me with code or a tutorial (preferably a tutorial) for creating simple contact forms where the data is sent over email to a specific email address. I have search all over the internet and there doesn''t see to be anything anywhere. Thanks In Advance, Alex. -- Posted via http://www.ruby-forum.com/.
2006 Jun 05
1
Action Mailer contact form
...uld point me in the right direction. Thanks. ==================================================== 1. class ContactController < ApplicationController 2. 3. def send_msg 4. @contact = Contact.new(params[:contact]) 5. if @contact.valid? 6. contact = get_contact 7. email = ContactMailer.create_confirm(contact) 8. render(:text => "<pre>" + email.encoded + "<pre>") 9. flash[:notice] = "Message Sent" 10.# redirect_to :action => ''index'' 11. else 12. render :action => ''index''...
2013 Jan 14
0
ActionMailer helper :all
.../rails.lighthouseapp.com/projects/8994/tickets/3945-helper-all-on-by-default https://github.com/rails/rails/issues/928 https://github.com/rails/rails/issues/1582 Steve Klabnik told me to post here: https://github.com/rails/rails/issues/8911 As of rails 3.2.11 the problem is still there: class ContactMailer < ActionMailer::Base helper :all end Produces: LoadError (Missing helper file helpers/all_helper.rb): Shouldn''t it load them all, as in ActionController since ActionMailer doesn''t load helpers by default. PS. Sorry if this is a double post, the first post disappeared s...
2013 Jan 14
0
ActionMailer::Base helper :all
Shouldn''t helper: all work in ActionMailer? Similar issue was discussed before: https://rails.lighthouseapp.com/projects/8994/tickets/3945-helper-all-on-by-default But as of rails 3.2.11 the problem is still there: class ContactMailer < ActionMailer::Base helper :all end Produces: LoadError (Missing helper file helpers/all_helper.rb): While it should load them all, since ActionMailer doesn''t do that by default. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:...