Displaying 20 results from an estimated 100000 matches similar to: "Using gmail smpt in production"
2008 May 21
5
Recieve email from gmail using POP3
can someone help me out with this folder... im stuck and i cant trouble
shoot where is the error
thx alot~~~
Attachments:
http://www.ruby-forum.com/attachment/1982/mail4.zip
--
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
2009 Jul 28
6
how to set smpt server for our rails applicaion
hi i am using technoweenie-restful-authentication plug-in for
authentication in my application. i want to send a activation link to
the user''s mail-id.
for that i need to set the smpt server for our rails application, for
that i added the follwing code in config/environment.rb file
ActionMailer::Base.delivery_method:smpt
ActionMailer::Base.smpt_settings = {
:address =>
2007 Jul 26
1
Lohan the observable
Sorry, that name is a misnomer. However, I was excited to find that Ruby
has a built in Observable module and I''m pretty bored, so I apologize in
advance....
require ''observer''
# one who is observed
class Celebrity
include Observable
attr_accessor :name
attr_reader :is
def is=(val)
@is = val
changed
notify_observers(self)
end
end
# one who
2006 Jul 11
1
smpt server
Hi,
i am now in the process of building a newsletter system which will send
out emails to users that have enlisted to a certain group;
everything''s going fine, and i an towards the end of this project...now
the real part of the story kicks in, where i need to check to see if the
thing is working or not. i have been looking over the development.log
file, and i see that the emails
2007 Jul 03
5
HOW TO: Easily output alternating item styles via metaprogramming
I always need to apply alternating item styles when outputting a collection,
here''s what I''ve been using recently.
In the app helper I define this method:
def alternate(items,alt=false
items.map{|i| i.class}.each { |k| k.class_eval {attr_accessor :alt}}
items.each { |i| i.alt, alt = alt, !alt }
end
When I call the partial I wrap the collection with this method:
2006 Dec 29
1
development, test, production ... how about stage
I find a "mode" is missing when I iterate on my rails apps...
Specifically, right before production, I want to run on my development
machine as if I am in production mode. It mainly boils down to this...
- I want the production setup (caching, error handling, etc)
- but I want my local machine DB (password, socket, etc)
So I have been using an additional mode that I call stage.
- just
2008 Apr 11
1
database adaptor password in production.log
So, as I''m working on migrating my app from Rails 1.2.1 to Rails 1.2.6,
suddenly my database adaptor password is showing up in production log on
startup. This could be because use "
ActiveRecord::Base.allow_concurrency = true" (I know, nobody else does
and you''ll tell me not to do it. But I''ve investigated it and it''s
working for me, that''s
2008 Apr 22
2
Custom Mysql queries slower than ActiveRecord in production
I have been working on optimizing the performance of a Rails app by
rewriting the AR record methods into custom sql queries. What I did is
that the result from the query is not instantiated as an object, which
is supposed to be too time consuming.
Here are the performance difference between using default AR methods and
its custom equivalent. The number of requests per second was read from
the log
2008 Jun 13
1
TypeError (can't modify frozen hash) - Production Mode Only
Well, I''ve been testing out my code in production mode, in anticipation
of being able to show off my site soon. Unfortunately, all is not going
as expected. Production mode... well, its behaving differently than
development did. I''ve already had login validation issues, and now it
seems that my PM system is broken.
If a user enters a non-existent username as a recipient of a
2008 Dec 07
3
Cannot get tlsmail working; Want Gmail as SMTP
This is killing me, folks. I have reviewed numerous examples and tried
two different approaches to try and use Gmail (Google Apps account) as
my application''s SMTP. Every time, both on my slicehost server and local
dev machine (both Ubuntu Linux), my logs show no errors and I see a copy
of the mail in my logs. Yet I never received a test email. I''ve tried
both the
2008 Sep 18
2
change_table is not working on production server
Hi,
I have added to my migration a change_table action. It works fine on my
local dev machine, but on the production server the migration does not
happen although the schema.rb file gets correctly updated.
I am running Rails 2.1.1
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
2008 Oct 10
3
Rails does not see installed gem in production.
Everything works like a charm locally, but running in production
(Dreamhost shared with Passenger if it matters), "These gems that this
application depends on are missing \n -rmagick"
Rmagick is installed on dreamhost, but I have also copied the gem into
the vendor directory, so it''s not even found within it''s local files.
I''m using config.gem
2008 Jun 03
1
Filter email form production-log?
Is it possible to filter the generated emails from the production-log?
I''d like to remove them there, since there is some private-info in
them...
--~--~---------~--~----~------------~-------~--~----~
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
2007 Jun 12
0
Log level to debug in production?
I wanted to check how the sql queries looked like in production mode.
Launched the app in prod mode with script/server after I set
config.log_level = :debug in connfig/environments/production.rb.
For some reason, the production.log did not include any queries, just
information about the requests. Does that mean that rails magically
caches everything in my database upon initialization (right..),
2008 Jan 24
1
production environment without root access
Is there any way to set up a production Rails environment without root
access?
--
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe
2007 Mar 05
1
Mongrel cluster died only in production environment
I''m new to setting up a production server with Rails, so I tried to do
what seems to be the standard setup right now: a couple mongrel servers
behind Apache 2.2. I''ve got a test page that refreshes itself every
couple of seconds, and I''ve noticed that I get a "Proxy Error" when
that''s run for about a minute or so, from what appears to be a mongrel
2007 Apr 26
1
eager loading not working in production mode
i have an eager load query as such:
@groups = ReviewQuestionGroup.find(:all,
:conditions => ["review_category_id = ?", @review.category.id],
:order => ''review_question_groups.position,
review_questions.position'',
:include => :questions)
in dev mode, this works fine... i get results like
@groups[0].questions.length = 13. in production, i
2009 Mar 15
3
can't run production console: custom_require.rb:27: [BUG] terminated node (0x8117eb8)
Suddenly I can''t run the production console anymore for my app :(.
Here''s the error I get:
08:12pm fggedsaa:~/rails/production/app>./script/console
production
Loading production environment (Rails 2.1.1)
/opt/csw/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: [BUG]
terminated node (0x8117eb8)
ruby 1.8.6 (2007-03-13) [i386-solaris2.11]
Version info:
8:24pm
2007 Feb 18
2
SerializationTypeMismatch in Production Mode
In production mode, I keep getting this error the 2nd time it loads a
page with a serialized attribute:
ActiveRecord::SerializationTypeMismatch (answers_container was
supposed to be a Array, but was a NilClass):
/vendor/rails/activerecord/lib/active_record/base.rb:1964:in
`unserialize_attribute''
In development, it works fine. In fact, if I set to false
config.cache_classes in
2008 Oct 07
7
Rails production version not accessible from other machines
Hi,
I just deployed my first rails application in production mode using
Capistrano and mongrel clusters. Here are the lines in my
mongrel_cluster.yml file.
cwd: /myrailsdeploymath/current
log_file: log/mongrel.log
port: "8000"
environment: production
address: myserver.mydomain.org
id_file: tmp/pids/mongrel.pid
servers: 3
My development and production machine are the same.
When I run