Frederick Cheung wrote:
> On 5 Nov 2008, at 09:09, MR Damien wrote:
>
>>>
>> convert a DateTime to Time.
> You can also use rails' date/time calculation things, for example
>
> t += 5.seconds
>
> does the right thing whether t is a Time or a DateTi
Frederick Cheung wrote:
> On Nov 4, 5:32�pm, MR Damien <[EMAIL PROTECTED]> wrote:
>> Time.zone = @time_zone # 'Paris'
>> code, it failed.
>>
> Are you sure your date is an instance of Time and not an instance of
> Date? (for Date - 1 means -1 day so -360
Hi all,
I am trying to change a date from a time zone to UTC.
First I set the time zone and then get its offset from UTC.
Then I am trying to change the time zone of my date by substracting the
offset but it failed.
---
Time.zone = @time_zone # 'Paris'
@offset = Time.zone.utc_of
OK I have uninstalled oracle_enhancer 1.1.8 and it's working again.
Seems to
be a bug in the 1.1.8 gem.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk
Hi,
I have some problems with rails and the oracle_enhanced adapter.
My rails application is working but not my rake task. It doesn't find
the oracle_enhanced adapter.
Please install the oracle_enhanced adapter: `gem install
activerecord-oracle_enhanced-adapter` (no such file to load --
active_
Borja Martín wrote:
> http://weblog.rubyonrails.org/2006/8/21/filtered-parameter-logging
>
> Regards
>
That worked, thanks !
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Group
Hi,
I am wondering if there is a way to secure rails application logs ?
My issue is that I discovered that form parameters are shown in clear in
the logs. So when users are authenticating, you see the login and
password in clear
Processing LoginController#index (for x at 2008-10-16 11:22:43
Hi all,
I have a basic model as follow, but when I try to query the database, I
get the following error:
'wrong number of arguments (0 for 2)'
I don't see any problem, I am becoming crazy o_O'
Migration
-
class CreateSubtasks < ActiveRecord::Migration
def self.up
create_table :s
> Migration
> -
> class CreateSubtasks < ActiveRecord::Migration
> def self.up
> create_table :subtasks do |t|
> t.string :hostname, :type
It seems that :type should not be used as a column name.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~
Thorsten Mueller wrote:
> I think you're missing the :per_page option
>
> @tasks = Task.paginate :page => params[:page], :per_page =>
> 50, :order => 'date_begin
> DESC'
>
> should work.
You win :)
I though this argument was facultative.
--
Posted via http://www.ruby-forum.com/.
--~--~
Hi,
I am trying to use the will_paginate helper.
I installed the gem and put "require 'will_paginate'" in the
environment.rb file.
In my controller
@tasks = Task.paginate :page => params[:page], :order => 'date_begin
DESC'
In my view
<%= will_paginate @tasks %>
The view doesn't show anyth
Hi all,
I am trying to save a DateTime in the database (oracle).
The field is "datetime" and the ruby object I am trying to save a
DateTime.
But once I save the object in the database, it's only saving the date
(day, month and year) but drop the time (hh:mm).
Did I miss something ?
--
Posted
12 matches
Mail list logo