Displaying 20 results from an estimated 4000 matches similar to: "to_formatted_s(:rfc822) doesn''t work"
2006 Mar 23
5
Custom date format
Hi, I''ve followed these directions :
http://railswiki.pdxruby.org/HowToDefineYourOwnDateFormat.html
It seems pretty straightforward but obviously it doesn''t work for me...
article.date_edited.to_formatted_s(:my_format_1)
produce a default formatted date, not the one I''ve defined in
environment.rb :
ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!(
2006 Jul 17
2
european date format
hi, overhere users go nuts if they have to enter the date in iso format,
so i have to make my applications in such a way that not only dates are
displayed in the "dd-mm-yyy" format but also can be entered in that way.
somewhere i found this code to put in the environment script:
ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.update(
:default => ''%d/%m/%Y
2009 Jun 15
1
calendardateselect problem
I am using http://code.google.com/p/calendardateselect/ for my date
time picker.
I am using dd.mm.yyyy format (:finnish)
and i am using
ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!
(:default => "%d.%m.%Y")
ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!
(:default => "%d.%m.%Y %H:%M")
in my enviroment. Everything is working
2007 Nov 02
0
DATE_FORMATS and functional tests
I have the following in my environments.rb file:
my_formats = { :msc => ''%d %b %Y %I:%M %p'', :msc_short => ''%d %b %Y'' }
ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!
(my_formats)
ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!
(my_formats)
With this, things like
2008 Apr 04
0
Date.to_s format with time_ago_in_words
Hello,
Following this post''s instructions (http://railspikes.com/tags/date) I''m
trying to define a Date format like this:
ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.update(:date_ago
=> lambda { |date| date.strftime(''%a, %d %b, %I:%M%p'') + '' ('' +
time_ago_in_words(date) + '')'' } )
But it keeps giving
2012 Jun 21
6
where do I report this DateTime bug?
I have isolated what appears to be a bug in the Rails extensions to
DateTime, but I don''t know where to report it.
I have a standalone file to demonstrate the bug, but the punch line is
that this code:
TestRecord.create!(:f_datetime => (expected = DateTime.jd(2000000)))
found = TestRecord.first.f_datetime
puts("expected == found => #{expected == found}")
2006 Oct 09
1
error running 'ruby script/console' => "uninitialized constant RAILS_ROOT" ??
Hi,
Anyone suggest why when I try to run the console via ''ruby script/console'' I
get the following "uninitialized constant RAILS_ROOT" ??
Error:
================================
V:\Source\testapp>ruby script\console
Loading development environment.
./script/../config/../config/environment.rb:3:NameError: uninitialized
constant RAILS_ROOT
2004 Apr 03
0
Bug fix - message/rfc822 attachments
Greetings
I've attached a patch that fixes a bug in Dovecot relating to rfc822
attachments. This problem shows up in Mulberry (which hammers the IMAP
protocol more than most!).
The problem is that FETCH BODY[n], where "n" is the number for the
message/rfc822 part, returns the wrong information. It returns the message
without the headers, whereas it should return the entire
2006 May 10
2
Rails, Postgres and the Date Field.
Hi guys,
I''m having problems with my app. First of all, I created a date_select
with the code:
<%= date_select(''contact'', ''birthday'', :order => [''day'',''month'',''year'']) %>
In the contacts table, I create a date field:
birthday DATE
When I save the values goes wrong into the database.
2009 Mar 22
0
DhtmlCalendarHelper
Hi RoR community,
for my webapp I need the german date format.
To display the german date format like 31.12.2009, I implemented in the
environment.rb following:
ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!(
:default => '' %d.%m.%Y ''
)
If I use the DhtmlCalendarHelper "calendar_field" the date in edit-mode
is diplayed in german
2006 Apr 13
5
Changing class data in environmrnt.rb
Greetings,
I have a class that should allow you define some default values. It
seems to make the most sense to do this environment.rb since its the
default app configuration. It currently looks like this:
Settings::DEFAULT_VALUES.merge!({
:setting_one => ''foo'',
:settings_two => ''bar''
})
The problem is in development mode, the values are only
2008 Nov 27
1
Can I import RFC822 messages into Dovecot from file system
I'm returning to qmail and dovecot after having suffered a complete failure
with a different mail system and I'm now trying to figure out the easiest
way to recover our messages from the failed system.
The messages are stored as RFC822 in individual files and I can easily
identify which message belongs to whom. I have qmail and dovecot configured
to use Maildir format.
I know I can
2004 Oct 01
1
Dovecot/IMP Bug with RFC822.SIZE and BODYSTRUCTURE
Ok, I have narrowed my IMP/Dovecot attachment problem down to what I
think is a bug in Dovecot. The test that follow are performed on
0.99.11.
When you download an attachment in IMP it uses the php function
imap_fetchbody() which contacts the IMAP server and retrieves just the
mime chunk you are looking for.
It does this by first fetching some information about the email, and
then grabs the
2006 Jan 07
1
How to DRY with Fixtures (helper or extend Time class, how)?
I have a test/fixtures/users.yml like so:
apa:
id: 1
username: apa
[...]
created_at: <%=Time.now.strftime("%Y-%m-%d %H:%M:%S")%>
updated_at: <%=Time.now.strftime("%Y-%m-%d %H:%M:%S")%>
I don''t like how I''m repeating myself with the strftime bit.
Is there some shorter Time method to format time for a (MySQL) datetime
field that
2011 Jan 16
1
unknown MIME type 'message/rfc822' - skipping
Is it possible to omindex message/rfc822 type files?
I am running omega version 1.2.4 in ubuntu 10.10. installed the
backported ppa apt xapian-omega 1.2
Would be nice if I could search the maildir (/var/www/maildir) emails
through web interface.
I can index them fine using `mu' (came with ubuntu pkg maildir-utils)
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it
2004 Jul 29
2
Problems compiling PHP --with-imap - can't find rfc822.h
I'm trying to add webmail (IMP/HORDE) to my OpenBSD 3.5 mail server
(Procmail/Amavid/SA/DCC/Razor/Dovecot 0.99.10.7), which means adding
PHP and several other libraries.
I'm building PHP 4.3 from the ports tree and, as per the IMP/HORDE
readme files, added --with-imap to the makefile. Makeing PHP barfs
with a "Cannot find rfc822.h. Please check your IMAP installation."
error. I
2019 Mar 27
0
v2.2.27 Panic: file rfc822-parser.h: line 23 (rfc822_parser_deinit): assertion failed: (ctx->data <= ctx->end)
On 27 Mar 2019, at 1.25, Jason Lewis via dovecot <dovecot at dovecot.org> wrote:
>
> Hi Aki,
>
> debian jessie backports has been moved to archive.debian.org and
> initially I was unable to install dovecot-dbg because of that. But I've
> managed to resolve that issue now.
>
> This was the command I ran:
> doveadm -D -f flow fetch imap.envelope mailbox
2019 Mar 28
1
v2.2.27 Panic: file rfc822-parser.h: line 23 (rfc822_parser_deinit): assertion failed: (ctx->data <= ctx->end)
Thanks Timo.
Given the age of these dovecot packages, and this being on debian
oldstable, what should we do next? I'm inclined to just delete the email
in question and move on.
Jason
Timo Sirainen wrote on 28/3/19 12:16 am:
> On 27 Mar 2019, at 1.25, Jason Lewis via dovecot <dovecot at dovecot.org> wrote:
>>
>> Hi Aki,
>>
>> debian jessie backports has been
2005 Dec 28
4
undefined method `include''
I''m getting this error in Rails:
undefined method `include'' for
#<MenusController:0x408efd1c>
The offending code is:
require "rexml/document"
include REXML
I see there may be a problem with GCC 4 on OSX, but
I''m using Redhat with GCC 3.2.
http://weblog.rubyonrails.org/articles/2005/12/22/is-gcc-4-0-incompatible-with-ruby-on-os-x-and-elsewhere
2006 Jan 11
2
map.connect - redirect with 302?
Is it possible to write map.connect rules in route.rb
that externally redirect (HTTP 302) to other actions?
thanks
csn
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com