<?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/318966"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318965"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318964"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318963"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318962"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318961"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318960"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318959"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318958"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318957"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318956"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318955"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318954"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318953"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318952"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318951"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318950"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318949"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318948"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318947"/>
      </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/318966">
    <title>feature requests/voting/tracking solution</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318966</link>
    <description>&lt;pre&gt;Hello,
I am looking for a good solution for a community development project. I
want users or our application to be able to create feature requests,
vote on them and track progress over time. I have done a little research
found this to be closest to what I am looking for.

http://feedback.codecollab.com/ from https://www.uservoice.com/

This solution is commercial and I am looking for something similar in
Ruby on Rails, preferably free and open source.
Any suggestions please. It could be a self-hosted solution or web
service.

&lt;/pre&gt;</description>
    <dc:creator>slavix slavix</dc:creator>
    <dc:date>2013-05-23T23:04:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318965">
    <title>Re: First capistrano deploy question</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318965</link>
    <description>&lt;pre&gt;

On Wednesday, May 22, 2013 1:26:06 PM UTC-4, Alfred Nutile wrote:

You need to uncomment the lines at the end starting with "namespace :deploy 
do".  It touches the file restart.txt in the tmp folder (changing the 
modified date/time stamp).  Passenger checks the date/time stamp on that 
file to see if any changes have been made. 

&lt;/pre&gt;</description>
    <dc:creator>mike</dc:creator>
    <dc:date>2013-05-23T22:20:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318964">
    <title>Re: Re: How to do it the rest way Question from fledgeling Ruby programmer</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318964</link>
    <description>&lt;pre&gt;Colin Law wrote in post #1109983:

Well technically there are still only two options from inside a web 
browser. Still can't fathom why that hasn't been fixed in modern 
browsers. :)

&lt;/pre&gt;</description>
    <dc:creator>Robert Walker</dc:creator>
    <dc:date>2013-05-23T22:11:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318963">
    <title>Re: Does someone there experience with resque worker and appfog?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318963</link>
    <description>&lt;pre&gt;
Suggested:  http://www.catb.org/esr/faqs/smart-questions.html

&lt;/pre&gt;</description>
    <dc:creator>Hassan Schroeder</dc:creator>
    <dc:date>2013-05-23T22:05:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318962">
    <title>Re: Re: How to do it the rest way Question from fledgeling Ruby programmer</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318962</link>
    <description>&lt;pre&gt;
Yes, I was speaking loosely (which is a cardinal sin) and using POST
to mean one of the set of non-GET verbs.  I am showing my age, going
back to the days when there were only the two options.

Colin


&lt;/pre&gt;</description>
    <dc:creator>Colin Law</dc:creator>
    <dc:date>2013-05-23T20:55:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318961">
    <title>Re: How to do it the rest way Question from fledgeling Ruby programmer</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318961</link>
    <description>&lt;pre&gt;Colin Law wrote in post #1109974:

Don't you mean PATCH/PUT rather than POST? POST would indicate you are 
creating a new flight on the collection of flights, rather than changing 
the state of an existing flight. Sure POST would work (and technically 
PATH/PUT is simulated using a POST), but using PATCH/PUT would be more 
conventional in a RESTful application.

I agree it seems to be overkill in this case to create a separate 
controller. I see nothing wrong with adding a "cancel" method to the 
flight controller.

Having additional methods in a controller isn't un-RESTful IMHO. You 
have a URL (http://example.com/flights/1/cancel) that represents a 
change (PATCH/PUT) to an existing resource. What's un-RESTful about 
that?

http://guides.rubyonrails.org/routing.html#adding-more-restful-actions

If I were designing a system like this I would most likely implement my 
"Flight" model as a finite-state machine and use additional controller 
actions (along with the 7 default ones)  to transition the flights 
th&lt;/pre&gt;</description>
    <dc:creator>Robert Walker</dc:creator>
    <dc:date>2013-05-23T20:30:39</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318960">
    <title>Re: How to do it the rest way ? Question from fledgeling Ruby programmer</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318960</link>
    <description>&lt;pre&gt;
There is no need for a separate controller, one way would be to handle
it within the flights controller Edit action, using a url parameter or
the Submit button name to indicate that cancel is required rather than
edit.
However, REST should not be treated as a religion to which all
requirements must bow.  I would say there is nothing wrong with what
you have done (provided that you have used a POST to do it).

Colin

&lt;/pre&gt;</description>
    <dc:creator>Colin Law</dc:creator>
    <dc:date>2013-05-23T19:27:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318959">
    <title>Re: Re: Skip index in array.each_with_index loop</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318959</link>
    <description>&lt;pre&gt;
I don't think the OP wanted 20 and 40 which is why he is adding 10
rather than 9.  I suspect the example is just an example and does not
represent the actual code he wants, in particular there is likely to
be an else block, and it that which he wishes to skip.  I think the
answer to his question, however, is that there is no way to change the
index within the block in order to skip elements, so he will have to
use one of the suggestions made by others.

Colin


&lt;/pre&gt;</description>
    <dc:creator>Colin Law</dc:creator>
    <dc:date>2013-05-23T19:08:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318958">
    <title>How to do it the rest way ? Question from fledgeling Ruby programmer</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318958</link>
    <description>&lt;pre&gt;Hi!
Reading "Rails For .NET Developers" i started to consider the example of 
building the flight system with cancellations. So, I've generated flights 
scaffold and passengers scaffold and I'd like that we could cancel the 
flight and then, each of the passengers would be informed about that fact. 
So, firstly i've written a non-rest code and simply added "cancel_flight" 
method to my FlightsController and generated required routes in routes.rb. 
And it looks like this:

to do)

