<?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">
    <title>gmane.comp.lang.ruby.rails</title>
    <link>http://blog.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/309102"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309101"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309100"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309099"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309098"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309097"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309096"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309095"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309094"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309093"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309092"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309091"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309090"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309089"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309088"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309087"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309086"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309085"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309084"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309083"/>
      </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/309102">
    <title>Re: Ferret problem</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309102</link>
    <description>&lt;pre&gt;azizmb.in wrote in post #1061961:


Dear Br. Aziz

Thanks for your suggestion. Br I also go through this link but couldn't 
succeed.

There is one query regarding the thread. If i download ferret 0.11.5 
mswin32 then where i have to keep this file?

rest of the things i did but there is no win.

Thanks
Amir

&lt;/pre&gt;</description>
    <dc:creator>Amir Z.</dc:creator>
    <dc:date>2012-05-24T20:18:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309101">
    <title>Re: rake error</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309101</link>
    <description>&lt;pre&gt;Quoting Meow san &amp;lt;meowsanforever-PkbjNfxxIARBDgjK7y7TUQ&amp;lt; at &amp;gt;public.gmane.org&amp;gt;:

Is rubygems installed?  At the command line, type:

gem list --local rubygems

If nothing listed, type "gem install rubygems", preferably as root.

HTH,
  Jeffrey

&lt;/pre&gt;</description>
    <dc:creator>Jeffrey L. Taylor</dc:creator>
    <dc:date>2012-05-24T19:57:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309100">
    <title>Rails Console Sandbox : .save | .create</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309100</link>
    <description>&lt;pre&gt;At the end of Rails Tutorial chapter 6, I have the
development .sqlite3 db : 1 table and 1 row (= user id:1 see below) :

1.9.3p125 :002 &amp;gt; user1 = User.first

User Load (0.2ms)  SELECT "users".* FROM "users" LIMIT 1
 =&amp;gt; #&amp;lt;User id: 1, name: "Michael Hartl", email: "mhartl-hcDgGtZH8xNBDgjK7y7TUQ&amp;lt; at &amp;gt;public.gmane.org",
created_at: "2012-05-22 10:32:16", updated_at: "2012-05-22 10:32:16",
password_digest: "$2a
$10$Eh2xj8CvvKaDFD2uel4LbOQ2dMsCmENy8tyts1BsFzJb..."&amp;gt;

1.9.3p125 :002 &amp;gt; user2 = User.create(name: "Francois DG", email:
"fdg-hcDgGtZH8xNBDgjK7y7TUQ&amp;lt; at &amp;gt;public.gmane.org")

  (0.1ms)  SAVEPOINT active_record_1
  User Exists (0.2ms)  SELECT 1 FROM "users" WHERE
