search for: initialize_template_class

Displaying 9 results from an estimated 9 matches for "initialize_template_class".

2006 Jan 10
0
Error: "wrong number of arguments" in initialize_template_class
...gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:825:in `initialize'' D:/software/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:825:in `new'' D:/software/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:825:in `initialize_template_class'' D:/software/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:362:in `process_without_session_management_support'' D:/software/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session_management.rb:116:in `process'' D:/softwar...
2008 Jan 19
0
[CruiseControl] RubyOnRails build 8671 failed
...inder.rb:70:in `initialize'' ./test/../lib/../../actionpack/lib/action_view/base.rb:267:in `new'' ./test/../lib/../../actionpack/lib/action_view/base.rb:267:in `initialize'' ./test/../lib/action_mailer/base.rb:510:in `new'' ./test/../lib/action_mailer/base.rb:510:in `initialize_template_class_without_helper'' ./test/../lib/action_mailer/helpers.rb:106:in `initialize_template_class'' ./test/../lib/action_mailer/base.rb:502:in `render'' ./test/../lib/action_mailer/base.rb:494:in `render_message'' ./test/../lib/action_mailer/base.rb:442:in `create!''...
2005 Dec 20
0
ArgumentError in Main#index, weirdness.
...ng number of arguments (3 for 0) RAILS_ROOT: /home/www/modernlend/public/../config/.. Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/vendor/actionpack/lib/action_controller/base.rb:825:in `initialize'' #{RAILS_ROOT}/vendor/actionpack/lib/action_controller/base.rb:825:in `initialize_template_class'' #{RAILS_ROOT}/vendor/actionpack/lib/action_controller/base.rb:362:in `process_without_session_management_support'' #{RAILS_ROOT}/vendor/actionpack/lib/action_controller/session_management.rb:116:in `process'' #{RAILS_ROOT}/vendor/railties/lib/dispatcher.rb:38:in `dispatc...
2008 Mar 24
2
render not able to locate template in publisher
Hi guys, I have a publisher called UserPublisher setup in models directory of my app. The reason I have it in a model is because its then possible for me to invoke publisher methods in after_callbacks of my other models, just the way we do it for ActionMailer. My problem is that when I try to update a users profile specifying location of the view template as a paramater to "profile"
2006 Jun 01
2
using ActionMailer with template files retrieved from sql database table instead of on disk files
I''m trying to set up a system which allows users to create and modify emails to send out to clients. I''ve got ActionMailer set up to send from a template file stored on the file system, but I''d like to be able to move this into the database. Does anyone know how to get ActionMailer to read the contents of the email from a database table rather than the on-disk template
2006 Aug 14
0
ActionMailer in an infinite loop? Looks like framework bug.
...with_helper! Hence the infinite loop. So I started to just define this method in my class since it looks like it doesn''t do anything. Then I ran into another issue that looks like the same problem. Line 109: helpers.rb: ActionMailer 1.2.5 ---------------------------------------- def initialize_template_class_with_helper(assigns) returning(template = initialize_template_class_without_helper(assigns)) do template.extend self.class.master_helper_module end end Line 22: -------- alias_method :initialize_template_class_without_helper, :initialize_template_class alias_method :initialize_template_c...
2005 Oct 21
1
initialize in helpers
...1.8/gems/actionpack-1.10.1/lib/action_controller/base.rb:804:in `initialize'' c:/applications/ruby/lib/ruby/gems/1.8/gems/actionpack-1.10.1/lib/action_controller/base.rb:804:in `new'' c:/applications/ruby/lib/ruby/gems/1.8/gems/actionpack-1.10.1/lib/action_controller/base.rb:804:in `initialize_template_class'' c:/applications/ruby/lib/ruby/gems/1.8/gems/actionpack-1.10.1/lib/action_controller/base.rb:357:in `process_without_session_management_support'' c:/applications/ruby/lib/ruby/gems/1.8/gems/actionpack-1.10.1/lib/action_controller/session_management.rb:116:in `process'' c:/a...
2009 Jun 06
2
How does controller call render when there's no render in action
Hello, I was studying Rails source and at this point: def process(request, response, method = :perform_action, *arguments) #:nodoc: response.request = request initialize_template_class(response) assign_shortcuts(request, response) initialize_current_url assign_names log_processing send(method, *arguments) send_response I have a question. "send(method, *arguments)" this calls action of a controller, right? But if there&...
2006 Feb 06
6
ActionMailer - ROR Recipes - Multipart/alternative
I am using the SaltedHashLoginGenerator. and would like to send the e-mail in multipart/alternative format. By default my application is using forgot_password_en.rhtml template. I read in the ROR Recipes book "ActionMailer sees these templates, recognizes the pattern in their file names, and automatically sets the MIME type of the message to multipart/alternative and adds