It's all working, but then I tried to do it the rest way. So, i considered 
added new resource called FlightCancellation, but I don't want it to 
represent any database model. So it looks like this

And then in my FlightCancellations controller, I've something like this


class FlightCancellationsController &amp;lt; ApplicationController

  

  def create

    cancelation = params[:flight_cancelation]

    flight = cancelation.flight

    

    flight.cancel_flight

    

    redirect_to :back, :notice =&amp;gt; 'Flight was cancelled'

    

  en&lt;/pre&gt;</description>
    <dc:creator>Mateusz Urban</dc:creator>
    <dc:date>2013-05-23T11:56:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318957">
    <title>Does someone there experience with resque worker and appfog?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318957</link>
    <description>&lt;pre&gt;I couldn't run resque workers in appfog (RoR+Resque+Appfog)

&lt;/pre&gt;</description>
    <dc:creator>bh</dc:creator>
    <dc:date>2013-05-22T15:30:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318956">
    <title>First capistrano deploy question</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318956</link>
    <description>&lt;pre&gt;Seems like it went well. The site is there. And when I do an update and 
push to it with git and run cap deploy again I can see my edits in a file 
on the server but not on the webpage.
For example
if I go into the folder current and run "grep -rn 'testingcapdeploy1' *"

I get 

app/views/projects/show.html.erb:5:&amp;lt;!--testingcapdeploy1--&amp;gt;

but if I visit the page that change is not seen in the actual page code.

It is an apache passenger setup and otherwise works okay though soon I will 
switch to nginx.

Thanks
Al

my cap deploy is below

#$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib 
directory to the 
require 'rvm/capistrano'  # Add RVM integration
require 'bundler/capistrano'  # Add Bundler integration

ssh_options[:forward_agent] = true
set :deploy_via, :remote_cache
#set :use_sudo, false
load 'deploy/assets'

set :application, "alsstuff2"
set :user, "railsadmin"
set :deploy_to, "/var/www/#{application}"

set :repository, "file:///home/deploy/git/alsBlogRails.git/"
set :local_rep&lt;/pre&gt;</description>
    <dc:creator>Alfred Nutile</dc:creator>
    <dc:date>2013-05-22T17:26:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318955">
    <title>Re: Skip index in array.each_with_index loop</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318955</link>
    <description>&lt;pre&gt;
On 2013-May-23, at 05:24 , Ajit Teli wrote:


You need to think about what you really need to do, look at the options to use select or reject/delete_if, or take the time to understand what next does. Of course, you don't seem to have even tried to run your code since your output lacks "0 at 0".

-Rob

For example:

irb2.0.0&amp;gt; arr = (0..50).to_a
#2.0.0 =&amp;gt; [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50]
irb2.0.0&amp;gt;   arr.each_with_index do |element,index|
?&amp;gt;              next unless index % 10 == 0
irb2.0.0&amp;gt;     puts "#{element} at #{index}"
irb2.0.0&amp;gt;   end
0 at 0
10 at 10
20 at 20
30 at 30
40 at 40
50 at 50
#2.0.0 =&amp;gt; [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50]
irb2.0.0&amp;gt;   arr.each.with_index.select {|element,index| ind&lt;/pre&gt;</description>
    <dc:creator>Rob Biedenharn</dc:creator>
    <dc:date>2013-05-23T16:54:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318954">
    <title>Re: Skip index in array.each_with_index loop</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318954</link>
    <description>&lt;pre&gt;jsnark wrote in post #1109941:

# Print every 10th object
(0..50).each_slice(10) { |slice| p slice[0] }

0
10
20
30
40
50

&lt;/pre&gt;</description>
    <dc:creator>Robert Walker</dc:creator>
    <dc:date>2013-05-23T13:50:53</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318953">
    <title>Re: Skip index in array.each_with_index loop</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318953</link>
    <description>&lt;pre&gt;Write a loop that generates the desired indexes and then reference arr:

(0..5).each do |j|
  i = 10*j
  puts "#{arr[i]} at #{i}"
end

Your example output does not match the code.  It does not include 0, 20, 
and 40.

On Thursday, May 23, 2013 5:24:36 AM UTC-4, Ruby-Forum.com User wrote:

&lt;/pre&gt;</description>
    <dc:creator>jsnark</dc:creator>
    <dc:date>2013-05-23T12:52:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318952">
    <title>Re: rake assets:precompile issue with JS and stylesheets files with similar name</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318952</link>
    <description>&lt;pre&gt;Never mind, My bad.... :)
