Displaying 20 results from an estimated 10000 matches similar to: "Rails 2.3.2 Multipart Emails"
2009 Jul 30
0
Problem with implicit multipart emails using ActionMailer in Rails 2.3.3
With earlier versions of Rails ActionMailer used to implicitly send
multipart (text/plain and text/html) email messages for me, but it
looks like now it''s sending two text/plain parts.
Simplified details:
Here''s my model:
class Notifications < ActionMailer::Base
def confirmation(sent_at = Time.now)
@subject = ''Thank you for registering''
@body
2011 May 17
8
Changing Rails Default Date Parse Option
Does anyone know how to change the default option for the Date.parse
(which ActiveRecord is using on all date fields). I would like the
"comp" option to default to true so I don''t have to account for 2-
digit dates throughout my application.
http://corelib.rubyonrails.org/classes/Date.html#M001228
Thanks!
Tom
--
You received this message because you are subscribed to the
2008 Jan 21
4
Caching CSS Issue
I have a problem I was hoping someone could shed some light on. I
noticed that with every request to my server, the css file was being
requested. I went ahead and made a static link to the css file so
there is no query string at all, but still I see the requests coming
in with each request. Do I need to do anything else (in the response
header maybe?) to make sure that browsers will cache the
2009 Aug 06
18
Best Practices Question
Should models call action mailers, or should those calls always
originate from controllers? For example, should user.forgot_password
send the email, or should the user_controller.forgot_password?
Just looking for some opinions...
Thanks,
Tom
2009 Jun 24
3
ActiveResource:: HttpMock
I''m trying to set up testing on my ActiveResource project. The
HttpMock appears to be what I want, but whenever I use the code in the
"documentation", I get the error
NameError: uninitialized constant ActiveResource::HttpMock
Is there something I need to do to enable HttpMock testing?
Thanks,
Tom
2010 May 15
3
ActiveResource Mock Objects
Some of my tests use ActiveResource HttpMock requests and some of them
do not. Does anyone know if there is a way to disable the HttpMocks
after they have already been loaded? The method
ActiveResource::HttpMock.reset! only removes all the objects, but
ActiveResource still thinks it should look for mock requests rather
than actually making requests. I hope this makes sense!
Thanks,
Tom
--
2007 May 16
2
RMagick Setting Quality or Compression
I am trying to dynamically set the compression or quality of an image
when displaying it. I have seen in the RMagick documentation how to
set the quality only when writing the file to disk. How can I set the
quality dynamically or set the compression?
The method "image.quality=" does not exist and
"image.compression_type=" is not in the documentation. I have tried
2010 Apr 19
10
Overview of Ruby 1.9 encoding problem tickets
SUMMARY:
--------
I tried to identify the general and root causes for these problems
with 1.9, by taking into account non-utf encoding, current patches,
comments and ideas. I used ticket #2188 as base for explanations.
This is a long read. I wanted to include all the relevant information
in one place. I also included information about related tickets in LH
and their status. I decided that adding
2010 Oct 01
20
Paperclip not executing FFMPEG properly
Im using a customs processor to run ffmpeg on a video to create a
thumbnail.
So far so good. Except when I do:
cmd = "-i #{@file.path} -f flv -s 320x240 ~/Downloads/foobar/q.flv"
success = Paperclip.run(''ffmpeg'', cmd)
Console is reporting:
ffmpeg ''-i /var/folders/uL/uL0bYOOZEZaJH5E+BmDJVE+++TI/-Tmp-/stream,
16824,1.mpeg -f flv -s 320x240
2007 Aug 17
3
Problem Installing RMagick
Okay, so I am setting up a brand new Macbook and can''t seem to get
RMagick or ImageMagick to install with Darwin Ports. Can anyone give
me some insight as to why this may be failing? I get the same error
when I do a "sudo port install imagemagick".
Thanks!
sudo port install rb-rmagick
Password:
---> Building XFree86 with target World
Error: Target org.macports.build
2005 Nov 21
1
How to add the footer to multipart emails
I recently lerned that Mailman adds its footer to MIME multipart
messages by putting the original message in the first part of a new
multipart/mixed entity and the footer in the second part, with
Content-Disposition: inline. It works well in Thunderbird at least, i.e.
the footer is visible; the glitch is that the footer shows up as an
attachment as well, as does my PGP/MIME signature.
Would this
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
# *
2010 Dec 11
1
ajax :update option with Rails 3
With Rails 2.3.9, I could use the :update option with an ajax helper
if I just wanted to update the contents of an element. The controller
action looked liked this:
format.js { render :parital => ''_updated_object'', :layout => false }
I''m trying to figure out how to accomplish the same thing with Rails 3
ujs? I know I can accomplish this by having the controller
2009 Oct 12
1
ODBC with Snow Leopard
Can someone please post or refer to detailed instructions for getting
Rails going on Snow Leopard with ODBC to a MS SQL server? The Rails
Wiki is pretty bad and I can''t seem to get it going!
Thanks,
Tom
2010 Feb 23
2
Logging and Exceptions with Script Runner
I have cron jobs that run script/runner commands and I have two
questions:
1. Should logging be working when calling the logger methods from an
object within the script?
2. Should Exception Notification work when an exception occurs in the
script/runner?
Thanks!
Tom
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to
2010 Feb 09
1
Eager Loading
Is there a way to specify within a model that an association should
always be loaded. For example, the classic example from the API docs:
Post.find(:all, :include => :author)
What if I ALWAYS wanted the author to be loaded whenever a Post object
was created? So, in essence, Post.find(:all) would bring back each
post with the associated author object already loaded.
Thanks!
--
You
2009 Feb 23
6
background process
Hi all
I am working on a heavy engineering project. And the requirement is that
I needto do a lot of process before I store the data to the db.
Now the question is that I want to do the process that I am doing but I
want to do it in the background. What I actually mean to say is that..I
just want the user to get a msg that Records Saved. But in real I want
the process to go on in background.
2009 May 24
3
index.erb vs rhtml
I am a total Ruby/RoR n00b having just started reading the ''Ruby on
Rails Bible'' book two days ago. I''ve been trying to work out through
the introductory ''Your first ruby on rails application'' section, but
I''ve run into problems already!
The book goes on about creating the view templates and naming them
with the *.html.erb extension, but I get
2008 Mar 14
14
Facebooker MQ now on RubyForge
I don''t know if anyone is using this but I just fixed a bunch of bugs, some
big ones, and moved this project to RubyForge SVN servers.
So you can get it here now:
script/plugin install
http://facebooker-mq.rubyforge.org/svn/trunk/facebooker-mq/
This is working great for me on a couple of projects.
Here is the README
Updated: 3/14/2008
Purpose:
The purpose of FacebookerMQ is to
2007 Oct 05
1
RESTful Thinking
Okay, so I am trying to embrace the RESTful approach to web
application design and wanted to get some feedback from others. I
understand that it can be done different ways, I''m just interested to
see what real RESTful theorists think. Lets say that you have an
application that has lists and items on that list. I can see how both
lists and items can be set up as resources. Now, lets