<?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://permalink.gmane.org/gmane.comp.lang.ruby.rails">
    <title>gmane.comp.lang.ruby.rails</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails</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://permalink.gmane.org/gmane.comp.lang.ruby.rails/309139"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309138"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309137"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309136"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309135"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309134"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309133"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309132"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309131"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309130"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309129"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309128"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309127"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309126"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309125"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309124"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309123"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309122"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309121"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309120"/>
      </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://permalink.gmane.org/gmane.comp.lang.ruby.rails/309139">
    <title>Re: gemlock and rails version</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309139</link>
    <description>&lt;pre&gt;

You can just run "bundle update" to update all the gems to the latest
version.

You can also specify a specific version of a gem in your Gemfile with:
gem rails "3.2.3"

Running bundle install will then install that specific version.

You don't need to every really worry about touching the lock file - bundler
will handle that for you.



&lt;/pre&gt;</description>
    <dc:creator>Jeremy Walker</dc:creator>
    <dc:date>2012-05-26T00:40:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309138">
    <title>gemlock and rails version</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309138</link>
    <description>&lt;pre&gt;Trying to understand how the version of rails is handled in the gem file,
if you do:

gem "rails"

and call bundle, it from what I understand will pull down the latest stable
release right?


And then a gemlock file is created, which will contain the version number
so any future calls to bundle will get the same version (it will just be
ignored).

So if you want to upgrade you have to delete the gemlock line with rails
right?

&lt;/pre&gt;</description>
    <dc:creator>S Ahmed</dc:creator>
    <dc:date>2012-05-26T00:20:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309137">
    <title>Re: Can't get css to load in rails 3.2.3 development</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309137</link>
    <description>&lt;pre&gt;

On Friday, May 25, 2012 6:25:59 PM UTC-4, Tyler wrote:
didn't think I needed to run that in development mode. This app has never 
been deployed anywhere and so far has only been run in development mode. Do 
I need to run rake assets:precomplie even in development mode to get my css 
to work? 


&lt;/pre&gt;</description>
    <dc:creator>Vell</dc:creator>
    <dc:date>2012-05-25T22:30:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309136">
    <title>Re: Can't get css to load in rails 3.2.3 development</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309136</link>
    <description>&lt;pre&gt;

On Friday, May 25, 2012 6:07:56 PM UTC-4, Kleber Shimabuku wrote:
cache but the issue is still there. I decided to also try it in Firefox 
just to see if maybe Safari was acting up but this issue is also happening 
in Firefox as well.


&lt;/pre&gt;</description>
    <dc:creator>Vell</dc:creator>
    <dc:date>2012-05-25T22:26:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309135">
    <title>Re: Can't get css to load in rails 3.2.3 development</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309135</link>
    <description>&lt;pre&gt;Also if you have recently run "rake assets:precompile" (e.g. for Heroku 
deploy), that will take precedence.  In that case run "rake assets:clean" 
and clear your browser cache after each deploy.


On Friday, May 25, 2012 3:07:56 PM UTC-7, Kleber Shimabuku wrote:

&lt;/pre&gt;</description>
    <dc:creator>Tyler</dc:creator>
    <dc:date>2012-05-25T22:25:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309134">
    <title>Re: Can't get css to load in rails 3.2.3 development</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309134</link>
    <description>&lt;pre&gt;Hi,

Are you using cache? Try to clean up your web browser cache.


Em sexta-feira, 25 de maio de 2012 18h57min04s UTC-3, Vell escreveu:

&lt;/pre&gt;</description>
    <dc:creator>Kleber Shimabuku</dc:creator>
    <dc:date>2012-05-25T22:07:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309133">
    <title>Can't get css to load in rails 3.2.3 development</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309133</link>
    <description>&lt;pre&gt;Hello all,

I have been struggling all day with getting css files to load in my 
application. I am attempting to use the rails-ui-themes gem to help style 
my application but right now just getting simple css code to render is not 
working. 

