Displaying 6 results from an estimated 6 matches for "o0q4q1ys".
2008 Feb 10
4
method from string?
I am sure this is doable but I can''t find a specific example and my
brain is frazzled.
Basically, I am doing a whole load of in-place editing and need
methods to support the updates.
Here is what I am doing now:
def set_blog_website
faq = Faq.find(params[:id])
faq.blog_website = params[:value]
faq.save!
@faq = faq
do_ret
end
Surely there is a generic way I can
2008 Sep 22
8
TimeZone daylight savings time problems
Here is the following from my console:
>> Time.now
=> Mon Sep 22 11:33:34 +0200 2008
>> Time.now.utc_offset
=> 7200
>> TimeZone[Time.now.utc_offset]
=> #<TimeZone:0x11aea90 @tzinfo=nil, @utc_offset=7200, @name="Athens">
>> Time.now.in_time_zone(TimeZone[Time.now.utc_offset])
=> Mon, 22 Sep 2008 12:34:22 EEST +03:00
(I am in Spain - CET - and
2008 Oct 10
1
emails from rake not being sent as html
I have an email that is sent from either a rake task or from a user
action. When it is sent from the user action it gets delivered as
nicely formatted html. When sent from the rake task it is text, with
all the html code visible.
Is there a setting I am missing?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2008 Sep 17
0
permalink_fu and classes with different primary_key than id?
Has anyone else had problems with this scenario?
class Team < ActiveRecord::Base
# Primary key
self.primary_key = ''team_id''
has_many :players, :foreign_key => :team_id
has_permalink :city, :param => true
end
I am getting all kinds of trouble - that goes away if I comment out
the has_permalink declaration.
With PermalinkFu:
>> fs = Team.new
=>
2008 Sep 23
0
exception_logger and protect_from_forgery
I am having a problem using the exception_logger plugin when I have
protect_from_forgery enabled.
Here is the line from application.rb:
protect_from_forgery :secret => ''xxxx''
But I am getting:
No :secret given to the #protect_from_forgery call. Set that or use a
session store capable of generating its own keys (Cookie Session
Store).
Now, if I remove the secret and try and
2008 May 15
6
mysql errors in production after upgrading to rails 2
I''m trying to upgrade our production server to rails 2. I''ve already
done this on my dev machine (osx) and it worked fine. But now, with
everything at the same version, but running in production mode, the
production machine - a CentOS5 box - is getting loads of:
ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to MySQL
server during query
errors.
i"ve looked