similar to: Shouldn''t mailers be controllers?

Displaying 20 results from an estimated 90000 matches similar to: "Shouldn''t mailers be controllers?"

2006 Feb 16
1
runner: url_for with mailers impossible
I created a runner script to send a newsletter. I found this hack where you pass a controller and specify a helper: http://wiki.rubyonrails.org/rails/pages/HowtoUseUrlHelpersWithActionMailer But in a runner script there is no controller to pass. So, it looks like it''s impossible to use url_for in the mailer template this way. Another way around the no url_for problem is to pass the
2006 Feb 17
2
Dealing with *a lot* of Mailers
Anybody here deal with "a lot" of ActionMailers ? I have a lot of places within my application that send out emails to various parties. My /views directory has a directory for each type of mail... ie: new_user_mailer/ forgot_password_mailer/ ...etc The /views directory is getting quite full of directories because of this, and I''ve tried working some magic to get the views
2006 Jun 10
0
DRY Up Lots o'' Mailers
I have a heap of fill-out-form/send-website-operator-mail/send-user-confirmation types of forms. It''s daunting when you think about how many files it takes to do this. I''m not coming up with an obvious "Rails" way to pull it off, so I thought it''d be good to know if anyone else has worked through this (7 per form!). models/ my_form_data.rb
2006 Mar 12
0
ERB and Builder template engines shouldn''t be so heavily wired in ActionView::Base
Problem: 1. ERB and Builder template engines are heavily wired in ActionView::Base 2. Should be optional. If we use different engine - why load all their stuff if not needed? 3. There are template engines which expect files in their own locations and cache them in their own way. For instance a template engine may store templates in a database. These engines don''t need any central source
2009 Jun 25
1
request.host, proxy chains and HTTP_X_FORWARDED_HOST
Hi, We''ve an application that uses url_for in controllers and views. In views, url_for generates a relative url (as if :only_path where used). All is fine there. However, in controllers, url_for generates a full url, with the host name. This causes problems when we have a chain of Apache proxy servers: My Browser ---> Proxy 1 ----> Proxy 2 ----> Phusion Deployment Server. In
2008 Apr 05
0
url_for + :canvas => false weirdness for non resource controllers
I noticed something strange in my app today. It appears that the extra canvas path appended in url_for is back but only for controllers that are not resources. Here is an example I have in my site: campaigns is a resource checkout is not # With the canvas false flag (rdb:1) @controller.url_for(:controller => ''campaigns'', :action => ''show'', :id
2007 Jul 12
1
form_tag doesn't accept a string anymore in edge rails?
So, here''s the offending line. Note that I''m using edge rails. form_tag verifications_path(@user), :method => :post do verifications_path(@user) returns a string like "/users/3/ verifications". That eventually gets sent to url_for, which expects a hash. And then it blows up. It''s especially disconcerting since the documentation shows form_tag as
2006 Feb 27
0
Mapping '':action/:id/:controller/'' doesn''t work
Hello People, (I am not good at ROR yet. This post could be very lame.) I am going playing with routes.rb. Well, pretty much any combination of mapping works, a part from: map.connect '':action/:id/:controller/'' In this case, the request is routed; however, I get: --------------------------------------- Showing app/views/inputs/start.rhtml where line #8 raised: No url can be
2009 Oct 06
0
[PATCH server] new host networking wui
Frontend and backend changes needed to implement http://ovirt.org/page/Networking_UX#Option_3 --- src/app/controllers/host_controller.rb | 38 ++- src/app/services/host_service.rb | 35 ++ src/app/views/host/edit_network.rhtml | 593 ++++++++++++++++++++++++++++---- src/public/stylesheets/components.css | 76 ++++ 4 files changed, 676 insertions(+), 66 deletions(-) diff --git
2006 Aug 11
2
Shouldn''t CRUD be CRUDS?
With most models, almost always I find myself writing Search/Find actions. When I view a Listing of a model, I want to look at another record or set of records. How nice it would be if I can do a query-by-example while viewing a Listing, or during Show/Edit/Create. Would be nice if Search becomes another act in the scaffolding magic. This wish has been expressed here before. Since then, has
2005 Dec 14
0
One of my attributes is nil, but it shouldn''t be
This is driving me crazy. When I create a new object in console, the attribute is not nil. When I create a new object in my unit test, the attribute is nil. What gives? baggio:~/work/mesafire pergesu$ ./script/console Loading development environment. >> e = Event.new => #<Event:0x234a514 @attributes={"name"=>nil, "timexstring"=>"",
2009 May 15
0
[PATCH server] final cleanup for service layer refactoring.
I've pulled out the no-longer-necessary remnants of the old way of handling auth and before_filters as well as fixing a couple bugs that had crept in along the way. Unit test fixes for the refactoring will follow in a subsequent patch. Signed-off-by: Scott Seago <sseago at redhat.com> --- src/app/controllers/application.rb | 46 ----------------
2006 Mar 29
1
View sharing between controllers?
Good evening all.... My first Rails project is flourishing, thanks in no small part to good advice I received from members of this mailing list (thanks!). However, I''ve run into an interesting spot on which I''d really appreciate your advice. My app''s main controller currently has about a dozen views, presenting various information about the models. This
2009 May 21
1
[PATCH server] Updated look and feel for empty grid views
When empty grids are shown (ex: no VMs in this pool) a specific graphic, message and improved action button are shown. For Task views, the user will see the current filter and an explanation that no tasks match that filter. Signed-off-by: Jeremy Perry <jeremy.perry at redhat.com> --- src/app/views/hardware/show_hosts.rhtml | 11 ++++------- src/app/views/hardware/show_storage.rhtml
2011 Mar 14
8
pvops0 kernel 2.6.32.x still does not boot if x > 18, shouldn''t that be fixed for release of Xen 4.0.2/4.1
Hello Jeremy & Keir, sorry to be persistent, but the problem that pvops0 kernel 2.6.32.x still does not boot if x > 18 on my machines (and on many other machines, see this mailing list) is not solved yet. Shouldn''t this be a great focus of debugging and fixing? What is the point of having releases for 4.0.2 or 4.1 if I don''t have a dom0 kernel? The last time I tried
2006 Mar 09
1
ActionMailer Question -- can''t find email templates
I have a PageController that displays a form. The form is just straight HTML, I only used the form helpers for the form tag as so: -- <%= form_tag({:action => :send_request}, {:method=>:post, :name=>''childsplay''})%> -- In my page controller I have this: -- def send_request email = InfoMailer::deliver_sendrequest(params) end --- in my action mailer class I
2007 Aug 30
1
alias_method_chain stack level too deep in Rake test only
I have an odd error. I have the following module: module ActionController module SslSupport def self.included(base) raise "#{base} does not define url_for" unless base.method_defined?(:url_for) unless base.respond_to?(:url_for_without_ssl_supprt) base.send :include, InstanceMethods base.send :alias_method_chain, :url_for, :ssl_support end
2004 Oct 25
1
Rails 0.8: Just shy of 100 additions, changes, tweaks, and fixes!
It''s been fifty days since our last confession, so it''s no wonder that this outpouring is by far the biggest yet in Rails history. It''s absolutely packed with goodies ranging from a whole new framework for sending email to the smallest new alias for an existing method. In total we''re just shy of 100 additions, changes, tweaks, and fixes. This is also
2007 Apr 11
0
Fwd: [ mocha-Bugs-6416 ] Mock objects shouldn''t define #to_s
---------- Forwarded message ---------- From: noreply at rubyforge.org <noreply at rubyforge.org> Date: 11-Apr-2007 15:07 Subject: [ mocha-Bugs-6416 ] Mock objects shouldn''t define #to_s To: noreply at rubyforge.org Bugs item #6416, was opened at 2006-10-31 15:34 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7477&aid=6416&group_id=1917
2010 Aug 26
1
[PATCH] Adding the ability to select a Host to start a VM
Signed-off-by: Simon COURTOIS <scourtois at linagora.com> --- src/app/controllers/vm_controller.rb | 5 ++ src/app/models/vm_task.rb | 4 +- src/app/views/vm/start.rhtml | 77 ++++++++++++++++++++++++++++++++++ src/task-omatic/taskomatic.rb | 7 +++- 4 files changed, 91 insertions(+), 2 deletions(-) create mode 100644 src/app/views/vm/start.rhtml diff