I have tried removing the require_tree and including the file individually 
and it still does not seem to work.  When I look at the source of my html, 
every css file is loaded including the application.css file but nothing 
seems to happen.

I was wondering if anyone can tell me what I am missing. 

At this moment here is what I have as my configuration:

app/assets/stylesheets/application.css:

 *= require_self
 *= require_tree .
 *= require jquery-ui/overcast

layouts/application.html.erb:

  &amp;lt;%= stylesheet_link_tag    "application", :media =&amp;gt; "all" %&amp;gt;
  &amp;lt;%= javascript_include_tag "application" %&amp;gt;

some css I have tried to render:
&amp;lt;div class='ui-corner-all'&amp;gt;
.....
&amp;lt;/div&amp;gt;

or 

&amp;lt;div id='user_nav'&amp;gt;
....
&amp;lt;/div&amp;gt;

The simple css that I tried to render is

#user_nav{
float&lt;/pre&gt;</description>
    <dc:creator>Vell</dc:creator>
    <dc:date>2012-05-25T21:57:04</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309132">
    <title>Re: create folders and files through linux system commands in rails application</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309132</link>
    <description>&lt;pre&gt;
I presume the files are on the server.  For the system stuff have a
look at FileUtils (standard ruby library).  That won't do the
drag/drop of course, which I presume you want to do in the browser.
It sounds a rather strange requirement, using browser on client to
manipulate files/folders on the server.

Colin

&lt;/pre&gt;</description>
    <dc:creator>Colin Law</dc:creator>
    <dc:date>2012-05-25T13:38:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309131">
    <title>Re: Migrating App From 3.0 to 3.2.3 with ruby 1.9.3</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309131</link>
    <description>&lt;pre&gt;Based on the number of changes that happened in both Ruby 1.9.* and
Rails 3.1/3.2, I'd suggest doing both upgrades separately. One thing
you can do is "bundle exec rake rails:update" to get the builtin
updates. One thing you can also do is create a fresh Rails 3.2.3 app
and compare the framework's files to yours.

On May 24, 9:10 am, The Rising Sword &amp;lt;sant...-UOy5v6Pi2oC1RDyGVJV6aQ&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>tiegz</dc:creator>
    <dc:date>2012-05-25T13:25:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309130">
    <title>Re: Help with functional test</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309130</link>
    <description>&lt;pre&gt;Hi,

I've changed my test a little bit so the only error I getting is the 
following one:

Failures:

  1) PostsController#create when logged in failure should render the NEW 
template
     Failure/Error: response.should render_template :new
       expecting &amp;lt;"new"&amp;gt; but rendering with &amp;lt;""&amp;gt;
     # ./spec/controllers/posts_controller_spec.rb:70:in `block (5 levels) 
in &amp;lt;top (required)&amp;gt;'

Finished in 1.27 seconds
7 examples, 1 failure


And the modified test:

    describe '#create' do
      
      &amp;lt; at &amp;gt;attributes = { post: { id: 1, title: 'New post', description: 
'Please add some text here', location: 'Anywhere' } }

      context 'when logged in' do 

        before do 
          &amp;lt; at &amp;gt;user = FactoryGirl.create(:user, email: 'random-hcDgGtZH8xNBDgjK7y7TUQ&amp;lt; at &amp;gt;public.gmane.org')
          sign_in &amp;lt; at &amp;gt;user 

          &amp;lt; at &amp;gt;post = mock(Post, 
                      title: 'New post', 
                      description: 'Please add some text here', 
                      location: 'Anywhere')

          # expected
          controll&lt;/pre&gt;</description>
    <dc:creator>Kleber Shimabuku</dc:creator>
    <dc:date>2012-05-25T12:25:17</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309129">
    <title>Re: Newbie question - how to resolve 'wrong status line' error</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309129</link>
    <description>&lt;pre&gt;

On Thursday, 24 May 2012 06:13:42 UTC-4, iDev wrote:
Looks like you've hit this issue:

