<?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/308954"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308953"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308952"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308951"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308950"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308949"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308948"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308947"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308946"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308945"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308944"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308943"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308942"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308941"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308940"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308939"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308938"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308937"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308936"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308935"/>
      </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/308954">
    <title>Re: Connecting rails to a semantic RDF web database?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308954</link>
    <description>&lt;pre&gt;You probably want to get in contact with Greg Kellog 
(https://github.com/gkellogg), who very actively maintains the 
ruby-rdf-projects: Check out his github-account, he has just recently moved 
several rdf-related projects(including sparql, 
https://github.com/gkellogg/sparql, which contains a client to connect to 
sparql-endpoints). There is also a (rather silent) rdf-ruby-group at the 
w3c (public-rdf-ruby-Pl0VvzL1eo4&amp;lt; at &amp;gt;public.gmane.org), where you may find some people with similar 
interests. 

Hope this helps, 
cheers
Stefan 



Am Mittwoch, 16. Mai 2012 19:52:30 UTC+2 schrieb Yin Aphinyanaphongs:

&lt;/pre&gt;</description>
    <dc:creator>vierundsechzig-gM/Ye1E23mwN+BqQ9rBEUg&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2012-05-18T08:16:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308953">
    <title>Re: Spell checker for ror</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308953</link>
    <description>&lt;pre&gt;I want javascript spell checker which check spellings in html form. 

On Thursday, 17 May 2012 16:14:30 UTC+5:30, Swati Verma wrote:

&lt;/pre&gt;</description>
    <dc:creator>Swati Verma</dc:creator>
    <dc:date>2012-05-18T04:27:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308952">
    <title>Re: Re: Can't mass-assign these protected attributes?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308952</link>
    <description>&lt;pre&gt;
Another solution is just to use attr_accessable to specify the methods that
should be publicly accessible, and then you don't end up with a security
hole. Magic. I don't think that's a particularly hard thing to do and it
shouldn't slow you down.



&lt;/pre&gt;</description>
    <dc:creator>Jeremy Walker</dc:creator>
    <dc:date>2012-05-18T11:12:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308951">
    <title>Re: is it a nested has_many :through association?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308951</link>
    <description>&lt;pre&gt;From what I gather, profiles should be the :through relation!

class Company &amp;lt; ActiveRecord::Base
  has_many :profiles
  has_many :managers, :through =&amp;gt; :profiles
end

class Manager &amp;lt; ActiveRecord::Base
  has_many :profiles
  has_many :companies, :through =&amp;gt; :profiles
end

class Profile &amp;lt; ActiveRecord::Base
  belongs_to :company
  belongs_to :manager
end

Now, you can assign many profiles for every Manager-Company.

Cheers!
- Gautam



On Fri, May 18, 2012 at 3:22 PM, Mauro &amp;lt;mrsanna1-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:



&lt;/pre&gt;</description>
    <dc:creator>Gautam Rege</dc:creator>
    <dc:date>2012-05-18T11:07:39</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308950">
    <title>is it a nested has_many :through association?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308950</link>
    <description>&lt;pre&gt;I have:
Manager
has_many :companies
has_many :profiles

Company
has_many :managers

Profile
has_many :managers

I want to assign on or more profiles to every Manager-Company

I'm trying:

Manager
has_many :managements
has_many :companies, :through =&amp;gt; :managements
has_many :profiles, :through =&amp;gt; :managements

Company
has_many :managements
has_many :managers, :through =&amp;gt; :managements

Profile
has_many :managers

But the result it seems not as expected.

&lt;/pre&gt;</description>
    <dc:creator>Mauro</dc:creator>
    <dc:date>2012-05-18T09:52:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308949">
    <title>Re: can someone explain how map! / connect! works in this case?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308949</link>
    <description>&lt;pre&gt;
you're taking the numbers 0,1,1,1,1,3 and for each of them you're
populating an array with the values from another array at the index
that corresponds to the number you're operating on at the time.
It doesn't "know" which number to write out, you're telling it to go
get whatever element is at the index.


If you change one of them to "10", then the map is not going to find
an element in your "%w(zero one two three)" array at index 10, so it
returns nil.


No, but it would probably be best to familiarise yourself with the
Enumerable methods' documentation. Or maybe go through the Ruby koans
to experiment.

BTW What on earth are you trying to achieve with this code?

&lt;/pre&gt;</description>
    <dc:creator>Michael Pavling</dc:creator>
    <dc:date>2012-05-18T08:34:26</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308948">
    <title>33% off live Rails training</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308948</link>
    <description>&lt;pre&gt;Heyo!

Learning Rails is hard, so I made a workshop...

The discount code MISTAKES will get you a huge 33% off the live &amp;amp; online
Rails Fundamentals Workshop:

http://readysetrails.com

It's a great way to "get over the learning curve" by interacting with
live instructors (as opposed to a screencast or blog post
tutorials—those make more sense AFTER you get the core concepts).

&lt;/pre&gt;</description>
    <dc:creator>Brook R.</dc:creator>
    <dc:date>2012-05-18T07:11:53</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308947">
    <title>Ideas For Handling Rake Task Errors</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308947</link>
    <description>&lt;pre&gt;I am looking for some ideas on how I can create some way of error
alerts for failed rake tasks and how some of you are handling
something like this.  Basically if a rake tasks fails I would like to
have some kind of alert by email that the task did not complete.  Are
there any services that your using to do something like this?
Currently
I am running these tasks via cron.

Thank You

&lt;/pre&gt;</description>
    <dc:creator>gerbdla</dc:creator>
    <dc:date>2012-05-18T05:24:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308946">
    <title>Re: javascript - railscast 205</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308946</link>
    <description>&lt;pre&gt;Try:

&amp;lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
" type="text/javascript" charset="utf-8"&amp;gt;&amp;lt;/script&amp;gt;
   &amp;lt;script type="text/javascript" charset="utf-8"&amp;gt;
     $(function() {
       $("#alert").click(function() {
         alert($(this).attr("data-message"));
         return false;
       })
     })

   &amp;lt;/script&amp;gt;

    &amp;lt;h1&amp;gt;&amp;lt;a href="#" id="alert" data-message="Hello UJS!"&amp;gt;Click
Here&amp;lt;/a&amp;gt;&amp;lt;/h1&amp;gt;

On Fri, May 18, 2012 at 9:23 AM, Christopher D. &amp;lt;lists-fsXkhYbjdPsEEoCn2XhGlw&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-18T04:55:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308945">
    <title>Re: can someone explain how map! / connect! works in this case?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308945</link>
    <description>&lt;pre&gt;http://lmgtfy.com/?q=ruby+map+collect

On Fri, May 18, 2012 at 9:27 AM, Christopher D. &amp;lt;lists-fsXkhYbjdPsEEoCn2XhGlw&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-18T04:52:04</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308944">
    <title>can someone explain how map! / connect! works in this case?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308944</link>
    <description>&lt;pre&gt;I just don't get it, how does it know which value to write out? If I
change the array number say to 10 instead of three and change the word
"three" to "ten" in the block it comes as nil... is there something
special about 1..3 that I am missing?

ary = [0,1,1,1,1,3]
ary.map! { |num| %w(zero one two three)[num] }

p ary
["zero", "one", "one", "one", "one", "three"]

&lt;/pre&gt;</description>
    <dc:creator>Christopher D.</dc:creator>
    <dc:date>2012-05-18T03:57:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308943">
    <title>javascript - railscast 205</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308943</link>
    <description>&lt;pre&gt;I added the following into a page of one of my post view in rails.
However when I click on it it doesn't bring up the "Hello UJS!" what am
I missing here?

    &amp;lt;script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"
type="text/javascript" charset="utf-8"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script type="text/javascript" charset="utf-8"&amp;gt;
      $(function() {
        $("#alert").click(function() {
          alert(this.getAttribute("data-message"));
          return false;
        })
      })

    &amp;lt;/script&amp;gt;

     &amp;lt;h1&amp;gt;&amp;lt;a href="#" id="alert" data-message="Hello UJS!"&amp;gt;Click
Here&amp;lt;/a&amp;gt;&amp;lt;/h1&amp;gt;

&lt;/pre&gt;</description>
    <dc:creator>Christopher D.</dc:creator>
    <dc:date>2012-05-18T03:53:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308942">
    <title>RubyTalkTips is released</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308942</link>
    <description>&lt;pre&gt;Users have reported that the link is not yet working.

I have re-updated  the server DNS records. The Zone File Editor on
GoDaddy.com leaves a lot to be desired.

Until the nameservers propagate, use the ip:

http://50.62.128.115

or after propagation, use:

http://rubytalktips.com

&lt;/pre&gt;</description>
    <dc:creator>captdowner</dc:creator>
    <dc:date>2012-05-18T02:46:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308941">
    <title>Re: [ANN] RubyTalkTips 0.0.5 released</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308941</link>
    <description>&lt;pre&gt;
the name is resolving somewhere :)

