similar to: Ruby on Rails mailer

Displaying 20 results from an estimated 200 matches similar to: "Ruby on Rails mailer"

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 =
2005 Nov 17
7
render :partial in mail template
Hi, Is it possible to render a partial template from within a mail template? I get the following error undefined method `controller_path'' for SupportMailer:Class Extracted source (around line #8): 5: 6: <%= @url %> 7: 8: <%= render_partial ''sig_admin'' %> Jeroen
2007 Feb 16
4
Auto detect URL for ActionMailer?
Hi, how can I call the url in an actionMailer definition - so that it automatically detects what the rails application server is and puts it in the url that is mailed to the client? (I don''t want to have to change it every time the hostname is changed - I''d like the application to auto detect what the host is - whether it''s localhost:3000 or my own website... example:
2006 Apr 16
2
newbie actionmailer question
I''m trying to get my app to send an authentication email (via the authenticated_as plugin) I think the authenticated_as code is ok, but it''s failing when it tries to send a mail. getaddrinfo: Name or service not known In environment.rb I set up the code for my mail server: # Include your application configuration below ActionMailer::Base.server_settings = { :address
2006 Mar 18
0
implicit template naming for multipart/alternative emails
Hello, I''ve been using edge rails for a while now and used the recipe from the new recipes book on using implicit file names for multipart/alternative messages. This seems to have recently broke. I''ve named by templates according to the book and the docs... # for example, if the following templates existed: # * signup_notification.text.plain.rhtml # *
2006 Jan 23
7
Globalize - Wiki down, docs down, status?
Hi, Currently the wiki entry for Globalize http://wiki.rubyonrails.org/rails/pages/Globalize+Plugin http://globalize.diluvia.net is down, -- Posted via http://www.ruby-forum.com/.
2013 May 19
5
update_attributes() for a single column
I was just faced with a strange ROLLBACK exception when attempting to execute this code: $ rails console user = User.first User Load (1.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 => #<User id: 1, name: "Michael Hartl", email: "foo-+RB1Aph5k6s@public.gmane.org", created_at: "2013-05-12
2006 Feb 06
2
Globalize plugin, now I have two classes with the same name
Hi, newbie here. I''m using the Globalize plugin, which defines a model with the same name as one of my existing models. We both use a model called Country. The Globalize Country model (within vendors/...) is wrapped in module like this... module Globalize class Country < ActiveRecord::Base ... end end And this is my Country model (within app/models)... class Country <
2008 May 31
2
Exec format error during globalize plugin install
While trying to install the globalize plugin (website down? -- http://www.globalize-rails.org/globalize/) for Rails, all the files seem to be transferred and placed properly, but I get the following error when install.rb attempts to run: Exec format error - rake -f C:/clients/MyClient/code/vendor/plugins/ globalize/../../../Rakefile globalize:upgrade_schema_to_1_dot_2 && exit 1 I see
2006 Jul 17
5
Functional Tests misbehaving with Globalize
Howdy all Apologies to the folks subscribed to the globalize list for dual posting this message... I''ve got a project running globalize and rails 1.1.4, and I''ve only recently adopted a strong love for testing. Now my models are 100% tested (I must note that I do not make use of any translations in the database yet), and I''ve now started with functional tests before
2007 Jan 17
5
[ActsAsFerret] Globalize integration
Hi, I''ve modified the latest acts_as_ferret code (version 0.3.0) to integrate with the Globalize (http://www.globalize-rails.org/globalize/) plugin. Essentially, I''ve added the ability to use a separate index per locale (It basically adds the language code as a suffix to the index and switches between indexes when the active locale changes). Since this introduces an optional
2005 Dec 21
10
Globalize plugin
Is there any working example on using the Globalize plugin? It could help alot Thanks in advance -- Alexander Antonakakis email: alexis-+Saq9+MPrF0@public.gmane.org
2006 Mar 30
1
Globalize DB translate not working in Rails 1.1.0
It seems there have been some changes to ActiveRecord between Rails 1.1.0 RC and 1.10 Final that cause Globalize to fail; 1.10 RC was working fine. When retrieving records from the DB only the base language version is fetched, even when the locale has been set differently. The SQL in the log confirms that Globalize is ignored and a regular find() is performed.
2006 Feb 11
1
problem with globalize
Hi, Somehow the date translation example in globalize doesn''t work for me. Loading development environment. >> Locale.set("es-ES") => #<Globalize::Locale:0x254df78 @code="es-ES", @language=nil, @country=nil> >> Time.now.localize("%d %B %Y") => "11 February 2006" >> Any ideas?? Thanks! Jeroen
2008 Dec 17
9
Rails 2.2.2 and globalize - undefined method `render_file' for class `ActionView::Base' (NameError)
Looks like globalize (1.2) is not compatible with rails 2.2.2. I am getting: '' => Booting Mongrel (use ''script/server webrick'' to force WEBrick) => Rails 2.2.2 application starting on http://0.0.0.0:3003 => Call with -d to detach => Ctrl-C to shutdown server ** Starting Mongrel listening at 0.0.0.0:3003 ** Starting Rails with development environment...
2006 May 03
1
Globalize app example anywhere?
Hi! Is there anywhere tutorial how to create working application using globalize plugin? I need to create a site in 3 different languages and i was suggested to use globalize plugin. I''ve read a bit on globalize wiki page and pdf from the presentation available on the same page, but i still can''t figure out how to use it. 1. Can i translate names of models and columns
2007 Feb 21
1
how to install globalize 1.2 in ROR
hi, can any one tell how to install globalize 1.2 in raby on rails step by step as soon as possible -- 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
2007 Aug 30
8
experimental rails story adapter in trunk
For those of you interested in getting a jump on learning about and using the new Story Runner in a Rails app, I''ve added an experimental Rails-Story adapter to trunk. You can see how to use it here: http://pastie.caboo.se/92320 This is PURELY EXPERIMENTAL, however it actually works and will likely not change much in the way that it does work. Happy hacking! David
2006 Jan 18
15
Anyone got Globalize working???
Hi all In another thread I complain about an error I get after trying to get Globalize working. http://www.ruby-forum.com/topic/51988#new Now I want to ask you, if anybody of you has ever got Globalize working? I have done exactly what''s written in the (absolutely much too short) tutorial of its wiki... http://globalize.diluvia.net/wiki ...and I''m very frustrated that no
2007 Apr 06
3
Mailer method missing
Rails dies when I try to call a method from my Mailer. But I have defined my method. What could I have missed? Here is the irb session: >> p = Person.find(1) => Person data... >> SiteMailer.request_admin_approval(p) NoMethodError: undefined method `request_admin_approval'' for SiteMailer:Class >> SiteMailer.method_defined? :request_admin_approval => true The