http://stufftohelpyouout.blogspot.com/2010/05/how-to-fix-nethttpbadresponse-wrong.html

Adding the use_ssl option, as that example does, should sort things out.

BTW, you may want to look into using one of the existing OAuth gems - there 
aren't many good reasons to be re-inventing this particular wheel.

--Matt Jones 

&lt;/pre&gt;</description>
    <dc:creator>Matt Jones</dc:creator>
    <dc:date>2012-05-25T12:19:24</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309128">
    <title>Re: Rails Console Sandbox : .save | .create</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309128</link>
    <description>&lt;pre&gt;Thank you Fred !

Meanwhile I simply realized that I had to submit a new user with all 
attributes and not just 2 :
back.

Thanks for the user2.errors hint...

Francesco

On Friday, May 25, 2012 10:16:59 AM UTC+2, Frederick Cheung wrote:

&lt;/pre&gt;</description>
    <dc:creator>Francesco DG</dc:creator>
    <dc:date>2012-05-25T11:56:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309127">
    <title>Re: Updating attribute on dependent of many-to-on association</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309127</link>
    <description>&lt;pre&gt;Colin,

Thanks for taking a look at this.  After a good night's sleep, I came back 
to this, and the problem appears to be
 that  I need to self.reload after the loop.  I believe this is because of 
the nature of the association, which depend on whether 
debit is true or false, and I believe need re-reading from the db after the 
e.save.

For anyone interested, here is what fixed it:

  if num_nils == 1 
      # Set the sole nil entry to amount needed to balance Transaction 
      plug = debit_total - credit_total 
      entries.where(:amount =&amp;gt; nil).each do |e| 
        e.amount = plug.abs 
        e.debit = (plug &amp;lt; 0) 
        e.save 
      end
      reload    # &amp;lt;= New line
    end 

Th

On Friday, May 25, 2012 2:35:08 AM UTC-5, Colin Law wrote:

&lt;/pre&gt;</description>
    <dc:creator>ddoherty03</dc:creator>
    <dc:date>2012-05-25T11:55:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309126">
    <title>Re: Declaring list of string constnats for app</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309126</link>
    <description>&lt;pre&gt;Well this is what it says in config/application.rb

    # Settings in config/environments/* take precedence over those 
specified here.
    # Application configuration should go into files in config/initializers
    # -- all .rb files in that directory are automatically loaded.

And this is what I've done... created a file in the initializers directory.

On Thursday, May 24, 2012 11:05:20 AM UTC-4, Ruby-Forum.com User wrote:

&lt;/pre&gt;</description>
    <dc:creator>Dave Geller</dc:creator>
    <dc:date>2012-05-25T11:52:18</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309125">
    <title>Connect reset by peer error</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309125</link>
    <description>&lt;pre&gt;

Hi all

I'm getting a 'Connection reset by peer' while getting an access token during oAuth from a third party API. Here's the code snippet: 

def accesstoken
  &amp;lt; at &amp;gt;code = params[:code]
   
   url = URI.parse('access token request url')
   req = Net::HTTP::Post.new(url.path)
   req.set_form_data({'auth_code' =&amp;gt; &amp;lt; at &amp;gt;code, 'client_id'=&amp;gt;'my_client_id', 'client_secret'=&amp;gt;'my_secret_key'}, ';')
   res = Net::HTTP.new(url.host, url.port).start { |http| http.request(req) }
   case res
   when Net::HTTPSuccess, Net::HTTPRedirection
      # OK
    else
     # res.error!
    end

    render :text =&amp;gt; &amp;lt; at &amp;gt;code.inspect

end

I get a valid authorization code but unable to proceed to get access token due to above error. The third party API has to return a response in json format.
Any help is much awaited and appreciated!

&lt;/pre&gt;</description>
    <dc:creator>iDev</dc:creator>
    <dc:date>2012-05-25T10:38:04</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309124">
    <title>Re: Declaring list of string constnats for app</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309124</link>
    <description>&lt;pre&gt;Ok, thanks for the advice,

