You should create virtual model in case of contact page as you are not
going to store contact information in database.
http://railscasts.com/episodes/219-active-model
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
Okay, I just noticed that my code isn't --exactly-- the same in
environment.rb,
I left this out:
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.default_charset = "utf-8"
But when I put it back in the app fails to start. What should
Narayan wrote:
> Not sure why
>
> it works fine for me, so send me your environment.rb and i can take a
> look at it (pls clear the password field )
>
> also send me the Rails version no.
>
> -Narayan
>
>
> On Oct 24, 6:25�am, Victor Vlist <[EMAIL PROTECTED]>
Okay, sorry for the delayed repl
Rake produces the error:
undefined method `smtp_settings=' for ActionMailer::Base:Class
How do I define that method? Do I put it in environment.rb?
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscrib
First of all, thank you for replying. When I use your suggestion I get
an "application fails to start" error. I narrowed it down to one thing
though. What causes the fails to start error is the "smtp" in the
"config.action_mailer.smtp_settings = {" line in
/config/environment.rb. If I use "se
Try modifying your environment.rb to include the following
===
...
Rails::Initializer.run do |config|
# Settings in config/environments/* take precedence over those
specified here.
# ...
# start narayan
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
Yes you can do it by using ActionMailer class
On Oct 5, 8:10 pm, Pepe Sanchez <[EMAIL PROTECTED]>
wrote:
> Is there a way to create a contact form that sends an email without
> having a table related to it.
>
> In my case I do not need a table contacts, I only need to send an email.
>
> thanks
>
7 matches
Mail list logo