Displaying 20 results from an estimated 900 matches similar to: "Rails3 Mailer html / text versions order"
2010 Dec 11
0
Rails 3 - Delayed_Job (collectiveidea), trying to Delay Mailers - Error: NoMethodError (undefined method `delay' for UserMailer:Class):
Hello, I have the following in an observer:
UserMailer.delay.msg_notification(record)
In user_mailer.rb
class UserMailer < ActionMailer::Base
...
def msg_notification(record)
mail(
:to => "#{record.user.email}",
:subject => "Notification"
)
end
..
end
But this errors with:
NoMethodError (undefined method `delay'' for
2008 Mar 31
0
Action Mailer Problem with salted hash login generator
Hi! Guys
I am using the salted hash login generator for login purpose. Now, I
am working in friendship. When I want to request someone for
friendship request via the action mailer I get following error:
=====================================
Due to changes in ActionMailer, you need to provide the mailer_name
along with the template name.
render "user_mailer/signup"
render :file
2009 Dec 21
2
Multiple email recipients
I''m trying to call multiple email addresses from database. But dont
know how to get the logic into the recipients field.
#subscriptions_controller
def deliver
@subscription = Subscription.find(params[:id])
@users = @subscription.users
@subscription_recipients = @users.find(:all).collect { |user|
user.email }
@subscription.deliver
flash[:notice] = "Delivered
2007 Jun 17
1
actionmailer & picture
Hello
I''m using action mailer to create an HMTL outbound email. This email
renders a partial. In that partial, a call is made to a public location
to get a picture for display in the email.
When this email is generate, I get the following error (note: I''m sure
it has something to do with not understanding the context of
actionmailer and how it functions):
NoMethodError in
2010 Oct 13
0
Overriding log_error in Rails3 not working
I have this in my application.rb:
private
def log_error(exception)
super
UserMailer.error_message(exception,
clean_backtrace(exception),
session.instance_variable_get("@data"),
params,
request.env
).deliver
end
I''d like the errors emailed to me.
It doesn''t seem to be calling that
2007 Apr 30
2
has_many :through polymorphic
Hi All,
I have the following arrangement:
class PickAndPackRequest < ActiveRecord::Base
has_many :transactions, :as => :request
has_many :postings, :through => :transactions
end
class Transaction < ActiveRecord::Base
belongs_to :request, :polymorphic => true
has_many :postings
end
class Posting < ActiveRecord::Base
belongs_to :transaction
end
But when I ask for
2008 May 03
2
ActionMailer Multiple recipients
I am using ActionMailer to send mails. I want to send mails to
multiple recipients which I get from a view. Here is the controller
code.
def groupcorres
user = User.find(session[:user_id])
address = Array.new
lines = Array.new
args = params[:id].to_s # params[:id] is an array of user screen
name. ex: j_doe, d_john
lines = args.split(",")
for line in lines
2010 Feb 08
0
recommending friends, using RoR's Mailer
Hi there, I wan tto be able to allow users to invite friends...
The action below is exactly the same as the code used to send a user
their username. Only difference is, I need to change the ''''user =
User.find_by_email(email)'''' part as obviously, I dont want to only
email people who are already on the site.
def invite
@title = "Invitation"
2007 Dec 08
6
Rails 2.0 ActionMailer breaks my redmine render_message
I am using ''redmine'' (v 0.6) as my major project manager, seems running
fine w Rails 2.0 (slight modifs for paginations..) but I am stuck with a
major error when sending a confirmation email :
mailer.rb
class Mailer < ActionMailer::Base
....
# Renders a message with the corresponding layout
def render_message(method_name, body)
layout =
2010 Nov 24
2
Puzzled about the rspec tests generated by Rails3
Hi all
I am puzzled about the rspec tests that are generated by Rails3
scaffolding. I am however not sure if this is the correct place to
discuss this issue.
It might be that a rails ML/chat is better suited for that kind of
discussion. It just depends on who is responsible for that code.
Somehow I am too stupid to find that out, so please bare with me if I
produced only noise here.
Cheers
2010 Sep 12
0
observe_field for jquery + rails3
I am porting one application to Rails3 and want to know what is the
right way to do "observe_field" with Rails3?
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2010 Oct 21
0
attachment in the database with thumbnail generation - rails3
What is the best solution for handling blob database storage with
rails3?
I used attachment_fu before, but it doesn''t seem to work well with
rails3. Anyone got it working?
paperclip seems nice, but i need database storage for backups and
security.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2011 Dec 02
1
How to implement ActionMailer callbacks for rails3?
Hi,
Is it possible to implement callbacks(like
before_deliver :some_methodes, after_deliver :other_methods) with
ActionMailer in Rails3?
Please somebody help me or give me an idea :)
Already I saw http://railscasts.com/episodes/206-action-mailer-in-rails-3
but it I like to do it as callbacks
--
Best Regards
Abdul Barek
Senior Software Engineer
--
You received this message because you are
2010 Aug 22
1
rails3: t.index in migrations not working anymore
Hello,
I''m playing around with Rails3 and trying to upgrade one of my
applications to Rails 3.0.0.rc and I get an error which should be still
working.
Migration:
t.index :name
When I execute rake:
rake aborted!
An error has occurred, all later migrations canceled:
undefined method `index'' for
#<ActiveRecord::ConnectionAdapters::TableDefinition:0x4b2b6b0>
Does some one
2011 Jan 12
1
gem and rails3: LoadError
Hi everybody,
I''m trying to use the prawn gem into a new rails3 application on debian.
What I did:
As root:
- install rubygems, from
http://rubyforge.org/frs/download.php/73882/rubygems-1.4.2.tgz
- gem install rails
- gem install prawn
- gem install pdf-reader
- gem list | grep prawn =>
prawn (0.8.4)
prawn-core (0.8.4)
prawn-layout (0.8.4)
2006 Mar 16
1
rails3 - example of Amazon S3 on rails
Hi
I''ve done a small rails application for file management on Amazon''s new
service, the storage webservice ''Amazon S3'' (at this time just upload, list
and delete methods are implemented). Maybe someone find it useful as
example.
The source code and a little more information can be found here:
http://caffo.backpackit.com/pub/502395
Best regards
Rodrigo Franco
2012 Jan 16
0
Rails3 logging issue in development.log
I have a rails3 app, i need to log all into development.log, But when i
check after the execution, the development.log is empty...How to rectify
this problem...
*development.rb*
*
*
ApiMofobi::Application.configure do
# Settings specified here will take precedence over those in
config/application.rb
# In the development environment your application''s code is reloaded on
#
2010 Sep 09
0
Rails3: jquery-rails gem sets 'config.action_view.javascript_expansions' but cannot be overriden in 'config/application.rb'
Hello,
I''ve created a new Rails3 app and I''m using jQuery instead of prototype.
Gemfile:
gem ''jquery-rails''
in my config/application.rb I want do the following:
config/application.rb
if Rails.env.production?
config.action_view.javascript_expansions[:defaults] = %w(jquery.min
rails application)
else
2010 Sep 30
0
upgrade to Rails3 question
Hi!
After upgrading to Rails3 and the latest plugins, two of the plugins:
delayed_job and oauth_plugin don''t work.
They display a similar problem, I am not able to use methods they
provide. In delayed_job''s case I can''t use Model.delay.method
(undefined method) and with oauth_plugin adding oauthenticate in the
controller returns undefined method too.
Could I have
2010 Jul 19
0
redcloth with rails3 and ruby 1.9.2
is redcloth working with rails3 and 1.9.2?
I don''t see it here - http://railsplugins.org/
redcloth 4.2.3 throws this exception when trying to use the method
textilize:
uninitialized constant ActionView::Helpers::TextHelper::RedCloth
I might need to use the 1.9.2.
can you guide me how to use the 1.9.2 version? (I assume i''ll have to
clone the repo but not sure what to do next).