# Rails

**URL:** https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=621

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 622

---

## [Db connection issues in production but not in dev mode](https://www.ruby-forum.com/t/db-connection-issues-in-production-but-not-in-dev-mode/189883)

<div class="topic-metadata">

**Author:** [@yani\_engico](https://www.ruby-forum.com/u/yani_engico)\
**Replies:** 4\
**Last updated:** [June 10, 2010, 7:03am UTC](https://www.ruby-forum.com/t/db-connection-issues-in-production-but-not-in-dev-mode/189883 "2010-06-10T07:03:12Z")

</div>

We have an application Ruby on rails, which fires a number of queries to the database. I Suspect it is connection timeout error or something When we run the application in development mode, it works as expected. Howev…

---

## [Strange problemï¼šno such file to load -- nokogiri on rails3](https://www.ruby-forum.com/t/strange-problemi-sno-such-file-to-load-nokogiri-on-rails3/189929)

<div class="topic-metadata">

**Author:** [@himdel](https://www.ruby-forum.com/u/himdel)\
**Replies:** 0\
**Last updated:** [June 10, 2010, 2:25am UTC](https://www.ruby-forum.com/t/strange-problemi-sno-such-file-to-load-nokogiri-on-rails3/189929 "2010-06-10T02:25:12Z")

</div>

I am test the script named test.rb by command “ruby test.rb” and it pass. Then i converte it as rake task. The rake task pass on rails 2.3.4 but fail on rails 3 beta4 with error msg: “no such file to load – nokogiri…

---

## [Rails + Authlogic + OpenID](https://www.ruby-forum.com/t/rails-authlogic-openid/182991)

<div class="topic-metadata">

**Author:** [@cnicolaou](https://www.ruby-forum.com/u/cnicolaou)\
**Replies:** 1\
**Last updated:** [June 10, 2010, 1:40am UTC](https://www.ruby-forum.com/t/rails-authlogic-openid/182991 "2010-06-10T01:40:11Z")

</div>

Hi, I’ve been trying to add a feature to an existing rails app written using rails 2.3.4 and uses Authlogic for authentication to authenticate using openid. I added Authlogic-oid and ruby-openid and tried to get open…

---

## [Check\_box\_tag problems](https://www.ruby-forum.com/t/check-box-tag-problems/189899)

<div class="topic-metadata">

**Author:** [@sindrig](https://www.ruby-forum.com/u/sindrig)\
**Replies:** 9\
**Last updated:** [June 10, 2010, 1:04am UTC](https://www.ruby-forum.com/t/check-box-tag-problems/189899 "2010-06-10T01:04:44Z")

</div>

Hi, I’m having some trouble with my form. The thing is I’m using a loop to generate check\_box\_tags and then when the user clicks submit I want to be able to see what he checked. For each checked box I want to copy a …

---

## [Get a marker](https://www.ruby-forum.com/t/get-a-marker/189925)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 1\
**Last updated:** [June 10, 2010, 12:44am UTC](https://www.ruby-forum.com/t/get-a-marker/189925 "2010-06-10T00:44:47Z")

</div>

Is there a way to get a marker by its ID from a markergroup? I would like to pan the map to a specific marker’s lat/lng when a link is clicked, but i dont want to use showmarker because it opens the info window Thank…

---

## [Widget](https://www.ruby-forum.com/t/widget/189918)

<div class="topic-metadata">

**Author:** [@teknopartz](https://www.ruby-forum.com/u/teknopartz)\
**Replies:** 1\
**Last updated:** [June 10, 2010, 12:19am UTC](https://www.ruby-forum.com/t/widget/189918 "2010-06-10T00:19:03Z")

</div>

I am very new to Ruby. Is there a way to create a Windows Widget that resides on a desktop and allows direct access to a database… For instance I can enter name and email on my desktop and hit submit. It will then be …

---

## [Persistent values and class variables](https://www.ruby-forum.com/t/persistent-values-and-class-variables/189923)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 0\
**Last updated:** [June 9, 2010, 11:55pm UTC](https://www.ruby-forum.com/t/persistent-values-and-class-variables/189923 "2010-06-09T23:55:26Z")

</div>

I need to have a variable that points to a MemCache instance so I looked at the Rails caching code to see how they do it. They use a Ruby class variable (or a few of them). That surprised me since class variables in …

---

## [Getting Parameter when Form\_for is Submitted](https://www.ruby-forum.com/t/getting-parameter-when-form-for-is-submitted/189914)

<div class="topic-metadata">

**Author:** [@anon\_comp](https://www.ruby-forum.com/u/anon_comp)\
**Replies:** 0\
**Last updated:** [June 9, 2010, 8:43pm UTC](https://www.ruby-forum.com/t/getting-parameter-when-form-for-is-submitted/189914 "2010-06-09T20:43:05Z")

</div>

This is slightly tied with my previous post. I wasn’t sure if I was supposed to make another message in there, so I made a new post. So in my previous post I accidentally asked a pure ruby question about gsub which I’…

---

## [Join types](https://www.ruby-forum.com/t/join-types/189906)

<div class="topic-metadata">

**Author:** [@JohnnyC](https://www.ruby-forum.com/u/JohnnyC)\
**Replies:** 2\
**Last updated:** [June 9, 2010, 8:27pm UTC](https://www.ruby-forum.com/t/join-types/189906 "2010-06-09T20:27:19Z")

</div>

I’m sure this is not a new topic – I’ve read mention of it elsewhere – but in addition to :joins =\> :profile, Active Record also needs :inner\_joins =\> :profile, :outer\_joins =\> :profile, :left\_joins =\> :profile, and a…

---

## [How to use third party library in rails](https://www.ruby-forum.com/t/how-to-use-third-party-library-in-rails/189912)

<div class="topic-metadata">

**Author:** [@wny](https://www.ruby-forum.com/u/wny)\
**Replies:** 0\
**Last updated:** [June 9, 2010, 8:16pm UTC](https://www.ruby-forum.com/t/how-to-use-third-party-library-in-rails/189912 "2010-06-09T20:16:09Z")

</div>

Hi, I am trying to use Selenium RC in my rails application. I first install selenium RC ruby client (\>gem install selenium-client). Then create a “selenium\_test.rb” in libs folder. In the file, I create a class “Sele…

---

## [How to use third party library in rails](https://www.ruby-forum.com/t/how-to-use-third-party-library-in-rails/189911)

<div class="topic-metadata">

**Author:** [@wny](https://www.ruby-forum.com/u/wny)\
**Replies:** 0\
**Last updated:** [June 9, 2010, 8:12pm UTC](https://www.ruby-forum.com/t/how-to-use-third-party-library-in-rails/189911 "2010-06-09T20:12:39Z")

</div>

Hi, I am trying to use Selenium RC in my rails application. I first install selenium RC ruby client (\>gem install selenium-client). Then create a “selenium\_test.rb” in libs folder. In the file, I create a class “Sele…

---

## [Comments / blogging gem?](https://www.ruby-forum.com/t/comments-blogging-gem/189910)

<div class="topic-metadata">

**Author:** [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Replies:** 0\
**Last updated:** [June 9, 2010, 7:48pm UTC](https://www.ruby-forum.com/t/comments-blogging-gem/189910 "2010-06-09T19:48:55Z")

</div>

Currently I’m using “acts\_as\_commentable” which is fine, but I wonder if there is something better and more robust out there as a replacement. On my site I allow people to post news articles etc that are commentable. T…

---

## [Strange problem for nokogiri on Rails 3](https://www.ruby-forum.com/t/strange-problem-for-nokogiri-on-rails-3/189909)

<div class="topic-metadata">

**Author:** [@himdel](https://www.ruby-forum.com/u/himdel)\
**Replies:** 0\
**Last updated:** [June 9, 2010, 7:32pm UTC](https://www.ruby-forum.com/t/strange-problem-for-nokogiri-on-rails-3/189909 "2010-06-09T19:32:30Z")

</div>

I am test the script named test.rb by command “ruby test.rb” and it pass. Then i converte it as rake task. The rake task pass on rails 2.3.4 but fail on rails 3 beta4 ============================ env ï¼šrails 3 bet…

---

## [To Display save button , when we select an option from drop](https://www.ruby-forum.com/t/to-display-save-button-when-we-select-an-option-from-drop/189882)

<div class="topic-metadata">

**Author:** [@venu1234](https://www.ruby-forum.com/u/venu1234)\
**Replies:** 1\
**Last updated:** [June 9, 2010, 6:20pm UTC](https://www.ruby-forum.com/t/to-display-save-button-when-we-select-an-option-from-drop/189882 "2010-06-09T18:20:44Z")

</div>

Hi I need help regarding displaying of a save button when we select some thing from the drop down.

---

## [Chat software](https://www.ruby-forum.com/t/chat-software/189873)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 2\
**Last updated:** [June 9, 2010, 6:19pm UTC](https://www.ruby-forum.com/t/chat-software/189873 "2010-06-09T18:19:40Z")

</div>

Hello All, I want to create an chat software using ruby on rails. It would be just like gtalk only. I mean logged in users can see that who else are online and then they can talk to them. So can you guys tell me that …

---

## [Update quantity instead of create new](https://www.ruby-forum.com/t/update-quantity-instead-of-create-new/189905)

<div class="topic-metadata">

**Author:** [@marcelo](https://www.ruby-forum.com/u/marcelo)\
**Replies:** 2\
**Last updated:** [June 9, 2010, 6:02pm UTC](https://www.ruby-forum.com/t/update-quantity-instead-of-create-new/189905 "2010-06-09T18:02:52Z")

</div>

I have 3 models: Store, Product and Item How do i get this test to pass? it “should update item’s quantity” do Item.create(:product\_id =\> 1, :store\_id =\> 1, :quantity =\> 1) Item.create(:product\_id =\> 1, :store\_id =\> …

---

## [Gsub help](https://www.ruby-forum.com/t/gsub-help/189893)

<div class="topic-metadata">

**Author:** [@anon\_comp](https://www.ruby-forum.com/u/anon_comp)\
**Replies:** 5\
**Last updated:** [June 9, 2010, 5:50pm UTC](https://www.ruby-forum.com/t/gsub-help/189893 "2010-06-09T17:50:59Z")

</div>

Here’s my code def index file = “BLAH-ex201588.doc” @file\_cut = order.gsub(/\[\\w \[- ! # $ % ^ & \* = +\]+\]+.doc$/, '\*.doc) end The code worked before when I was using Ruby 1.9.1, but now I’m using Ruby 1.8.7 due to t…

---

## [Best strategy to implement secure, one-time voting links](https://www.ruby-forum.com/t/best-strategy-to-implement-secure-one-time-voting-links/189900)

<div class="topic-metadata">

**Author:** [@Alan\_McCann](https://www.ruby-forum.com/u/Alan_McCann)\
**Replies:** 0\
**Last updated:** [June 9, 2010, 4:43pm UTC](https://www.ruby-forum.com/t/best-strategy-to-implement-secure-one-time-voting-links/189900 "2010-06-09T16:43:04Z")

</div>

I am building an application where guests and registered users are sent an email with a request to vote on a given issue. registered user sends vote request email, email containts voting links that have some type of …

---

## [Moving belongs\_to object to different association](https://www.ruby-forum.com/t/moving-belongs-to-object-to-different-association/189874)

<div class="topic-metadata">

**Author:** [@Jeffrey\_LSTaylor](https://www.ruby-forum.com/u/Jeffrey_LSTaylor)\
**Replies:** 2\
**Last updated:** [June 9, 2010, 4:20pm UTC](https://www.ruby-forum.com/t/moving-belongs-to-object-to-different-association/189874 "2010-06-09T16:20:15Z")

</div>

I have two AR models in a one-to-many relationship. class Feed \< ActiveRecord::Base belongs\_to :channel, :counter\_cache =\> true end class Channel has\_many :feeds end I need to move a feed to a different channel. …

---

## [Ruby on Rails Opportunity in New Orleans](https://www.ruby-forum.com/t/ruby-on-rails-opportunity-in-new-orleans/189897)

<div class="topic-metadata">

**Author:** [@sid137](https://www.ruby-forum.com/u/sid137)\
**Replies:** 0\
**Last updated:** [June 9, 2010, 3:49pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-opportunity-in-new-orleans/189897 "2010-06-09T15:49:56Z")

</div>

I am an IT recruiter with TEKsystems and I am working with a local software development company that is looking to hire a developer with an interest in working with Ruby on Rails. The client is willing to hire entry l…

---

## [CSV uploads and CRLF/LF](https://www.ruby-forum.com/t/csv-uploads-and-crlf-lf/189895)

<div class="topic-metadata">

**Author:** [@tnyplz](https://www.ruby-forum.com/u/tnyplz)\
**Replies:** 0\
**Last updated:** [June 9, 2010, 3:41pm UTC](https://www.ruby-forum.com/t/csv-uploads-and-crlf-lf/189895 "2010-06-09T15:41:36Z")

</div>

Rails models in the database usually have newlines encoded as \\r\\n (CRLF) as they are sent via HTTP and that is how the specification indicates they should be sent. When updating fields in my database by posting a CSV…

---

## [To display a button onselect of an option from dropdown](https://www.ruby-forum.com/t/to-display-a-button-onselect-of-an-option-from-dropdown/189890)

<div class="topic-metadata">

**Author:** [@venu1234](https://www.ruby-forum.com/u/venu1234)\
**Replies:** 1\
**Last updated:** [June 9, 2010, 3:36pm UTC](https://www.ruby-forum.com/t/to-display-a-button-onselect-of-an-option-from-dropdown/189890 "2010-06-09T15:36:00Z")

</div>

Hi Is there an option of displaying a button only when you select an option from dropdown.

---

## [Rails+sinatra sent image](https://www.ruby-forum.com/t/rails-sinatra-sent-image/189867)

<div class="topic-metadata">

**Author:** [@bebesuk](https://www.ruby-forum.com/u/bebesuk)\
**Replies:** 4\
**Last updated:** [June 9, 2010, 3:18pm UTC](https://www.ruby-forum.com/t/rails-sinatra-sent-image/189867 "2010-06-09T15:18:40Z")

</div>

Hi! I have simple rails application - users with name and avatar and in sinatra I want to create new user. form for new user Name: Avatar: My action in sinatra post ‘/users/c…

---

## [Fieldset class problem](https://www.ruby-forum.com/t/fieldset-class-problem/189888)

<div class="topic-metadata">

**Author:** [@amit](https://www.ruby-forum.com/u/amit)\
**Replies:** 0\
**Last updated:** [June 9, 2010, 2:50pm UTC](https://www.ruby-forum.com/t/fieldset-class-problem/189888 "2010-06-09T14:50:40Z")

</div>

Hello, I am using cucumber(0.8.0), cucumber-rails (0.3.0) and capybara. (0.3.8) There is a scenario where i need to click a button but it does not have a link ,id but it has a image under it. The html code is as fol…

---

## [Can a dropdown be used to select additional form fields?](https://www.ruby-forum.com/t/can-a-dropdown-be-used-to-select-additional-form-fields/189779)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 12\
**Last updated:** [June 9, 2010, 1:51pm UTC](https://www.ruby-forum.com/t/can-a-dropdown-be-used-to-select-additional-form-fields/189779 "2010-06-09T13:51:34Z")

</div>

For the last week and a half I’ve really struggled trying to do something I assumed would be pretty straight forward. However I continue to find road blocks regardless of the approach I take. No one on the web seems t…

---

## [Select question?](https://www.ruby-forum.com/t/select-question/189844)

<div class="topic-metadata">

**Author:** [@casid](https://www.ruby-forum.com/u/casid)\
**Replies:** 3\
**Last updated:** [June 9, 2010, 10:25am UTC](https://www.ruby-forum.com/t/select-question/189844 "2010-06-09T10:25:28Z")

</div>

view \<%= select( :order, :hcins, { “Man” =\> 3, “Is” =\> 5}) %\> (hcins is string value) controller (order) def create @order =Order.new(params\[:order\]) @order.user = User.find(session\[:user\_id\]) @order.ucret= @order…

---

## [How to use Selenium RC in Rails](https://www.ruby-forum.com/t/how-to-use-selenium-rc-in-rails/189876)

<div class="topic-metadata">

**Author:** [@wny](https://www.ruby-forum.com/u/wny)\
**Replies:** 0\
**Last updated:** [June 9, 2010, 10:23am UTC](https://www.ruby-forum.com/t/how-to-use-selenium-rc-in-rails/189876 "2010-06-09T10:23:08Z")

</div>

Hi, I am trying to use Selenium RC in my rails application. I first install selenium RC ruby client (\>gem install selenium-client). Then create a “selenium\_test.rb” in libs folder. In the file, I create a class “Sele…

---

## [Send loggedin user as action paramaters](https://www.ruby-forum.com/t/send-loggedin-user-as-action-paramaters/189872)

<div class="topic-metadata">

**Author:** [@swetha](https://www.ruby-forum.com/u/swetha)\
**Replies:** 1\
**Last updated:** [June 9, 2010, 10:21am UTC](https://www.ruby-forum.com/t/send-loggedin-user-as-action-paramaters/189872 "2010-06-09T10:21:22Z")

</div>

Hi , I am having a problem in sending loggedin user and also his website name as paramters .So that he can have preview of that. Relationship : I have 2 models user an website and relationship between them is user :…

---

## [Papaerclip file name and special characters](https://www.ruby-forum.com/t/papaerclip-file-name-and-special-characters/189871)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 0\
**Last updated:** [June 9, 2010, 9:32am UTC](https://www.ruby-forum.com/t/papaerclip-file-name-and-special-characters/189871 "2010-06-09T09:32:57Z")

</div>

Hi I have a problem checking the uniquness of filename. My rails controller code is if params\[:document\]\[“attachment”\] && (current\_user.documents.find(:all).map(&:attachment\_file\_name).include? params\[:document\]\[“a…

---

## [OT: Rubygems.org down?](https://www.ruby-forum.com/t/ot-rubygems-org-down/189825)

<div class="topic-metadata">

**Author:** [@mariachi77](https://www.ruby-forum.com/u/mariachi77)\
**Replies:** 3\
**Last updated:** [June 9, 2010, 8:41am UTC](https://www.ruby-forum.com/t/ot-rubygems-org-down/189825 "2010-06-09T08:41:14Z")

</div>

Not specifically a Rails problem; but is anyone else having problems accessing http://rubygems.org or installing gems? It’s not working for me from my home internet (in the UK), internet on my phone, or a VM in Chicag…

[Previous page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=620)

[Next page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=622)
