similar to: How to implement ActionMailer callbacks for rails3?

Displaying 20 results from an estimated 200 matches similar to: "How to implement ActionMailer callbacks for rails3?"

2006 Feb 15
2
extending rails via /lib - problems
I wanted to group some functions which I use in some models in one place. Controllers have application.rb and views have helpers but I couldn''t find anything about models. Using the /lib directory seemed to be the only way. Alright... so I have something like this: /lib/code.rb class ActiveRecord::Base def method_a(n) ....... end def method_b(n) ........ end end
2006 Jun 20
0
An after_deliver filter for ActionMailer?
I have a mailer that should update a model once an email is delivered (a "notice sent on" field). I don''t want to put this update code in the email creation method of my ActionMailer::Base class because I''d rather have this field updated when the email is _sent_ rather than when it is _created_. Is there a filter such that I could do something like this?
2007 May 26
0
New worker not being created
I figured out that in the backgroundrb.yml, I had the old setting of making the database RAILS_ENV. It wasn''t a valid variable in backgroundrb 0.2.1, and it wasn''t reporting an error, so I had no idea. Once I changed it to ''development'' or ''production'', it started working. I found that if a worker has an error, it usually logs the error
2007 May 09
0
Neophyte needs help!
Hi All, Real neophyte here, to both backgroundrb and ruby/rails in general. (Hey, we''ve all got to start somewhere, right!) :) I''ve just been playing around with the example code at http://backgroundrb.rubyforge.org/ , and trying to get all the pieces to work (btw, I''m using version 0.2.1). I did a ''generate worker example'', which created an
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 Aug 26
0
Eager loading a has_many :through (Rails3)
Hello all, I''ve been trying out Rails 3 and can''t get past this issue: I have a simple has_many :through: class Author < ActiveRecord::Base has_many :author_series has_many :series, :through => :author_series end class Series < ActiveRecord::Base has_many :author_series has_many :authors, :through => :author_series end In my controller I would like to
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 Dec 27
0
highcharts gem for rails3,lazyhighchart 1.0.8
FYI: https://github.com/xiaods/lazy_high_charts -- tommy xiao E-mail: xiaods(AT)gmail.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2010 Apr 25
0
Rails3: ActiveRecord includes(:) not working
class Customer < ActiveRecord::Base has_many :projects end class Project < ActiveRecord::Base has_many :works belongs_to :customer end -- 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
2011 Jul 07
0
Rails3 Mailer html / text versions order
I am sending the emails as per the documentation order : html / text but users are receiving the text version first and not the html ( need to switch to an alternative version ..) I guess I missed a point but which one ? thanks for your help RAILS DOC ======== class UserMailer < ActionMailer::Base default :from => "notifications-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org"
2011 Apr 10
0
best configuration rails3+mysql on windows?
Hi, 2 years ago I carried out a little project with Rails2+Postgresql on Windows Vista, and I had a good impression of Rails... now I have upgrated the framework to: Ruby 1.9.2+gem 1.7.1+rails 3.0.5, I use mySQL 5.1 as database (still in Windows Vista)... and I have a lot of problems with the adapter, the connection... after imprecations I disinstalled it all!!! Which is the best practice, what
2011 Mar 02
2
Rails3 Uploading a File over AJAX
What is the Rails Way of uploading a file over AJAX with Rails 3? In previous versions of Rails, I''ve posted to a targeted iframe and used responds_to_parent to render the response. This doesn''t appear to be working with Rails 3. Anyone know a better solution? Thanks! Tom -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
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).
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 Jul 22
1
rails3 tutorial: testing with factories
I''m having trouble understanding what the assigns() method does, as described at the following link: http://ruby.railstutorial.org/chapters/modeling-and-viewing-users-two#sec:better_user_views The User model has been ''rake db:test:prepare''ed, but I checked and no records were copied to the test db after doing that. Yet the description of assigns() says that the code:
2010 Sep 24
0
template.base_path in rails3
Hi! With Rails 2 template.base_path and template.name were available in views. What are the Rails3 equivalents? -- M. -- 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 27
0
"Missing partial layouts/application" error on render :partial => "index", :layout => "application" - Rails3
This is the second time I have seen this error, and been googling around and cant find an explanation. This error is happening with Rails 3/1.9.2 and was not with Rails 2.3.8/1.8.7: *Template is missing Missing partial layouts/application with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml], :formats=>[:html], :locale=>[:en, :en]} in view paths