similar to: Rendering partials in ActionMailer?

Displaying 20 results from an estimated 1000 matches similar to: "Rendering partials in ActionMailer?"

2006 Apr 28
1
Full-text Search Options Redux
Hey all, I haven''t heard much on the list in a while re: ActiveSearch, Ferret, Hyper Estraier, etc. in a while. Has anyone successfully used ActiveSearch on tables with rows in the order of hundreds of thousands, if not millions? (in our case, each row containing anywhere from a paragraph of text to many pages) Here''s some background on our search efforts. A. Hyper
2006 May 04
5
How to install Ferret to get the best performance
Hey all, After dabbling with ActiveSearch, we''re coming back around to take another look at Ferret. ActiveSearch slowed to a crawl after indexing about 20k documents, each 20 lines each. This time we may attempt to create multiple Ferret indexes (isolating each organization''s data individually), since we eventually could have upwards of 20k documents for some
2006 May 08
3
Index::Index.new vs. Readers and Writers
Hey gang, A post on the Rails forum a while back had it sound like you pretty much had to use the Index Readers & Writers if you were going to be potentially accessing an index from more than one process. (i.e. multiple dispatch.fcgi''s, etc) Is this still the case, or does the main Index class do that black magic behind the scenes? =) I was having trouble implementing the
2006 Jan 29
1
Rendering partials with ActionMailer
Can ActionMailer render partials (like .sigs, for example)? When I try to render :partial, I get an error: undefined method `controller_path'' for SomeNotify:Class I also tried putting the partial within /shared, but it likes that even less -- it can''t seem to find the template. Jake -- Posted via http://www.ruby-forum.com/.
2003 May 13
1
Where to get Adobe Postscript Drivers
Hi all, According to Samba 2.2.x HOW-TO: You need to download them yourself from the Adobe website. Once extracted, create a drivers directory in the CUPS data directory (usually /usr/share/cups/). Copy the Adobe files using UPPERCASE filenames, to this directory as follows: ADFONTS.MFM ADOBEPS4.DRV ADOBEPS4.HLP ADOBEPS5.DLL ADOBEPSU.DLL
2003 Jun 17
3
cupsaddsmb NT_STATUS_NO_SUCH_DEVICE
Hello, I am using cups-1.1.19final-1.deb and samba-2.2.3a. When I was working with cups-1.1.15 before, cupsaddsmb worked fine, but now with cups-1.1.19 it gives me: Running command: smbclient //localhost/print\$ -N -U'root%secret?' -c 'mkdir WIN40;put /var/spool/cups/tmp/3eef829eea1b8 WIN40/ps948esb.PPD;put /usr/share/cups/drivers/ADFONTS.MFM WIN40/ADFONTS.MFM;put
2003 May 15
1
Does automatic printer driver download from Win 2k client work?
Hi, I am playing around with automatic printer driver download to Windows 2000 clients from Samba 2.2.8a-1 which doesn't seem to work. Whenever I right-click on the printer and say "connect", it displays: The server on which the printer resides does not have the correct printer driver installed..... Here is my smb.conf file: [Global] workgroup = DEBIAN_FANS load printers = yes
2008 May 08
0
stub sub partials when testing partial with rspec
Hello all I prefer to use many partials. It makes my code more DRY Also I use rspec, and when I have to test partial with sub partials I have a problem. if I stub render, then my partial will not be rendered. If i do not stub render it tries to render sub partial (and i don''t need this) Not very long googling did not bring the answer, so I made very dirty and IMHO dangerous function
2007 Jan 11
0
Including partials in ActionMailer template files?
I have class called: class Notifier < ActionMailer::Base Then in my view for that class I have an rhtml file that holds the html for the email. I am trying to do <%= render :partial => "header" %> and I''m getting: ActionView::TemplateError (undefined method `controller_path'' for Notifier:Class) on line #1 of
2003 Jul 10
1
print quota with CUPS
Hi, I am running CUPS-1.1.19 and Samba-2.2.8a on Debian 3.0 to serve both Windows and Unix clients. Has anyone got print quotas for Cups working? When I set quota using lpadmin, it does not limit the pages to be printed, in other words doesn't do anything. Any help is highly appreciated. Shanti
2006 Jul 16
3
RJS problem
I have an odd problem while trying to use a simple rjs. _test.rjs : page.alert "test" test.rhtml: <script><%=render_partial(''test'')%></script> When I am attempting to view controller/test the page comes as if it was a text file. So i am actually seeing: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2006 Aug 05
1
form_for and partials
I''m getting an error in the partial when i try <% form_for :name do |form| %> <%= render_partial "#{@current_stage}" %> <% end %> So I assume that form_for does not have scope in the partial? If that is the case what are my solutions... Do I have to stick a <% form_for in every partial, or do i just change all my inputs back to text_field
2003 Mar 07
2
[Bug 503] Password is echoed when running passwd via ssh
http://bugzilla.mindrot.org/show_bug.cgi?id=503 kj at uue.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From kj at uue.org 2003-03-08 02:04 ------- just
2006 Aug 01
2
Partial Naming Madness
Hi, I am having the following issue with a partial. During initial page load, I am doing a "render_partial_collect ''foo'', @foos", and all goes well. Each foo partial makes use of a variable inside called ''foo'' (and can get foo.id etc). After all the partials are loaded, I need to :update a div corresponding to one of the partials (ie re-load the
2007 May 05
0
integration with movtable
Hi, I''m trying to integrate movtable to display some data. The file that lists out the partials to display the data looks like this: <html> <head> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <title>Movtable - List</title> <%= stylesheet_link_tag
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
2006 Jun 08
1
No rhtml, rxml, or delegate template found
hi , i''m having a problem with rendering a partial , the partial is in the apps/view/polls folder with the name : _antwoorden_user.rhtml in the view i''m rendering it with <% if @user %> <%= render :partial => ''polls/antwoorden_user'', :locals => {:poll => @poll, :user => @user} %> <% else %> .... gives me the error => No
2007 Jul 19
7
NoMethodError in partial driving me mad
Hello, i simplified have a news model, a news category model and a news controller. my _news.rhtml partial renders a single news entry. in my controller there are the actions show and show_category. if the "show" action is called, a single news item is rendered through my partial with no errors. if the "show_category" action is called, i get a NoMethodError while displaying
2007 Nov 03
1
Specs for Helpers that call render
The helper spec I am writing tests a helper method that calls render. ## module HelperHelper def render_partial render :partial => ''partial'' end end ## The helper spec. ## describe HelperHelper do it "should render partial" do render_partial.should_not == nil end end ## The output generated ## $ spec spec/helpers/home_helper_spec.rb .F 1)
2006 Jun 26
0
Using a partial multiple times in a view
Hi, im trying to execute multiple cmds in a method that use the same view which has multiple calls to the same partial inside it. However i cant get it to work correctly, so any help here would be appreciated heres the controller code def index cmd_df = "df -Ph" exec_cmd(cmd_df) cmd_sys = "uname -a" exec_cmd(cmd_sys) end private def exec_cmd(cmd)