LOWER("users"."email") = LOWER('fdg-hcDgGtZH8xNBDgjK7y7TUQ&amp;lt; at &amp;gt;public.gmane.org') LIMIT 1
   (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 =&amp;gt; #&amp;lt;User id: nil, name: "Francois DG", email: "fdg-hcDgGtZH8xNBDgjK7y7TUQ&amp;lt; at &amp;gt;public.gmane.org",
created_at: nil, updated_at: nil, password_digest: nil&amp;gt;

CAN SOMEBODY TELL ME WHY &amp;amp; WHAT TO DO ?

&lt;/pre&gt;</description>
    <dc:creator>Francesco De Grandi</dc:creator>
    <dc:date>2012-05-24T13:58:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309099">
    <title>Newbie question - how to resolve 'wrong status line' error</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309099</link>
    <description>&lt;pre&gt;Hi everyone

I'm learning Ruby on Rails and wanted to perform oAuth as follows for
a third party API. But I get an error as follows:

wrong status line: "&amp;lt;!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN
\"&amp;gt;"


//Code snippet
require 'net/https'
require 'uri'

class UsersController &amp;lt; ApplicationController

  def auth
       &amp;lt; at &amp;gt;client_id = params[:client_id]
       &amp;lt; at &amp;gt;auth_url = "https://url/oauth/authorize?
client_id=#{&amp;lt; at &amp;gt;client_id}"
       url = URI.parse(&amp;lt; at &amp;gt;auth_url )
       req = Net::HTTP::Post.new(url.path)
       res = Net::HTTP.start(url.host, url.port) {|http|
http.request(req)}

&amp;lt; at &amp;gt;output = res.body
render :text =&amp;gt; &amp;lt; at &amp;gt;output.inspect

   end

end


Any help to proceed is much appreciated.

&lt;/pre&gt;</description>
    <dc:creator>iDev</dc:creator>
    <dc:date>2012-05-24T10:13:42</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309098">
    <title>i am getting override method issue in  compute_public_path' for module `ActionView::Helpers::AssetTagHelper'</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309098</link>
    <description>&lt;pre&gt;Hi All,

I am doing migration rails 3.0.5 to 3.2.3 and also changed ruby
versions from 1.8.7 to 1.9.3.

I want override the method
compute_public_path(ActionView::Helpers::AssetTagHelper).


Now i got this  error while migrating the application (3.2.3).

`alias_method': undefined method `compute_public_path' for module
`ActionView::Helpers::AssetTagHelper' (NameError)


Please give me your valuable suggestions the above issue.


I have done small program. it is working perfectly.

class String

    alias_method :old_to_s, :to_s

    def to_s
        if  self=="one"
          "coming if "
        else
         "coming else"
        end

    end


end

str=String.new("one")
p str.to_s

p str.old_to_s




&lt;/pre&gt;</description>
    <dc:creator>Pal Pandi</dc:creator>
    <dc:date>2012-05-24T13:11:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309097">
    <title>Ruby on Rails Tutorial Chapter 6 RSpec tests failing</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309097</link>
    <description>&lt;pre&gt;Hello all:

I'm a RoR newbie who is currently following the Ruby on Rails
Tutorial: Learning by Example book (http://ruby.railstutorial.org/
chapters/modeling-users#sec:adding_a_secure_password). The following
Chapter 6 RSpec tests are failing:

Failures:

1) User [31mFailure/Error:[0m [31mit { should be_valid }[0m
[31mexpected valid? to return true, got false[0m [36m # ./spec/models/
user_spec.rb:19:in `block (2 levels) in '[0m

2) User when email format is valid should be valid [31mFailure/Error:
[0m [31m-agIoKRwLymF0sw7Iq073Hg&amp;lt; at &amp;gt;public.gmane.org be_valid[0m [31mexpected valid? to return true,
got false[0m [36m # ./spec/models/user_spec.rb:51:in block (4 levels)
in &amp;lt;top (required)&amp;gt;'[0m [36m # ./spec/models/user_spec.rb:
49:ineach'[0m [36m # ./spec/models/user_spec.rb:49:in `block (3
levels) in '[0m

3) User return value of authenticate method with valid password
[31mFailure/Error:[0m [31mit { should ==
found_user.authenticate(&amp;lt; at &amp;gt;user.password) }[0m [31mNoMethodError:[0m
[31mundefined method authenticate' for nil:NilClass←[0m [36m # ./spec/
models/user_spec.rb:94:inblock (4 levels) in '[0m

4) User return value of authenticate method with invalid password
[31mFailure/Error:[0m [31mlet(:user_for_invalid_password)
{ found_user.authenticate("invalid") }[0m [31mNoMethodError:[0m
[31mundefined method authenticate' for nil:NilClass[0m [36m # ./spec/
models/user_spec.rb:98:inblock (4 levels) in '[0m [36m # ./spec/models/
user_spec.rb:100:in `block (4 levels) in '[0m

5) User return value of authenticate method with invalid password
[31mFailure/Error:[0m [31mlet(:user_for_invalid_password)
{ found_user.authenticate("invalid") }[0m [31mNoMethodError:[0m
[31mundefined method authenticate' for nil:NilClass[0m [36m # ./spec/
models/user_spec.rb:98:inblock (4 levels) in '[0m [36m # ./spec/models/
user_spec.rb:101:in `block (4 levels) in '[0m

Finished in 3.56 seconds [31m20 examples, 5 failures[0m

Failed examples:

[31mrspec ./spec/models/user_spec.rb:19[0m [36m# User [0m [31mrspec ./
spec/models/user_spec.rb:47[0m [36m# User when email format is valid
should be valid←[0m [31mrspec ./spec/models/user_spec.rb:94[0m [36m#
User return value of authenticate method with valid password ←[0m
[31mrspec ./spec/models/user_spec.rb:100[0m [36m# User return value of
authenticate method with invalid password [0m [31mrspec ./spec/models/
user_spec.rb:101[0m [36m# User return value of authenticate method
with invalid password [0m Slave(1) run done!

---------------------------------------------------
Here is the user Model:

class User &amp;lt; ActiveRecord::Base
  attr_accessible :name, :email, :password, :password_confirmation
  attr_accessor :password, :password_confirmation
  has_secure_password

  before_save { |user| user.email = email.downcase }

  validates :name, presence: true, length: { maximum: 50 }
  VALID_EMAIL_REGEX = /\A[\w+\-.]+&amp;lt; at &amp;gt;[a-z\d\-.]+\.[a-z]+\z/i
  validates :email, presence: true, format: { with:
VALID_EMAIL_REGEX },uniqueness: { case_sensitive: false }
  validates :password, presence: true, length: { minimum: 6 }
  validates :password_confirmation, presence: true

---------------------------------------------------
Here is the RSpec model/user_spec.rb:

require 'spec_helper'

describe User do

  before do
    &amp;lt; at &amp;gt;user = User.new(name: "Examplexxx", email: "user-hcDgGtZH8xNBDgjK7y7TUQ&amp;lt; at &amp;gt;public.gmane.org",
                     password: "foobar", password_confirmation:
"foobar")
  end

  subject { &amp;lt; at &amp;gt;user }

  it { should respond_to(:name) }
  it { should respond_to(:email) }
  it { should respond_to(:password_digest) }
  it { should respond_to(:password) }
  it { should respond_to(:password_confirmation) }
  it { should respond_to(:authenticate) }

  it { should be_valid }

  describe "when name is not present" do
    before { &amp;lt; at &amp;gt;user.name = " " }
    it { should_not be_valid }
  end

  describe "when email is not present" do
    before { &amp;lt; at &amp;gt;user.email = " " }
    it { should_not be_valid }
  end

  describe "when name is longer than 50 characters" do
    before { &amp;lt; at &amp;gt;user.name = "a" * 51 }
    it { should_not be_valid }
  end

  describe "when email format is invalid" do
    it "should be invalid" do
      addresses = %w[user&amp;lt; at &amp;gt;foo, com user_at_foo.org example.user&amp;lt; at &amp;gt;foo.
foo&amp;lt; at &amp;gt;bar_baz.com foo&amp;lt; at &amp;gt;bar+baz.com]
      addresses.each do |invalid_address|
        &amp;lt; at &amp;gt;user.email = invalid_address
        &amp;lt; at &amp;gt;user.should_not be_valid
      end
    end
  end

  describe "when email format is valid" do
    it "should be valid" do
      addresses = %w[user-aYmlcMoNXFo&amp;lt; at &amp;gt;public.gmane.org A_US-ER&amp;lt; at &amp;gt;f.b.org frst.lst-CfcPUM2A7yk&amp;lt; at &amp;gt;public.gmane.org a
+b&amp;lt; at &amp;gt;baz.cn]
      addresses.each do |valid_address|
        &amp;lt; at &amp;gt;user.email = valid_address
        &amp;lt; at &amp;gt;user.should be_valid
      end
    end
  end

  describe "when email address is already taken" do
    before do
      user_with_same_email = &amp;lt; at &amp;gt;user.dup
      user_with_same_email.email = &amp;lt; at &amp;gt;user.email.upcase
      user_with_same_email.save
    end

    it { should_not be_valid }
  end

  describe "when password is not present" do
    before { &amp;lt; at &amp;gt;user.password = &amp;lt; at &amp;gt;user.password_confirmation = " " }
    it { should_not be_valid }
  end

  describe "when password doesn't match confirmation" do
    before { &amp;lt; at &amp;gt;user.password_confirmation = "mismatch" }
    it { should_not be_valid }
  end


  describe "When password confirmation is nil" do
    before { &amp;lt; at &amp;gt;user.password_confirmation = nil }
    it { should_not be_valid }
  end

  describe "with a password that's too short" do
    before { &amp;lt; at &amp;gt;user.password = &amp;lt; at &amp;gt;user.password_confirmation = "a" * 5 }
    it { should_not be_valid }
  end

  describe "return value of authenticate method" do
    before { &amp;lt; at &amp;gt;user.save }
    let(:found_user) { User.find_by_email(&amp;lt; at &amp;gt;user.email) }

    describe "with valid password" do
      it { should == found_user.authenticate(&amp;lt; at &amp;gt;user.password) }
    end

    describe "with invalid password" do
      let(:user_for_invalid_password)
{ found_user.authenticate("invalid") }

      it { should_not == user_for_invalid_password }
      specify { user_for_invalid_password.should be_false }
    end
  end

end

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

Here is my gemfile:

source 'https://rubygems.org'

gem 'rails', '3.2.3'
gem 'bootstrap-sass', '2.0.0'
gem 'bcrypt-ruby', '3.0.1'

group :development, :test do
  gem 'sqlite3', '1.3.5'
  gem 'rspec-rails', '2.9.0'
  gem 'spork'
  gem 'webrat'
end

gem 'jquery-rails', '2.0.0'

group :test do
    gem 'capybara', '1.1.2'
end


# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~&amp;gt; 3.2.3'
  gem 'coffee-rails', '~&amp;gt; 3.2.2'
  gem 'uglifier', '&amp;gt;= 1.0.3'
end

Thank you so much for your help! Neo Ramos

&lt;/pre&gt;</description>
    <dc:creator>Neo</dc:creator>
    <dc:date>2012-05-24T00:56:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309096">
    <title>Help with inserting multiple records via console</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309096</link>
    <description>&lt;pre&gt;I'm fairly new to Rails and was wondering would it be possible to insert 
multiple records via the console?

I tried variations along the lines of this but all failed.
Article.create {:title =&amp;gt; "Test title 1", :body =&amp;gt; "Test body text 1, ..", 
:published_at =&amp;gt; Date.today} {:title =&amp;gt; "Test title 2", :body =&amp;gt; "Test body 
text 2..", :published_at =&amp;gt; Date.today}

If this is possible, please help.

Thank you

&lt;/pre&gt;</description>
    <dc:creator>captain awesome</dc:creator>
    <dc:date>2012-05-24T00:54:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309095">
    <title>rake error</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309095</link>
    <description>&lt;pre&gt;/usr/bin/rake:9:in `require': no such file to load -- rubygems
(LoadError)
        from /usr/bin/rake:9

I got this error when following an online guide in rails, the command
I had to type in was # rake db:create.. after I typed in the command I
got the above error. It's almost 2 days that I'm searching for a
solution to this. But in vain,

Can anyone help me out btw I'm a rookie in RoR

&lt;/pre&gt;</description>
    <dc:creator>Meow san</dc:creator>
    <dc:date>2012-05-23T19:29:42</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309094">
    <title>Re: Heroku App Sending Blank Emails with Sendgrid</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309094</link>
    <description>&lt;pre&gt;Hey,

I'm Swift, one of the developer evangelists over at SendGrid.  Sorry
that we didn't get back to you on our support channel - we get a high
volume of requests and sometimes things slip through the cracks.

Your problem is that you're using a deprecated syntax for composing
the email.  The preferred method is to use the mail function:

    def
registration_confirmation(user)·
      mail(:from    =&amp;gt; 'Foo
&amp;lt;info-+LBmYUDmh58&amp;lt; at &amp;gt;public.gmane.org&amp;gt;',
           :subject =&amp;gt; "Welcome to Foo,
#{user.first_name}!",
           :to      =&amp;gt; "#{user.first_name} &amp;lt;#{user.email}
    end

You can find the docs for ActionMailer here:
http://guides.rubyonrails.org/action_mailer_basics.html

They're pretty extensive and definitely worth the read.

Let me know if you have any more issues!

- Swift

On May 22, 8:12 pm, yellowreign &amp;lt;ryanac...-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Swift</dc:creator>
    <dc:date>2012-05-23T17:24:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309093">
    <title>Declaring list of string constnats for app</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309093</link>
    <description>&lt;pre&gt;Hi All,

I'm building an app that compares statistics from sports games. Each
statistic has an "action" that defines what happened at that point in
time, for example "player has possession" is one such action string.

I use these strings to pull out / sort the statistics into meaningful
information, so these strings are used throughout the app.

I want to know a good place to have a list of global variables like
this. I have tried :

creating file called action_string_constants.rb in /lib.
In this file I declare a module :
module  ActionStringConstants

  MB_ACTION_STRING_PLAYER_HAS_POSSESSION = "player has posession"

end

I then try and use this in another class such as Player (model) with

include ActionStringConstants

However this returns a NameError (uninitialized constant
Player::ActionStringConstants):


I then thought of including this in application.rb, as I want to use
these constants in many files, but this returns a similar error when
trying to launch the app.

Where can I declare a string constant??!

This really should be simple!

&lt;/pre&gt;</description>
    <dc:creator>Michael Baldock</dc:creator>
    <dc:date>2012-05-24T15:05:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309092">
    <title>Re: Errors and flash[:error]</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309092</link>
    <description>&lt;pre&gt;
Not sure if I understand your issue, but I believe you are looking at 
nested resources and nested forms.

Rails can do this automatically for you if you generate a scaffolding.
But if you are looking for going through the created hash for the 
message, take a look at: 
http://railscasts.com/episodes/18-looping-through-flash


You must to the attribute verification in its own model, rails will take 
care of the rest, the flash error message will display the validations 
for both models.

&lt;/pre&gt;</description>
    <dc:creator>Miguel A.</dc:creator>
    <dc:date>2012-05-24T14:18:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309091">
    <title>Re: Heroku Deploy - assets issue_paperclip</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309091</link>
    <description>&lt;pre&gt;

On 24 May 2012, at 15:10, "Miguel A." &amp;lt;lists-fsXkhYbjdPsEEoCn2XhGlw&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:


My understanding (and experience) is that you can't modify the heroku file system once your application slug has been generated and uploaded, so you'll need to use S3 (or equivalent). Tbf, it's very simple and robust. Tutorial at https://devcenter.heroku.com/s3


&lt;/pre&gt;</description>
    <dc:creator>Jeremy Walker</dc:creator>
    <dc:date>2012-05-24T14:17:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309090">
    <title>Heroku Deploy - assets issue_paperclip</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309090</link>
    <description>&lt;pre&gt;Hi all, I'm deploying my app on heroku for tests and have noticed
something odd.

I'm rails 3.2.3 and paperclip do handle the displaying/uploading images
process.
Everything runs smooth on my localhost but on Heroku, if I upload a
picture and the App isn't "accessed" for like during the night, in the
morning the image is not there and the 'broken image icon' takes its
place.

If I re-add the image and keep accessing the website for like, every
hour, everything is fine and all the images are there.

It's worth mentioning that I'm saving my images in paperclip's default
path, in the public-&amp;gt;assets folder. And for testing, I wanted to keep it
that way.

Will this issue go away if I set the path to my app-&amp;gt;assets folder?

Or does this have anything to do with the inner workings of Heroku,
assigning one dyno and then idling after some time with no hits, and
when the application "wakes up again" another dyno is assigned and the
app loses its uploaded images?

Is storing in Amazon S3 the only way of solving this or does altering
the path of paperclip to the App folder solves the problem?
If so, will it be a reliable option for a production stage?

Thank in advance for enlightening a RoR beginner,

Regards

&lt;/pre&gt;</description>
    <dc:creator>Miguel A.</dc:creator>
    <dc:date>2012-05-24T14:10:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309089">
    <title>Errors and flash[:error]</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309089</link>
    <description>&lt;pre&gt;What is the relationship, if any, between the errors array for one of
my models and flash[:error]? Are validation errors automatically added
to the flash? Is there a helper I can use in my view to merge the
results?

Situation:

I provide a form, of sorts, for creating HABTM relationships between
two other models. The HABTM model does a bunch of validation to make
sure it won't save an invalid record. Additionally, each of the models
being associated has an "owner" and I need to verify in my controller
that the owner matches my session data to prevent somebody from
creating associations on someone else's behalf.

I'd like to provide a bullet list of the combined results of
validation errors and session matching errors.

The UI on my form should prevent both types of errors. So from the end
user's perspective there is no meaningful difference.

&lt;/pre&gt;</description>
    <dc:creator>Brian</dc:creator>
    <dc:date>2012-05-24T13:35:16</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309088">
    <title>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/309088</link>
    <description>&lt;pre&gt;Hi Team,

    I have an Issue in migrating my app ProductList from rails 3.0 to
Rails 3.2.3 with Ruby  1.9.3

 I faced a lot of issues still I hope for the best, Is there any way
to configure the existing app .


I have made changes in gemfile, public folder moved to assets , plugin
moved to lib

Thanks In advance

Swords Community

&lt;/pre&gt;</description>
    <dc:creator>The Rising Sword</dc:creator>
    <dc:date>2012-05-24T13:10:32</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309087">
    <title>The Usage of .except in Query</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309087</link>
    <description>&lt;pre&gt;Hi every body...
please look at the below queries...

Both the queries will give same result. If then; the use of .except here
is needless.


My question is that where that(.except) could be more useful. can u
please explain me a context for that.

&lt;/pre&gt;</description>
    <dc:creator>victor Arul</dc:creator>
    <dc:date>2012-05-24T12:41:35</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309086">
    <title>Re: Ferret problem</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309086</link>
    <description>&lt;pre&gt;Hey Amir

Have you tried the solutions on this thread:

http://www.ruby-forum.com/topic/139611

On Thu, May 24, 2012 at 4:57 PM, Amir Z. &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-24T12:37:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309085">
    <title>Re: rails ajax issues</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309085</link>
    <description>&lt;pre&gt;Hi Vishnu

Users on this group are not here to *give* you solutions, rather to point
you in the correct direction.

To point you in the correct direction, you need to respond to the js
format&amp;lt;http://whoneedsactions.com/blog/2010/10/24/jquery-ajax-with-rails-respond-to-format-dot-js/&amp;gt;,
and then update the number on your page in the success function of the ajax
call.


On Thu, May 24, 2012 at 4:43 PM, amruby &amp;lt;vgrkrishnan-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-24T12:32:42</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309084">
    <title>Ferret problem</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309084</link>
    <description>&lt;pre&gt;I stuck in search element problem. I am trying to install ferret on my
window 7. But tried a lot but couldn't succeed.

I ran following command to install the ferret gem.

gem install ferret
gem install ferret --version (all versions)
gem install ferret -v 0.11.5
gem install ferret -v 0.11.6
gem install ferret -v 0.11.8.4
gem install ferret -v=0.11.6 --platform mswin32

I also changed the devkit, got a updated kit and change requisite path
in fstub

But couldn't succeed. Always it gives me following error
ERROR:  Error installing ferret:
        ERROR: Failed to build gem native extension.

        c:/RailsInstaller/Ruby1.9.2/bin/ruby.exe extconf.rb
creating Makefile

make
c:/RailsInstaller/Ruby1.9.2/bin/ruby -e "puts 'EXPORTS',
'Init_ferret_ext'"  &amp;gt; f
erret_ext-i386-mingw32.def
.
.
.
.
.
.
ferret.c:297:22: error: 'struct RString' has no member named 'len'
make: *** [ferret.o] Error 1


Gem files will remain installed in
c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9
.1/gems/ferret-0.11.6 for inspection.
Results logged to
c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/ferret-0.
11.6/ext/gem_make.out

Please help me.

Any help or suggestion is appreciable.

Thanks
Amir

&lt;/pre&gt;</description>
    <dc:creator>Amir Z.</dc:creator>
    <dc:date>2012-05-24T11:27:17</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309083">
    <title>rails ajax issues</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309083</link>
    <description>&lt;pre&gt;Hi
   * *I think this is my 4 or 5th post about the ajax issues with my rails 
code. But i couldn't rectify my issues sofar.
problem is,

In my pages.html.erb have  one text field and button. when i click on that 
button, the text field value will get into the controller through ajax,so 
after the function  i need to  get that value(textfield value) in same 
page. 

*page.html.erb*

&amp;lt;%= form_tag({:controller =&amp;gt; 'bpages',:action =&amp;gt; 'add' }, {:method =&amp;gt; 
:post}) do %&amp;gt;
     
    &amp;lt;%= text_field_tag('Bnum' ,nil, :id =&amp;gt; "bnum") %&amp;gt;     
    &amp;lt;%= submit_tag "Add", :id =&amp;gt; "addbtn", :class =&amp;gt; "*addsubmit* btn 
btn-large btn-success" %&amp;gt;
&amp;lt;%end%&amp;gt;
&amp;lt;div class="adddtl"
&amp;lt;strong&amp;gt;&amp;lt;%= *&amp;lt; at &amp;gt;number*%&amp;gt;&amp;lt;/strong&amp;gt; added
&amp;lt;/div&amp;gt;

Here is my ajax part

*header.js*
*
*
$(".*addsubmit*").click(function() {
var bnum = $("#bnum").val();
var dataString = 'bnumber='+ bnum;

if(bnum=='' )
{
$('.adderror').fadeIn(300).show();
$('.adderror').fadeOut(3000);
}
else
{
  
$.ajax({
type: "POST",
url: "http://localhost:3000/bpages/add",
data: dataString,
success: function(){

$('.adddtl').fadeIn(200).show();
$(".adddtl").fadeOut(3000);
}
  
});
     
}
return false;
});

*Controller*

class *BpagesController* &amp;lt; ApplicationController

   def add
     *&amp;lt; at &amp;gt;number* = params[:bnumber]
     *render 'bpages/page'*
   end
end

 
After the function *add* i need to display the value of  variable *&amp;lt; at &amp;gt;number *in 
the* page.html.erb, *for that here i use the* render 'bpages/page'*. But i 
didn't that variable.
or any other way to do this..?plz give one solution

Thanks 
vishnu
*
*
*
*


&lt;/pre&gt;</description>
    <dc:creator>amruby</dc:creator>
    <dc:date>2012-05-24T11:13:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309082">
    <title>Re: uninitialized constant HelloadminController::HelloApi</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails/309082</link>
    <description>&lt;pre&gt;Hi,

Me too get same error.

ruby 1.8.6
rails 1.2.3

Any help regarding this would be greatly appreciated.

thanks,
sathiya

Frank Tsao wrote in post #671657:

&lt;/pre&gt;</description>
    <dc:creator>Sathiyaraj Gurusamy</dc:creator>
    <dc:date>2012-05-24T08:33:52</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>