try
 http://50.62.128.115:3000/pages/about

&lt;/pre&gt;</description>
    <dc:creator>botp</dc:creator>
    <dc:date>2012-05-18T01:53:34</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308940">
    <title>Two layouts in one mailer</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308940</link>
    <description>&lt;pre&gt;Hi all,

I'm having problems figuring out how to know which mailer method is being 
invoked in the layout callback.

In my controller, I have code like this and its working great:

class Users::RegistrationsController &amp;lt; Devise::RegistrationsController
    layout :devise_or_application

    def devise_or_application
        ["edit", "update", "destroy"].include?(params[:action]) ? 
"application" : "devise"
    end
end

Now I need the same thing for my mailer, but params[:action] is not 
available in mailers. Is there another way to use different layout in one 
mailer, based on which mailer method is being called, like above?

Mailer in question is a custom Devise mailer (inheriting from default 
Devise mailer), so I can't really use different mailer, as Devise allows me 
to configure only one mailer to be used.

Thanks in advance!

&lt;/pre&gt;</description>
    <dc:creator>Alex Duck</dc:creator>
    <dc:date>2012-05-17T22:44:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308939">
    <title>Re: Can't mass-assign these protected attributes?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308939</link>
    <description>&lt;pre&gt;I have found a solution to this problem!!!! (solution is geared for the 
newest version of rails etc, as of mid May 2012)

