<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.lang.ruby.rails.core">
    <title>gmane.comp.lang.ruby.rails.core</title>
    <link>http://blog.gmane.org/gmane.comp.lang.ruby.rails.core</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10668"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10667"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10665"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10652"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10639"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10638"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10637"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10633"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10632"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10631"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10629"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10625"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10618"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10612"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10609"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10603"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10602"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10592"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10591"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10586"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10668">
    <title>Problem with read_multipart when use from iPhone CFNetwork library</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10668</link>
    <description>
Hello.

iPhone use NSURLRequest, NSURLConnection to POST data to rails site.
Request is the next:
POST / HTTP/1.1
User-Agent: CFNetwork/330
Content-Type: multipart/form-data;
boundary=------580a9a040b19fc6621c596d9c40097f7
Accept: */*
Accept-Language: ru
Accept-Encoding: gzip, deflate
Content-Length: 295
Connection: keep-alive
Host: 192.168.0.20:8888



--------580a9a040b19fc6621c596d9c40097f7
Content-Disposition: form-data; name="authenticity_token"

86a4347fae09e23cf592eed6eb324cd61f3b9e5f
--------580a9a040b19fc6621c596d9c40097f7
Content-Disposition: form-data; name="picures[pic]"

111
--------580a9a040b19fc6621c596d9c40097f7--


There too mane \r\n after Host:192.168.0.20:8888, therefore rails
return "Bad content body".

Could somebody fix this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core&lt; at &gt;googlegroups.com
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe&lt; at &gt;googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


</description>
    <dc:creator>Ivan Evtuhovich</dc:creator>
    <dc:date>2008-12-03T14:40:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10667">
    <title>Possible issue with ActiveRecord::Dirty</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10667</link>
    <description>
I've been playing around with Dirty (change tracking) recently, and have 
a question about the field_changed? method:

  def field_changed?(attr, old, value)
    if column = column_for_attribute(attr)
      if column.type == :integer &amp;&amp; column.null &amp;&amp; (old.nil? || old == 0)
        # For nullable integer columns, NULL gets stored in database for 
blank (i.e. '') values.
        # Hence we don't record it as a change if the value changes from 
nil to ''.
        # If an old value of 0 is set to '' we want this to get changed 
to nil as otherwise it'll
        # be typecast back to 0 (''.to_i =&gt; 0)
        value = nil if value.blank?
      else
        value = column.type_cast(value)
      end
    end

    old != value
  end


I understand the reasoning behind the if...else statement, but what 
about the situation where you're changing a nullable integer column from 
0 to '0'?  In this case it will go into the if block, leave 'value' 
unchanged, and end up returning true - this seems incorrect to me! 

If the value.blank? test was moved to the end of the long if statement, 
the else block would be processed instead, so the value typecasted to 0, 
and return false, which is what I would expect (and (obviously) is what 
happens with non-nullable integer columns).

Am I missing something, or should I go ahead and write the patch?

Thanks all.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core&lt; at &gt;googlegroups.com
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe&lt; at &gt;googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


</description>
    <dc:creator>Ben Symonds</dc:creator>
    <dc:date>2008-12-03T12:08:00</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10665">
    <title>preloading has_one :through on a belongs_to</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10665</link>
    <description>
I ran across a small bug in the preloading code for has_one :through -  
see
http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1507
for more details.

+1s and/or feedback for the patch (against 2-2-stable) appreciated.

--Matt Jones
al2o3cr&lt; at &gt;gmail.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core&lt; at &gt;googlegroups.com
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe&lt; at &gt;googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


</description>
    <dc:creator>Matt Jones</dc:creator>
    <dc:date>2008-12-02T21:45:06</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10652">
    <title>$LOAD_PATH issue with Ruby 1.8.7 and Rails 2.2.2?</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10652</link>
    <description>
I started a thread over on rails-talk (http://groups.google.com/group/
rubyonrails-talk/browse_thread/thread/e799165794ea0052) but got no
responses, and am a little concerned this might be an issue with Ruby
1.8.7 and Rails 2.2.2, if only because I can't eliminate any other
possibilities yet.

Here's the story: shortly after upgrading my Slice server from Ubuntu
8.04 to 8.10 - which upgraded Ruby to 1.8.7 along the way - I found
that I couldn't start up my app anymore.  The app was frozen to 2.1,
and after realizing the Ruby upgrade, I re-froze to 2.2.  Still
wouldn't work; doing a script/about yields this error message:

/home/jcohen/sites/pw/current/vendor/rails/actionpack/lib/action_view/
template_handler.rb:11:in `initialize':ArgumentError: wrong number of
arguments (0 for 1)

After much trial and error, I came to notice that the $LOAD_PATH is a
bit messed up; the server app does not have the following in the
$LOAD_PATH like my local app does:

../vendor/rails/railties/builtin/rails_info/

Not sure why this would explain the error, but I'm trying to figure
out why I'd get that strange error when the only difference I can see
is a change from 1.8.6 to 1.8.7.  I've tried switching from frozen
Rails to 2.2.2 gems but it made no difference.

Any ideas/insights/suggestions would be very welcome, this is driving
me nuts; if this is surely not a Rails bug, then I'll continue on the
rails-talk list instead.

Thanks
Jeff
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core&lt; at &gt;googlegroups.com
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe&lt; at &gt;googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


</description>
    <dc:creator>Jeff</dc:creator>
    <dc:date>2008-12-02T00:46:46</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10639">
    <title>Extracted inspector, reaper, spawner into a plugin</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10639</link>
    <description>Re: github.com/rails/rails/commit/3b3c05

Says process scripts were extracted to github.com/rails/irs_process_scripts,
but that repo hasn't been pushed to. Did DHH forget?

What was the reason for this change; because it wasn't portable (unix only)?
Has it something to do with moving over to Rack? Default Capistrano recipe
kinda relies on these and I use them in most of my projects that aren't on
Passenger.

Thanks,
# Mislav

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core&lt; at &gt;googlegroups.com
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe&lt; at &gt;googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

</description>
    <dc:creator>Mislav Marohnić</dc:creator>
    <dc:date>2008-12-01T10:05:28</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10638">
    <title>True ActiveRecord result set iteration</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10638</link>
    <description>Hello,

For an internal project we were looking for a solution which extends 
ActiveRecord by an iterator function. Using find(:all) is no fun if you 
have to process some 10.000 records.

Until now there have been two ways of dealing with that scenario:
- write your logic a second times (e.g. use stored procedure)
- bet on AR plugins which work around that limitation by fetching IDs and 
processing them in groups, or by using :offset and :limit

Rewriting logic is something we wanted to avoid, and the plugins don't fully 
respect transactional contexts. So we started to implement our own true 
iterator support for AR. Our project is on Oracle, but in the meantime we 
have added support for MySQL. Probably other adapters can be extended 
easily, too. We also tried JRuby 1.1.x, which is sometimes faster than Ruby 
1.8.6, but a patch is needed to bring the Java part of the connection 
adapter into shape for a result set iteration.

Okay, you're about to ask: how does it work. Here we go:

MyTable.find_each_by_sql("some SQL here") { |my_table| ... }

MyTable.find_each(:all, :conditions =&gt; ..., 
   :include =&gt; ...) { |my_table| ... }

Attached you find the magic code which can be used as a plugin for Rails. 
When testing, please keep in mind that only Oracle and MySQL is fully 
supported. JDBC will take lots of RAM for large result sets until you have 
patched the JdbcConnectionAdapter.

Some figures with JRuby:
I've tested the code for an export of ~80.000 customer data records. 
Originally I couldn't run the export with heap space less than 2 GB (JRuby 
1.1.4 without extensive garbage collection). After having patched the 
connection adapter, it works with less than 128 MB heap space (JRuby 1.1).


I'd be happy if our idea would be picked up and AR would get these iterator 
methods integrated. I've seen lots of people asking for exactly this 
behavior. It's possible to implement, it's easy to implement, and IMHO it 
doesn't break the AR metaphor.

If you like the idea and want to send feedback, please CC me. I'm not 
subscribed to the list.

Regards,
Andreas
</description>
    <dc:creator>Andreas Gungl</dc:creator>
    <dc:date>2008-11-29T14:14:00</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10637">
    <title>belongs_to, has_many counter_cache</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10637</link>
    <description>
Hi,

I've started looking at the counter_cache implementation with the
original intention to have the increment, decrement update the model
in memory (without relying on a reload) to be called.

You can see a sample of the bug here: http://gist.github.com/30580.

While starting to look at this issue (my first real look at the rails
code base) I'm wondering if anyone has already done any initial
thinking of this issue or has an idea of what they would like to see
happen here.  In my initial thinking (I haven't looked at the
association proxy/collection enough) there could be a bi-directional
link for the has_many/belongs_to reflections/assocations.

Looking around I noticed a small bug with custom counter cache names
not be utilized in the record with the has_many association.  There is
currently no way for this association/reflection object to know about
the belongs_to settings where the counter_cache name is set.

An easy way to quickly solve this is to add a :counter_cache =&gt;
'custom_name' to the has_many method call.  What are your thoughts on
this proposed change for the has_many options?

Thanks,
Adam












--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core&lt; at &gt;googlegroups.com
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe&lt; at &gt;googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


</description>
    <dc:creator>adamc</dc:creator>
    <dc:date>2008-12-01T02:15:15</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10633">
    <title>Patch for adding option to disable STARTTLS for ActionMailer SMTP  connection</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10633</link>
    <description>
Hi all,

New in Rails 2.2 is a check to determine if the mail server responds
to enable_starttls_auto.  I submitted a patch for this Lighthouse
ticket: http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1491

This is my first Rails patch submission, so any comments, suggestions
or criticisms are greatly appreciated.

Thanks,
Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core&lt; at &gt;googlegroups.com
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe&lt; at &gt;googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


</description>
    <dc:creator>Dan Ryan</dc:creator>
    <dc:date>2008-11-29T04:40:16</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10632">
    <title>active record find conditions currently don't work correctly if an  array with a nil in it is used</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10632</link>
    <description>
I've created a patch in lighthouse for this and looking for a bit of
feedback.

Essential the problem is due to MySQL (and perhaps other database
vendors) of returning an empty result set for:

select * from somewhere where name in (null)

regardless of whether there are records with null entries in that
field. the version that does work is:

select * from somewhere where name is null

with active record this means that the following does not return the
expected records:

Event.find(:all, :conditions =&gt; {:venue_id =&gt; [1,2,nil]})

http://rails.lighthouseapp.com/projects/8994/tickets/1486-active-record-conditions-to-deal-with-nils-in-arrays

cheers,
n

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core&lt; at &gt;googlegroups.com
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe&lt; at &gt;googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


</description>
    <dc:creator>Nick Sellen</dc:creator>
    <dc:date>2008-11-29T02:17:03</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10631">
    <title>load_association_classes can block migrations (and slow down  script/runner)</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10631</link>
    <description>
Hello,

I ran into a problem recently that was previously reported as ticket
#802 [1]. The issue, briefly, occurs when a model definition runs a
class method (such as for a plugin) that checks table information. In
this case, loading the model requires the database table to already
exist. Running `rake db:migrate` in staging or production (anywhere
with config.cache_classes=true) will then try and eager load all
application classes, quickly failing with a table-not-found sort of
error.

Also, the eager loading seems pretty detrimental any time Rails is
booted from the console, such as via `script/runner` or `rake
db:migrate`. Not only can it blow up because of an unmigrated
database, but it incurs a pretty senseless performance hit for what
may be a simple task. This could really hit applications that use BJ
to run jobs in a full Rails environment, for example.

Does anyone have ideas how Rails might be smarter about when to eager
load?

-Lance

[1] http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/802
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core&lt; at &gt;googlegroups.com
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe&lt; at &gt;googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


</description>
    <dc:creator>cainlevy</dc:creator>
    <dc:date>2008-11-29T01:51:50</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10629">
    <title>Having class methods similar to instance methods for associations</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10629</link>
    <description>
Consider the following example.

class Project
has_many :tasks
end

class Task
belongs_to :project
end

&lt; at &gt;project = Project.find(1)

&lt; at &gt;project.task.find(1)
&lt; at &gt;project.task.build(params[:task])
&lt; at &gt;project.task.delete(params[:task_id])

In all these cases &lt; at &gt;project is needed. actually we need only
project_id for all the above things.

If the below given things are possible the would save us from the
query &lt; at &gt;project = Project.find(1)


Project.task.find(project_id,task_id)
Project.task.build(project_id,params[:task])
Project.task.delete(project_id,params[:task_id])

If this thing can be added to rails it would be great.

Regards,
Pankaj


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core&lt; at &gt;googlegroups.com
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe&lt; at &gt;googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


</description>
    <dc:creator>pankaj</dc:creator>
    <dc:date>2008-11-28T09:29:51</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10625">
    <title>Making assert_difference's default message more helpful</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10625</link>
    <description>
I like assert_difference, but I find the error messages slightly
unhelpful when I'm verifying more than one thing. Suppose something
should create both a new customer and a question, I could write

assert_difference 'Question.count' do
  assert_difference 'Customer.count' do
    ...
  end
end

Unlike a normal assertion the test line causing the failure will be a
few lines down the stack trace so it's not obvious to me with a quick
glance which of the assertions have failed (although this is fixable
by providing a custom failure message).

I'd rather write

assert_difference ['Question.count', 'Customer.count'] do
  ...
end

but if a failure occurs here then I genuinely don't know which
assertion has failed (unless I can remember that 'expected 4 got 3'
must be talking about the customer assertion because I remember the
number of records defined in the fixtures).

It seems to me that this could be made more helpful if the default
error message included the expression being evaluated eg something
along the lines of

Customer.count: expected 4, got 3

Thoughts?

Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core&lt; at &gt;googlegroups.com
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe&lt; at &gt;googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


</description>
    <dc:creator>Frederick Cheung</dc:creator>
    <dc:date>2008-11-27T11:38:15</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10618">
    <title>#to_json incompatibilities between ActiveSupport &amp; JSON gems</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10618</link>
    <description>Hi all

Just spotted a issue when using the json &amp; activesupport gems in the same
project. Below is a simple irb session showing the effect:

irb(main):001:0&gt; require 'json'
=&gt; true
irb(main):002:0&gt; Time.now.to_json( nil, 1 )
=&gt; "\"Wed Nov 26 15:56:02 +0200 2008\""
irb(main):003:0&gt; require 'activesupport'
=&gt; true
irb(main):004:0&gt; Time.now.to_json( nil, 1 )
ArgumentError: wrong number of arguments (2 for 1)
        from (irb):4:in `to_json'
        from (irb):4

Searching through the json_pure-1.1.3 code it seems the #to_json signature
is "def to_json(*)", and in activesupport's Time it's def to_json(options =
nil). Looking through the other activesupport extensions for JSON it seems
to be the same case.

Any suggestions? Any objections to me diving in and fixing it?

Best

</description>
    <dc:creator>Kenneth Kalmer</dc:creator>
    <dc:date>2008-11-26T14:08:35</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10612">
    <title>Handling cases when a timezone isn't applicable</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10612</link>
    <description>
I've run into the following issue:

My app has multiple users from multiple timezones. In the majority of
cases, I want datetime columns to take into account the user's
timezone. This works fine.

However, for *one* particular datetime field, I want users to enter
the arrival date &amp; time of a flight that is arriving into a country in
a different timezone to the user's timezone. Hence I don't want any
timezone conversion done on this particular field.

e.g. a user in Germany enters the data for a flight that will arrive
in New Zealand on January 1st at 2:00pm.  When a different user views
this data, I want it to say 2:00pm, regardless of the user's timezone.

I don't see that the datetime_select helper allows me to specify a
timezone for the time I am selecting; but anyway, I don't want the
user to have to enter a timezone.

I suppose the easiest (only?) solution is to store the data in
separate date and time fields in the database, and use separate
date_select and time_select helpers.

Any comments? Should this functionality be something that datetimes /
datetime_select should support?

Cheers
Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core&lt; at &gt;googlegroups.com
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe&lt; at &gt;googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


</description>
    <dc:creator>Dave Rothlisberger</dc:creator>
    <dc:date>2008-11-26T00:42:59</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10609">
    <title>GemPlugin install scripts</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10609</link>
    <description>
I'm writing a rails plugin, and figured I'd do it as a GemPlugin to be
ahead of the curve. I need to install some assets when the plugin is
installed in a rails app, but it would seem there's no mechanism by
which this occurs; install.rb is never run for a GemPlugin, unless I'm
missing something entirely.

I could check for the assets in init.rb and copy them over if they
don't exist, but that strikes me as poor behavior. I would guess the
thing to do would be to create a new gems task, gems:plugin:install or
similar, which would invoke the install scripts on all config.gems
that have been tagged with :plugin =&gt; true. Before I dive in and give
this a whirl, though, I figured I'd check with the dev team and see if
a. I've overlooked an existing installation mechanism, b. someone
already had something in the works, or even c. the GemPlugin idea was
still considered to be the future of plugins, or if yet another
strategy was being considered.

- donald

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core&lt; at &gt;googlegroups.com
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe&lt; at &gt;googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


</description>
    <dc:creator>Donald Ball</dc:creator>
    <dc:date>2008-11-25T19:59:53</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10603">
    <title>IP Spoofing Check patch</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10603</link>
    <description>

I've added a patch to the "'IP spoofing attack' breaks with some
proxies" discussion.

http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1200

The patch is a workaround to the issue, since the real problem is
poorly configured proxies, which can't be patched in Rails.  Our site,
which has a lot of WAP traffic, generates massive amounts of false
positive "Spoofing Checks."  To date, we've been monkey patching rails
to remove that check, but I think the change I've suggested is a
reasonable compromise.

Thanks,
Darren

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core&lt; at &gt;googlegroups.com
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe&lt; at &gt;googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


</description>
    <dc:creator>Darren</dc:creator>
    <dc:date>2008-11-22T18:27:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10602">
    <title>Git repos in vendor/gems</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10602</link>
    <description>
The discussion on #553 in Lighthouse got me thinking - would it be  
useful to enable
vendored gems to be git repos? WIth many gems moving to github, most  
have a working
copy of the gemspec in the repo.

For instance, a trunk copy of, say, attribute_fu could be dropped into  
vendor/gems with

git clone git://github.com/giraffesoft/attribute_fu.git vendor/gems/ 
attribute_fu

My first thought was that this might be very useful for gem  
developers...

It would be straightforward to implement, but does it sound useful?

Thanks,

--Matt Jones

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core&lt; at &gt;googlegroups.com
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe&lt; at &gt;googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


</description>
    <dc:creator>Matt Jones</dc:creator>
    <dc:date>2008-11-25T05:57:30</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10592">
    <title>New CSRF tokens</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10592</link>
    <description>
Hey guys,

I've just committed a change to the way we generate and use CSRF
tokens in rails[1].  Instead of all the stuff involving :secret and
session ids, we simply take advantage of ActiveSupport::SecureRandom.
 This simplifies the tests and code drastically, and shouldn't have
any negative impact on security.

Any feedback or reports of breakage greatly appreciated.

Also, thanks to Adam Barth and Colin Jackson of Stanford for taking
the time to verify the approach with me.

[1] http://github.com/rails/rails/commit/9fdb15e60f4d4e37916e5354c50d559773bbe014

</description>
    <dc:creator>Michael Koziarski</dc:creator>
    <dc:date>2008-11-23T14:07:03</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10591">
    <title>PluginManager: An extensible plugin management API for Rails</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10591</link>
    <description>
I've begun implementing an API for installing, updating and removing
plugins. This will allow for pluggable plugin managers, e.g. to
support other version control systems than those built into Rails.

I haven't got a lot of expertise in this area, so if anyone has some
good comments on the design/approach, please say so.

My current design is this:

A plugin manager, e.g. GitPluginManager, inherits from
PluginManager::Base. It can override #install, #update and #remove. It
hooks into a URI scheme (e.g. "git://...") by calling
PluginManager.add_plugin_manager(uri_scheme, manager).

PluginManager.install(uri[, options]) installs the plugin identified
by the URI. Behind the scene, a suitable plugin manager is found, and
its #install method is called.

PluginManager.update(name[, options]) updates the named plugin (e.g.
"acts_as_awesome"). I have not begun work on this yet.

PluginManager.remove(name[, options]) removes the named plugin. Behind
the scenes, PluginManager finds out which plugin manager has installed
the plugin using heuristics. So far, I've got support for removing
plain directories and git submodules (the latter needs extra cleanup
in .gitmodules). Subversion externals is planned.


The progress will be tracked in Lighthouse[1], and the code is
residing in a GitHub branch[2].

Again, all comments are welcome.


Cheers,
Daniel Schierbeck

 [1] &lt;http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/
tickets/1436&gt;
 [2] &lt;http://github.com/dasch/rails/tree/plugin-manager&gt;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core&lt; at &gt;googlegroups.com
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe&lt; at &gt;googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


</description>
    <dc:creator>Daniel Schierbeck</dc:creator>
    <dc:date>2008-11-22T20:47:01</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10586">
    <title>Allowing has_many to ignore foreign key</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10586</link>
    <description>
I'm working on a plug-in that will allow has_many associations to
ignore the foreign key. This may sound silly, but there are situations
where you'd like to join on something other than a single foreign key.
Right now, I can configure :conditions for the association, but these
are in addition to the existing foreign key.

My plug-in would do something akin to http://pastie.org/319143. This
is really just pseudo-code, I haven't tested it yet.

So, two questions:

- Am I the only one crazy enough to think something like this is
useful?
- How can a plugin monkey-patch ActiveRecord for this? Just override
the entire construct_sql method?

Thanks for any advice,

Norman



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core&lt; at &gt;googlegroups.com
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe&lt; at &gt;googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


</description>
    <dc:creator>Norm</dc:creator>
    <dc:date>2008-11-19T21:47:57</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10584">
    <title>Patch needs some love: SQL error in Oracle in HABTM association  preloading</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.rails.core/10584</link>
    <description>
Hi all,

To quote the radio, "Long time listener, first time caller." I just
put a ticket in Lighthouse with a patch to fix a fairly serious bug in
the AR habtm association preloading SQL.  It doesn't affect mysql or
postgres; only Oracle.  Essentially, the preloading generates
something like the following:

SELECT developers.*, t0.project_id as _parent_record_id
FROM developers
INNER JOIN developers_projects as t0 ON developers.id =
t0.developer_id
WHERE (t0.project_id IN (1,2))

The problem is that, in standard SQL, "INNER JOIN developers_projects
as t0" is invalid.  "INNER JOIN developers_projects t0" is the
standard notation.  Many dbs just deal with the extra "as" but Oracle
doesn't.

Looking for some +1 loving.

Thanks!

http://rails.lighthouseapp.com/projects/8994/tickets/1405-patch-fixed-non-standard-sql-generated-by-preloading-has_and_belongs_to_many-associations

Brent
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core&lt; at &gt;googlegroups.com
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe&lt; at &gt;googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


</description>
    <dc:creator>Foliosus</dc:creator>
    <dc:date>2008-11-19T19:10:50</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.lang.ruby.rails.core">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lang.ruby.rails.core</link>
  </textinput>
</rdf:RDF>
