Re: [Rails] strange behavior with active relation any? method

2013-04-04 Thread DALVIR SINGH KHOSA
hola por favor yo quiero baja rubyonrails-talk este ymail gracias On 03/04/2013, Colin Law clan...@googlemail.com wrote: On 3 April 2013 20:58, John Merlino stoici...@aol.com wrote: In console, I run the following and any? returns true: drivers = Driver.select(drivers.*,

[Rails] strange behavior with active relation any? method

2013-04-03 Thread John Merlino
In console, I run the following and any? returns true: drivers = Driver.select(drivers.*, drivers.id).joins([:reports, :driving_habits]).where(extract(MONTH FROM reports.time) = ? AND extract(YEAR FROM reports.time) = ?, 3, 2013).uniq.order(drivers.id asc).page(2).per(1) drivers.any? = true This

Re: [Rails] strange behavior with active relation any? method

2013-04-03 Thread Colin Law
On 3 April 2013 20:58, John Merlino stoici...@aol.com wrote: In console, I run the following and any? returns true: drivers = Driver.select(drivers.*, drivers.id).joins([:reports, :driving_habits]).where(extract(MONTH FROM reports.time) = ? AND extract(YEAR FROM reports.time) = ?, 3,

[Rails] Strange behavior, writing right to left

2012-02-21 Thread Marcin S
Hello, something strange happened to my app, and i can't fogure out whats it. for example when i type something in form field im wrting from right to left... when i have horizontal unordered list , the first element is most to the right too :/ does that ring a bell to anyone? -- You received

Re: [Rails] Strange behavior, writing right to left

2012-02-21 Thread Valery Kvon
On 21.02.2012, at 14:13, Marcin S wrote: Hello, something strange happened to my app, and i can't fogure out whats it. for example when i type something in form field im wrting from right to left... when i have horizontal unordered list , the first element is most to the right too :/

Re: [Rails] Strange behavior, writing right to left

2012-02-21 Thread Marcin S
2012/2/21 Valery Kvon adda...@gmail.com: On 21.02.2012, at 14:13, Marcin S wrote: Hello, something strange happened to my app, and i can't fogure out whats it. for example when i type something in form field im wrting from right to left... when i have horizontal unordered list , the first

[Rails] strange behavior database register rails 3 app

2011-11-28 Thread Angelo Cordova
hi people I have something strange here, and I would like to share it with you, to find a solution or at least, different opinion. I have a rails 3.0.9 app. I'm trying to store historical data so I made the following. I have 3 tables invoices, purchases, detail_purchases. I'm using

[Rails] Strange behavior with 3.1 activerecord tests

2011-07-21 Thread georgiev
I think this is strange (at least): in test/models/topic.rb line 52 Topic class declares: serialize :content But after running ARCONN=sqlite3 ruby -Itest test/cases/finder_test.rb I found this in the test/fixtures/fixture_database.sqlite3 database sqlite select content from topics; Have a nice

Re: [Rails] Strange behavior

2011-04-28 Thread Frederick Cheung
On 28 Apr 2011, at 03:22, Ernesto Rocha ernestorro...@gmail.com wrote: Guys, I'm using some AJAX on my application, but when protect_from_forgery is on sometimes it works and sometimes the user session is killed. Today i found out why. It happens the following: The

Re: [Rails] Strange behavior

2011-04-28 Thread Ernesto Rocha
How i escape it before the rails server process it ? Thanks, Ernesto On Thu, Apr 28, 2011 at 4:58 AM, Frederick Cheung frederick.che...@gmail.com wrote: On 28 Apr 2011, at 03:22, Ernesto Rocha ernestorro...@gmail.com wrote: Guys, I'm using some AJAX on my application, but when

[Rails] Strange behavior

2011-04-27 Thread Ernesto Rocha
Guys, I'm using some AJAX on my application, but when protect_from_forgery is on sometimes it works and sometimes the user session is killed. Today i found out why. It happens the following: The authenticity_token is sent correctly as you can see below, Started DELETE

[Rails] strange behavior of ActiveSupport::TimeZone

2011-04-14 Thread Aldo Italo
I was working with the method in_time_zone for the class ActiveSupport::TimeZone, when I found an unwanted behavior. I want to set my sights so that display the times for the main zone of Brazil (UTC-3). During the period not DST there is no problem. Instead to view the times for the period DST

[Rails] Strange behavior of rails - configuration ?, memory leak ?, system ? - error

2009-09-09 Thread Hans
System problems with rails ? I have dveloped a rather complex rails application with many gems and pluginsg. It worked fine until some days ago, when I started to get some unredicatble errors that I cannot understand When I use a certain function for the second time, the system responds with the

[Rails] Strange behavior of Source.column_names

2009-03-01 Thread Hans
I have a class named Source and a controller named SourceController etc. When I use Source.column_names in the view all names except names ending in _id is listed, although according to the documentation all names should be listed When I use Source.column_names in the source controller it

[Rails] Strange behavior when override a default attribute, maybe a bug?

2008-12-17 Thread Daniel Lopes
Hello, I have a strange behavior and don't know why. If I override attributes from AcitveRecord object like below: def end_date=(date) date = date.to_date unless date.blank? write_attribute(:end_date,date) end def end_date date = read_attribute(:end_date)

[Rails] Strange behavior of alias_method_chains

2008-11-23 Thread Alex Sonar
Greetings. I've got very strange behavior of alias_method_chains, and I hope someone will advise me. I have a rails 2.2.2 app created with #rails aliasApp , a class XYZ residing in app/helpers/xyz.rb: code class XYZ attr_accessor :name attr_accessor :value def initialize (a, b)