If you are simply doing early stage development stuff, you do not need 
the extra feature which blocks mass assignment. The thing is, github was 
hacked by some dude (whitehat or black I'm not sure) but anyway, the 
hacker basically did it by changing the code a little bit in order to 
pass some values (boolean values indicating he was an admin or 
something) that weren't meant to be passed.

ANYWAY, Here's how I fixed mine (bear in mind this is a security hole 
but you can deal with it later, to be honest. Nobody wants to hack me 
that's for damned sure, at least not yet)------ - Go to 
/config/application.rb - Scroll down towards the end where you'll find 
{config.active_record.whitelist_attributes = true) - Set it to false 
(this is like turning off a firewall I guess)

That's it! This is the simple solution for early coding. You'll have to 
deal with this later as it is a pretty glar&lt;/pre&gt;</description>
    <dc:creator>David D.</dc:creator>
    <dc:date>2012-05-17T21:56:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308938">
    <title>Re: [ANN] RubyTalkTips 0.0.5 released</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308938</link>
    <description>&lt;pre&gt;
The link is not working for me

Colin


&lt;/pre&gt;</description>
    <dc:creator>Colin Law</dc:creator>
    <dc:date>2012-05-17T20:16:53</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308937">
    <title>Re: Partial with nested model/controller render back to current post and show errors</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308937</link>
    <description>&lt;pre&gt;Well, I should have read more on the rails guides website. I found the solution so easy and simple.

def create
    &amp;lt; at &amp;gt;post = Post.find(params[:post_id])
    &amp;lt; at &amp;gt;comment = &amp;lt; at &amp;gt;post.comments.build(params[:comment])
    respond_to do |format|
      if &amp;lt; at &amp;gt;comment.save
        format.html { redirect_to(post_path(&amp;lt; at &amp;gt;post), :notice =&amp;gt; "Comment successfully created") }
      else
        flash[:alert] = "Something went wrong!"
        format.html { render 'posts/show'  }
      end

    end
  end

And also changed this in my partial:

 &amp;lt;% if &amp;lt; at &amp;gt;comment.errors.any? %&amp;gt;
        &amp;lt;div id="formErrors"&amp;gt;
          &amp;lt;h4&amp;gt;&amp;lt;%= &amp;lt; at &amp;gt;comment.errors.count %&amp;gt; Error while saving form:&amp;lt;/h4&amp;gt;
          &amp;lt;ul&amp;gt;
            &amp;lt;% &amp;lt; at &amp;gt;comment.errors.full_messages.each do |msg| %&amp;gt;
                &amp;lt;li&amp;gt;&amp;lt;%= msg %&amp;gt;&amp;lt;/li&amp;gt;
            &amp;lt;% end %&amp;gt;
          &amp;lt;/ul&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;% end %&amp;gt;


Problem solved!

Cheers Greg

Am 17.05.2012 um 20:59 schrieb Greg:


&lt;/pre&gt;</description>
    <dc:creator>Greg</dc:creator>
    <dc:date>2012-05-17T20:13:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308936">
    <title>[ANN] RubyTalkTips 0.0.5 released</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308936</link>
    <description>&lt;pre&gt;I've emailed many of you about this project, and while it's still got
a long way to go, I thought I should release it to the community now.

Over the last couple of years, I have been collecting what I consider
to be the best of the advice posted to the Ruby-Talk list into a mail
folder of mine called Ruby Tips. Since I feel that I have been the
beneficiary of the advice posted there, I thought a way of giving back
might be to release an open source RoR application featuring the 550
best tips I have collected thus far from the Ruby-Talk list.

I have taken the liberty of condensing the email tips  by removing
greetings, signatures and other content not directly relevant to the
tip content. I have added keywords to each tip so that searches can be
quick and relevant.

I have done my best to email each tip contributor, and ask permission
to use their tip, name and email address. If you see a tip attributed
to you, and you have not received my email, please contact me. I have
had overwhelmingly positive respons&lt;/pre&gt;</description>
    <dc:creator>captdowner</dc:creator>
    <dc:date>2012-05-17T19:07:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308935">
    <title>Partial with nested model/controller render back to current post and show errors</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308935</link>
    <description>&lt;pre&gt;Hi all,
I get stucked with the following scenario. I have a simple application where I have a post which can have a lot of comments. In the show action of the post I loaded the partial form to create the comment. This is also working. My problem is when the validation for the comment fails I don't know how to set the render method in the create action of the comments controller to get back to the current post show view and also to display the form errors. I can do a redirect back to the current post but then I will miss all the form data and see also no errors. Hope someone can give me a hint how to solve this.

Here are my models:

class Post &amp;lt; ActiveRecord::Base
  extend FriendlyId
  friendly_id :title, use: :slugged
  # attr_accessible :title, :body
  attr_accessible :title, :teaser, :content, :category_id, :picture

  #paperclip settings
  has_attached_file :picture, :styles =&amp;gt; { :medium =&amp;gt; "300x225&amp;gt;", :small =&amp;gt; "180x115&amp;gt;", :thumb =&amp;gt; "150x150&amp;gt;" }

  #association
  belongs_to :category
  has_many :comment&lt;/pre&gt;</description>
    <dc:creator>Greg</dc:creator>
    <dc:date>2012-05-17T18:59:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308934">
    <title>Re: CodeSchool weekend free</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/308934</link>
    <description>&lt;pre&gt;Thanks mate, good news.

&lt;/pre&gt;</description>
    <dc:creator>Mauro Locatelli</dc:creator>
    <dc:date>2012-05-17T16:52:33</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>