I was not using correct convention for including css file.
it has to be "test_vendor.css" instead of "test_vendor.scss"

Following works.
*config.assets.precompile += %w(test_vendor.js test_vendor.css)*


On Thursday, 23 May 2013 15:20:51 UTC+5:30, Farukh D.M wrote:

&lt;/pre&gt;</description>
    <dc:creator>Farukh D.M</dc:creator>
    <dc:date>2013-05-23T11:04:48</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318951">
    <title>Re: Re: Skip index in array.each_with_index loop</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318951</link>
    <description>&lt;pre&gt;use `next if (i % 10 != 0)`

&lt;/pre&gt;</description>
    <dc:creator>Dheeraj Kumar</dc:creator>
    <dc:date>2013-05-23T10:16:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318950">
    <title>Re: Skip index in array.each_with_index loop</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318950</link>
    <description>&lt;pre&gt;Dear Dheeraj,

  Thanks for your reply.

The statement `next` will increment the index by 1. But I want to 
increment the index by 10.

Thanks,

&lt;/pre&gt;</description>
    <dc:creator>Ajit Teli</dc:creator>
    <dc:date>2013-05-23T09:55:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318949">
    <title>rake assets:precompile issue with JS and stylesheets files with similar name</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318949</link>
    <description>&lt;pre&gt;Hi, 

I've got following two files with same names under javascripts and 
stylesheets directories as:
- app/assets/javascripts/test_vendor.js
- app/assets/stylesheets/test_vendor.scss

Essentially a JS and an stylesheet files with same name.

--------------------------------------------------------------

I want these files to be precompiled and served from public directory.
Thus I updated:
*config.assets.precompile += %w(test_vendor.js test_vendor.scss)*

----------------------------------------------------------------

I am running following task to pre-compile my assets in development:
*"rake assets:precompile RAILS_ENV=development RAILS_GROUPS=assets --trace"*

It generates assets/ folder inside my public directoy.
*But I see only test_vendor.js and test_vendor.js.gz inside it*
*test_vendor.css is missing.*

Please let me know, how to avoid/fix this issue.

Regards
Farukh D M





&lt;/pre&gt;</description>
    <dc:creator>Farukh D.M</dc:creator>
    <dc:date>2013-05-23T09:50:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318948">
    <title>Re: Skip index in array.each_with_index loop</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318948</link>
    <description>&lt;pre&gt;

On Thursday, 23 May 2013 11:24:36 UTC+2, Ruby-Forum.com User wrote:
If you just want to select the elements that meet some condition, use one 
of the following Array methods:

keep_if &amp;lt;http://ruby-doc.org/core-2.0/Array.html#method-i-keep_if&amp;gt;
select &amp;lt;http://ruby-doc.org/core-2.0/Array.html#method-i-select&amp;gt;
reject &amp;lt;http://ruby-doc.org/core-2.0/Array.html#method-i-reject&amp;gt;


&lt;/pre&gt;</description>
    <dc:creator>Javix</dc:creator>
    <dc:date>2013-05-23T09:39:44</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318947">
    <title>Re: Skip index in array.each_with_index loop</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318947</link>
    <description>&lt;pre&gt;Use the `next` statement.

http://www.tutorialspoint.com/ruby/ruby_loops.htm 

&lt;/pre&gt;</description>
    <dc:creator>Dheeraj Kumar</dc:creator>
    <dc:date>2013-05-23T09:32:53</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318946">
    <title>Skip index in array.each_with_index loop</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/318946</link>
    <description>&lt;pre&gt;Can anyone help me on how to skip index in ARRAY.each_with_index loop?

Please look at below case:

In a ARRAY.each_with_index loop, I would like increase the index by 10
whenever a condition is met.

arr is array of numbers from 0 to 50
arr.each_with_index do |x,i|
  if i % 10 == 0
    puts "#{x} at #{i}"
    i = i+10  //index increased by 10
  end
end

The output should be:
10 at 10
30 at 30
50 at 50

Thanks
Ajit

&lt;/pre&gt;</description>
    <dc:creator>Ajit Teli</dc:creator>
    <dc:date>2013-05-23T09:24:36</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>
