# Rails

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

[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:** 654

---

## [Hpricot files](https://www.ruby-forum.com/t/hpricot-files/187682)

<div class="topic-metadata">

**Author:** [@kevid](https://www.ruby-forum.com/u/kevid)\
**Replies:** 2\
**Last updated:** [April 27, 2010, 11:10pm UTC](https://www.ruby-forum.com/t/hpricot-files/187682 "2010-04-27T23:10:59Z")

</div>

hi all, I need to make use of “Hpricot gem” files. I don’t want to install it as a gem. I copied lib/hpricot/\*{all files} and lib/hpricot.rb to my application. below is lib/hpricot.rb begin require ‘encoding/char…

---

## [Dynamic Meta data](https://www.ruby-forum.com/t/dynamic-meta-data/187679)

<div class="topic-metadata">

**Author:** [@spokra](https://www.ruby-forum.com/u/spokra)\
**Replies:** 1\
**Last updated:** [April 27, 2010, 8:31pm UTC](https://www.ruby-forum.com/t/dynamic-meta-data/187679 "2010-04-27T20:31:18Z")

</div>

What is the best way to have a table that defines what the thing is and another table that defines if you hae it or not… maybe a table will describe what i want better!! : ----------------define the items in o…

---

## [Config.gem causes stack level too deep?](https://www.ruby-forum.com/t/config-gem-causes-stack-level-too-deep/187689)

<div class="topic-metadata">

**Author:** [@clavatinc](https://www.ruby-forum.com/u/clavatinc)\
**Replies:** 0\
**Last updated:** [April 27, 2010, 8:27pm UTC](https://www.ruby-forum.com/t/config-gem-causes-stack-level-too-deep/187689 "2010-04-27T20:27:53Z")

</div>

I’m trying to figure out why config.gem seems to cause problems. I have installed two gems ‘will\_paginate’ and ‘searchlogic’ that need to be declared in the environment.rb file in order to be useful. I installed ‘wil…

---

## [JOBS - Looking for Head - Deployment in Mumbai, India. Sent your resume to cshah@runway.in](https://www.ruby-forum.com/t/jobs-looking-for-head-deployment-in-mumbai-india-sent-your-resume-to-cshah-runway-in/186928)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 1\
**Last updated:** [April 27, 2010, 8:00pm UTC](https://www.ruby-forum.com/t/jobs-looking-for-head-deployment-in-mumbai-india-sent-your-resume-to-cshah-runway-in/186928 "2010-04-27T20:00:17Z")

</div>

Position: Head - Deployment In the Deployment role you will create configuration tools that help the software engineers launch ground-breaking new products and features to millions of users worldwide while ensuring a …

---

## [Sessions](https://www.ruby-forum.com/t/sessions/187592)

<div class="topic-metadata">

**Author:** [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Replies:** 7\
**Last updated:** [April 27, 2010, 7:33pm UTC](https://www.ruby-forum.com/t/sessions/187592 "2010-04-27T19:33:55Z")

</div>

hi all, in my application, i have login form. while login into the application iam maintaning the details in session. i want to remove the stale sessions and while removing the stale sessions i want to perform some o…

---

## [Exiting the function](https://www.ruby-forum.com/t/exiting-the-function/187566)

<div class="topic-metadata">

**Author:** [@mohammed\_a](https://www.ruby-forum.com/u/mohammed_a)\
**Replies:** 7\
**Last updated:** [April 27, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/exiting-the-function/187566 "2010-04-27T19:12:40Z")

</div>

Hi I have this code def destroy @property = Property.find(params\[:id\]) IsAuthorized?(@property.user\_id) @property.destroy respond\_to do |format| format.html { redirect\_to(properties\_url) } format.xml { head :o…

---

## [Longevity of ruby on rails](https://www.ruby-forum.com/t/longevity-of-ruby-on-rails/187670)

<div class="topic-metadata">

**Author:** [@vanboom](https://www.ruby-forum.com/u/vanboom)\
**Replies:** 4\
**Last updated:** [April 27, 2010, 7:11pm UTC](https://www.ruby-forum.com/t/longevity-of-ruby-on-rails/187670 "2010-04-27T19:11:17Z")

</div>

Hi, I have recently added Ruby on Rails to my repertoire and as I start a new project, I find myself wondering: Why are so many of the postings I find as I search for help from 2006-2009? Should I start my new proje…

---

## [\[JOBS\] San Francisco Experienced Ruby on Rails Developers](https://www.ruby-forum.com/t/jobs-san-francisco-experienced-ruby-on-rails-developers/187675)

<div class="topic-metadata">

**Author:** [@John\_Schmocker](https://www.ruby-forum.com/u/John_Schmocker)\
**Replies:** 0\
**Last updated:** [April 27, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/jobs-san-francisco-experienced-ruby-on-rails-developers/187675 "2010-04-27T18:03:43Z")

</div>

I actively put together engineering teams for prominent venture backed startups in the bay area. Many of my clients are looking for Ruby developers that are out of good schools and leaders in their field. If you fit t…

---

## [Undefined method 'each' in acts\_as\_taggable\_on with rails 3 beta 3 and ruby 1.9](https://www.ruby-forum.com/t/undefined-method-each-in-acts-as-taggable-on-with-rails-3-beta-3-and-ruby-1-9/187671)

<div class="topic-metadata">

**Author:** [@d4ny1](https://www.ruby-forum.com/u/d4ny1)\
**Replies:** 0\
**Last updated:** [April 27, 2010, 5:43pm UTC](https://www.ruby-forum.com/t/undefined-method-each-in-acts-as-taggable-on-with-rails-3-beta-3-and-ruby-1-9/187671 "2010-04-27T17:43:48Z")

</div>

Hi I am trying to use acts\_as\_taggable\_on in my new projects. But I got Error when I try to save tags. undefined method \`each’ for “\[\]”:String NoMethodError: undefined method each' for "":String from C:/Ruby19/lib/…

---

## [Swf\_fu in rails](https://www.ruby-forum.com/t/swf-fu-in-rails/187672)

<div class="topic-metadata">

**Author:** [@stuckonrails](https://www.ruby-forum.com/u/stuckonrails)\
**Replies:** 0\
**Last updated:** [April 27, 2010, 5:43pm UTC](https://www.ruby-forum.com/t/swf-fu-in-rails/187672 "2010-04-27T17:43:48Z")

</div>

Ok, this is my problem. I am trying to embed an .swf file into my webpage using swf\_fu. I installed the gem from my applications folder and added the rake task install to my rake file as per the instructions on the s…

---

## [Uncorrect encoding](https://www.ruby-forum.com/t/uncorrect-encoding/187669)

<div class="topic-metadata">

**Author:** [@yerlan\_k](https://www.ruby-forum.com/u/yerlan_k)\
**Replies:** 0\
**Last updated:** [April 27, 2010, 5:38pm UTC](https://www.ruby-forum.com/t/uncorrect-encoding/187669 "2010-04-27T17:38:43Z")

</div>

I’m have a rails project. I’m make following: script/generate scaffold product title:string description:text image\_url:string as in book(Agile Web development with Rails) and rake db:migrate. When I’m create a new pro…

---

## [To nest or not to nest: RESTful style](https://www.ruby-forum.com/t/to-nest-or-not-to-nest-restful-style/187536)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 4\
**Last updated:** [April 27, 2010, 5:28pm UTC](https://www.ruby-forum.com/t/to-nest-or-not-to-nest-restful-style/187536 "2010-04-27T17:28:48Z")

</div>

In our world: There are many landlords. Landlords have many buildings. Buildings have many tenants. One way to structure the routes would be: /landlords/:landlord\_id /landlords/:landlord\_id/buildings/:building\_id …

---

## [Regular expression problem](https://www.ruby-forum.com/t/regular-expression-problem/187648)

<div class="topic-metadata">

**Author:** [@hunt](https://www.ruby-forum.com/u/hunt)\
**Replies:** 6\
**Last updated:** [April 27, 2010, 4:31pm UTC](https://www.ruby-forum.com/t/regular-expression-problem/187648 "2010-04-27T16:31:18Z")

</div>

var text=“Afganistan (+86)” var code=text.sub(/\\w+/, ‘’) result: code = (+86) var text = “Antigua and Barbuda (+1268)” var code=text.sub(/\\w+/, ‘’) result : code = and Barbuda (+1268)" what regular expression I can…

---

## [Translation Failure](https://www.ruby-forum.com/t/translation-failure/187661)

<div class="topic-metadata">

**Author:** [@LeonS](https://www.ruby-forum.com/u/LeonS)\
**Replies:** 1\
**Last updated:** [April 27, 2010, 3:16pm UTC](https://www.ruby-forum.com/t/translation-failure/187661 "2010-04-27T15:16:16Z")

</div>

Hi, i’m getting a translation failure: translation data {:username=\>“Benutzername”} can not be used with :count =\> 1 What does this means? In my de.yml File i wrote in the activerecord part: models: user: …

---

## [Picasa on a rails application](https://www.ruby-forum.com/t/picasa-on-a-rails-application/187640)

<div class="topic-metadata">

**Author:** [@swetha](https://www.ruby-forum.com/u/swetha)\
**Replies:** 1\
**Last updated:** [April 27, 2010, 2:52pm UTC](https://www.ruby-forum.com/t/picasa-on-a-rails-application/187640 "2010-04-27T14:52:47Z")

</div>

Hi friends, I have a requirement to import picasa photos into rails application. (Similar to the option “import from picasa” in orkut). Do we have any plugin’s to access picasa pictures. Help needed.Thankyou.

---

## [POST a JSON to and API](https://www.ruby-forum.com/t/post-a-json-to-and-api/187658)

<div class="topic-metadata">

**Author:** [@face7hill](https://www.ruby-forum.com/u/face7hill)\
**Replies:** 0\
**Last updated:** [April 27, 2010, 2:34pm UTC](https://www.ruby-forum.com/t/post-a-json-to-and-api/187658 "2010-04-27T14:34:05Z")

</div>

Hello Folks, I’m trying to POST a JSON object to an API: { “input”: “http://www.example.com/input/video.mov”, “output”: \[ { “base\_url”: “http://www.example.com/output/”, “filename”: “video.mp4”, “thumbnails”: { …

---

## [Lots of views for a single controller](https://www.ruby-forum.com/t/lots-of-views-for-a-single-controller/187603)

<div class="topic-metadata">

**Author:** [@richardsugg](https://www.ruby-forum.com/u/richardsugg)\
**Replies:** 3\
**Last updated:** [April 27, 2010, 2:09pm UTC](https://www.ruby-forum.com/t/lots-of-views-for-a-single-controller/187603 "2010-04-27T14:09:32Z")

</div>

I’m new to rails and would like some guidance on how to proceed. It’s kind of hard to hold the entire framework in my head and work through an issue, but if you can give me the high-level concepts, I should be able t…

---

## [Ruby eval function](https://www.ruby-forum.com/t/ruby-eval-function/187653)

<div class="topic-metadata">

**Author:** [@kevid](https://www.ruby-forum.com/u/kevid)\
**Replies:** 0\
**Last updated:** [April 27, 2010, 1:28pm UTC](https://www.ruby-forum.com/t/ruby-eval-function/187653 "2010-04-27T13:28:31Z")

</div>

Hi all, I have the code below from “mechanize gem” \[ the file is module.rb\]. am a newbie in ruby. Could anyone help me redesign the code below to use either (a) block eval OR (b) not use eval at all. Thoughts ? c…

---

## [Jruby-openssl](https://www.ruby-forum.com/t/jruby-openssl/187652)

<div class="topic-metadata">

**Author:** [@veena](https://www.ruby-forum.com/u/veena)\
**Replies:** 0\
**Last updated:** [April 27, 2010, 12:57pm UTC](https://www.ruby-forum.com/t/jruby-openssl/187652 "2010-04-27T12:57:27Z")

</div>

Hai friends, I am sending emails using the GMail mail server with TLS. I need to install openssl for that functionality. But whenever i try to install it using jruby -S gem install jruby-openssl it is giving me erro…

---

## [Ruby on rails and ruby gems vanished from cpanel theme x3](https://www.ruby-forum.com/t/ruby-on-rails-and-ruby-gems-vanished-from-cpanel-theme-x3/187649)

<div class="topic-metadata">

**Author:** [@Terry\_Robertson](https://www.ruby-forum.com/u/Terry_Robertson)\
**Replies:** 0\
**Last updated:** [April 27, 2010, 12:14pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-and-ruby-gems-vanished-from-cpanel-theme-x3/187649 "2010-04-27T12:14:10Z")

</div>

Clints have reported that overnighr Ruby on Rails and Ruby Gems have vanished from their cpanel x3 themes, but i have some clients uing the cpanel theme rvblue and it is still displayed, so this shows that it is still…

---

## [Establish\_connection issues](https://www.ruby-forum.com/t/establish-connection-issues/187646)

<div class="topic-metadata">

**Author:** [@DanC](https://www.ruby-forum.com/u/DanC)\
**Replies:** 0\
**Last updated:** [April 27, 2010, 11:37am UTC](https://www.ruby-forum.com/t/establish-connection-issues/187646 "2010-04-27T11:37:17Z")

</div>

Hi, I have created a new app but I would like to use some database tables from another application - so I am trying to use establish\_connection Here is my code… Model file class User \< ActiveRecord::Base establish\_…

---

## [Philosophical question about MVC](https://www.ruby-forum.com/t/philosophical-question-about-mvc/187588)

<div class="topic-metadata">

**Author:** [@Antonio\_Tapiador\_de](https://www.ruby-forum.com/u/Antonio_Tapiador_de)\
**Replies:** 2\
**Last updated:** [April 27, 2010, 10:06am UTC](https://www.ruby-forum.com/t/philosophical-question-about-mvc/187588 "2010-04-27T10:06:34Z")

</div>

Hi folks, I am working on Station, a Rails Engine \[1\] that supports authorization among other things. Using Station, you can ask a model about authorization, for example: post.authorize?(permission, :to =\> current\_u…

---

## [Exception handling](https://www.ruby-forum.com/t/exception-handling/187584)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 3\
**Last updated:** [April 27, 2010, 9:46am UTC](https://www.ruby-forum.com/t/exception-handling/187584 "2010-04-27T09:46:04Z")

</div>

Hi I have controller edit action like def edit begin @user = User.find(params\[:id\]) rescue ActiveRecord::RecordNotFound logger.warn “User with id #{current\_user.id} tried to edit user with id #{params\[:id\]}” rend…

---

## [Ruby:0:in \`require': no such file to load -- oci8 (LoadError)](https://www.ruby-forum.com/t/rubyin-require-no-such-file-to-load-oci8-loaderror/187610)

<div class="topic-metadata">

**Author:** [@kimda](https://www.ruby-forum.com/u/kimda)\
**Replies:** 5\
**Last updated:** [April 27, 2010, 9:32am UTC](https://www.ruby-forum.com/t/rubyin-require-no-such-file-to-load-oci8-loaderror/187610 "2010-04-27T09:32:00Z")

</div>

Hi, I am been struggling with oracle db connection from RoR app in my new windows machine which I was able to it n other windows machine a couple of years ago. I installed everything (ruby, rubygem and oracle instant…

---

## [UBUNTU 10.04 and rails?](https://www.ruby-forum.com/t/ubuntu-10-04-and-rails/187628)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 4\
**Last updated:** [April 27, 2010, 9:24am UTC](https://www.ruby-forum.com/t/ubuntu-10-04-and-rails/187628 "2010-04-27T09:24:23Z")

</div>

I’m currently running ubuntu 9.10 karmic , and i know that 10.04 is coming out this week. I’m currently in the middle of a project, and I’m not sure if Rails still works with 10.04. Also, do i lose all my database ta…

---

## [/lib/rack/request.rb in my gem - is this reserved?](https://www.ruby-forum.com/t/lib-rack-request-rb-in-my-gem-is-this-reserved/187583)

<div class="topic-metadata">

**Author:** [@k-b](https://www.ruby-forum.com/u/k-b)\
**Replies:** 2\
**Last updated:** [April 27, 2010, 8:33am UTC](https://www.ruby-forum.com/t/lib-rack-request-rb-in-my-gem-is-this-reserved/187583 "2010-04-27T08:33:27Z")

</div>

Hi! I write a gem at the moment. The Gem need to register during the process in the rack middleware. So I make an folder “rack” inside my “lib” folder. I called the file “request.rb” because it keeps track of request…

---

## [Action\_mailer - No Errors, but no emails sent](https://www.ruby-forum.com/t/action-mailer-no-errors-but-no-emails-sent/187634)

<div class="topic-metadata">

**Author:** [@brent](https://www.ruby-forum.com/u/brent)\
**Replies:** 2\
**Last updated:** [April 27, 2010, 3:49am UTC](https://www.ruby-forum.com/t/action-mailer-no-errors-but-no-emails-sent/187634 "2010-04-27T03:49:01Z")

</div>

Hello, I am trying to mail messages. I’m using virtually the same code I did locally, and I got it to work (using Gmail). But not that I test it from my hosting it won’t work. Everything is setup properly. I can even…

---

## [Rails I18n](https://www.ruby-forum.com/t/rails-i18n/187587)

<div class="topic-metadata">

**Author:** [@johndel](https://www.ruby-forum.com/u/johndel)\
**Replies:** 11\
**Last updated:** [April 27, 2010, 3:34am UTC](https://www.ruby-forum.com/t/rails-i18n/187587 "2010-04-27T03:34:23Z")

</div>

I was just wondering about locales and .yml files. Is it better to store the multilanguage strings in .yml files than in databases? And if yes, why? I was also wondering how rails are loading this files (for example, …

---

## [Looking for JQuery/JQueryUI 'NInja' - willing to pay right individual](https://www.ruby-forum.com/t/looking-for-jquery-jqueryui-ninja-willing-to-pay-right-individual/187631)

<div class="topic-metadata">

**Author:** [@dekhaus](https://www.ruby-forum.com/u/dekhaus)\
**Replies:** 0\
**Last updated:** [April 27, 2010, 2:55am UTC](https://www.ruby-forum.com/t/looking-for-jquery-jqueryui-ninja-willing-to-pay-right-individual/187631 "2010-04-27T02:55:45Z")

</div>

Hi All I’m looking for a JQuery ‘Ninja’ - someone with extensive experience using JQueryUI - specifically the JQueryUI Widgets (Tab, Dialog, Button etc …). I'm interested in paying someone to help me use this awe…

---

## [Find distinct values in an array of database results](https://www.ruby-forum.com/t/find-distinct-values-in-an-array-of-database-results/186956)

<div class="topic-metadata">

**Author:** [@joemanfoo](https://www.ruby-forum.com/u/joemanfoo)\
**Replies:** 8\
**Last updated:** [April 27, 2010, 2:02am UTC](https://www.ruby-forum.com/t/find-distinct-values-in-an-array-of-database-results/186956 "2010-04-27T02:02:23Z")

</div>

My problem is similar to Distinct selection - Rails - Ruby-Forum, but I don’t understand how the asker solved the problem. I have a model called issues. It returns results that contain a field called “status”. The res…

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

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