The problem i have is that I want to use these strings in the Player 
model, but also many other places. There's a statistics_controller thats 
going to need it, and potentially other controllers / models that are 
going to use the database of stats to decide things.

Not being a super-fluent Ruby developer, how do these symbols work?

if I declare : HAS_POSSESSION = 'player has possession' somewhere, does 
this enable the symbol :has_posession, if so what's the point of using 
the symbol, why don't i just use HAS_POSSESSION?

or is it that I don't need to declare anything, and I just use 
:has_possession, which equates to "has possession", which seems odd!

Just to be clear, I've got a database of statistics, with an attribute 
called action. This action describes what happened, ie one stat.action = 
"player has possession", whereas another stat.action = "player was 
tackled". It's these strings ("player has possession" / "player was 
tackled") that I want to store in a list.

&lt;/pre&gt;</description>
    <dc:creator>Michael Baldock</dc:creator>
    <dc:date>2012-05-25T08:57:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309123">
    <title>Re: create folders and files through linux system commands in rails application</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309123</link>
    <description>&lt;pre&gt;Hi Rajesh

What exactly do you mean by "drag and drop support"?

On Fri, May 25, 2012 at 12:22 PM, Rajesh Reddy &amp;lt;rajeshnecg-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:




&lt;/pre&gt;</description>
    <dc:creator>azizmb.in</dc:creator>
    <dc:date>2012-05-25T08:16:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309122">
    <title>Re: Rails Console Sandbox : .save | .create</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309122</link>
    <description>&lt;pre&gt;

On May 24, 2:58 pm, Francesco De Grandi &amp;lt;fdgar...-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:

Sounds like you've got a failing validation - user2.errors will tell
you which validations (if any) have failed.

Fred

&lt;/pre&gt;</description>
    <dc:creator>Frederick Cheung</dc:creator>
    <dc:date>2012-05-25T08:16:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309121">
    <title>Re: Custom sort scope for ActiveRecord search</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309121</link>
    <description>&lt;pre&gt;

On May 25, 8:48 am, eugene miretsky &amp;lt;eugene.miret...-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:

This kind of stuff never works very nicely in my past experience - you
end up having to fetch "too many" records from one of your datasources
because you don't know what ordering the other one is going to impose.
If you're using will paginate you should be able to paginate arrays if
you do require 'will_paginate/array'

Fred

&lt;/pre&gt;</description>
    <dc:creator>Frederick Cheung</dc:creator>
    <dc:date>2012-05-25T08:13:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309120">
    <title>Custom sort scope for ActiveRecord search</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309120</link>
    <description>&lt;pre&gt;Hi,

Here is my problem. I store some of my data in a MYSQL DB and some of it in 
Redis. In my search I need to be able to combine results from both. 
Right now my code looks like this:
scope = User.scoped({})
cope = scope.where("users.gender = ?", gender)
cope = scope.where("users.age = ?", age)
etc.. 
I want to take the result and either sort it using the data that's in 
Redis. It is possible do create a scope for that? 
The best I could come up with was users = User.search().sort_by {|user| 
...} . The problem with is is that it returns an array instead of an active 
record  associations, so now pagination doesn't work. 

Regards,
Eugene 

&lt;/pre&gt;</description>
    <dc:creator>eugene miretsky</dc:creator>
    <dc:date>2012-05-25T07:48:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309119">
    <title>create folders and files through linux system commands in rails application</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309119</link>
    <description>&lt;pre&gt;Hi,

can anyone suggest me how to create folders and files through linux system
commands in rails application and to provide drag and drop support to them


Thanks,
Rajesh

&lt;/pre&gt;</description>
    <dc:creator>Rajesh Reddy</dc:creator>
    <dc:date>2012-05-25T06:52:10</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.lang.ruby.rails">
    <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</link>
  </textinput>
</rdf:RDF>

