# Rails

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

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

---

## ["Plugin not found"](https://www.ruby-forum.com/t/plugin-not-found/184091)

<div class="topic-metadata">

**Author:** [@marclafia](https://www.ruby-forum.com/u/marclafia)\
**Replies:** 6\
**Last updated:** [March 12, 2010, 11:05pm UTC](https://www.ruby-forum.com/t/plugin-not-found/184091 "2010-03-12T23:05:23Z")

</div>

I’m using Ruby 1.8.7 and Rails 2.3.5. I’m in a Windows XP environment. Whenever I run ruby script/plugin install yada/yada/yada I get: Plugin not found \[“yada yada yada\]” It doesn’t matter if I use git://, http://git.…

---

## [Association generated methods not working](https://www.ruby-forum.com/t/association-generated-methods-not-working/185065)

<div class="topic-metadata">

**Author:** [@mjcharl](https://www.ruby-forum.com/u/mjcharl)\
**Replies:** 2\
**Last updated:** [March 12, 2010, 9:50pm UTC](https://www.ruby-forum.com/t/association-generated-methods-not-working/185065 "2010-03-12T21:50:23Z")

</div>

I’m definitely a noob to rails so sorry if this is trivial. I have tables with associations on them. The associations are supposed to add methods to my models like model.others and model.others= and so on but when I…

---

## [Globalize2 and Versioning](https://www.ruby-forum.com/t/globalize2-and-versioning/185067)

<div class="topic-metadata">

**Author:** [@dbkbali](https://www.ruby-forum.com/u/dbkbali)\
**Replies:** 0\
**Last updated:** [March 12, 2010, 9:03pm UTC](https://www.ruby-forum.com/t/globalize2-and-versioning/185067 "2010-03-12T21:03:04Z")

</div>

I have spent quiet a bit of time getting Globalize2 successfully working in our application. I am now trying to implement a versioning system for some of the activerecord models that have translations and was wonderin…

---

## [How to make an array available to all views](https://www.ruby-forum.com/t/how-to-make-an-array-available-to-all-views/184918)

<div class="topic-metadata">

**Author:** [@capsized](https://www.ruby-forum.com/u/capsized)\
**Replies:** 19\
**Last updated:** [March 12, 2010, 7:07pm UTC](https://www.ruby-forum.com/t/how-to-make-an-array-available-to-all-views/184918 "2010-03-12T19:07:11Z")

</div>

Hi, I have an application layout that is used to create the general layout for all pages. However, I seem to struggle to find out how to declare variables like arrays so that they are available everytime that layout …

---

## [Mass update of associated models](https://www.ruby-forum.com/t/mass-update-of-associated-models/185060)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [March 12, 2010, 6:53pm UTC](https://www.ruby-forum.com/t/mass-update-of-associated-models/185060 "2010-03-12T18:53:43Z")

</div>

I am importing historical client data from a CODASYL DBMS into PostgreSQL via an xml document. I am at the point where I am implementing the actual inserts/updates using ActiveRecord. In the new system a Client belo…

---

## [\`bin\_path' for Gem:Module (NoMethodError)](https://www.ruby-forum.com/t/bin-path-for-gem-module-nomethoderror/184921)

<div class="topic-metadata">

**Author:** [@binbash-x](https://www.ruby-forum.com/u/binbash-x)\
**Replies:** 11\
**Last updated:** [March 12, 2010, 6:44pm UTC](https://www.ruby-forum.com/t/bin-path-for-gem-module-nomethoderror/184921 "2010-03-12T18:44:56Z")

</div>

rails expense /usr/local/bin/rails:19: undefined method \`bin\_path’ for Gem:Module (NoMethodError). I keep getting the above error after installing rails. I have gone through every step at hivelogic. It worked once a…

---

## [Amateur's effort to add a new page to his website](https://www.ruby-forum.com/t/amateurs-effort-to-add-a-new-page-to-his-website/185050)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 2\
**Last updated:** [March 12, 2010, 6:32pm UTC](https://www.ruby-forum.com/t/amateurs-effort-to-add-a-new-page-to-his-website/185050 "2010-03-12T18:32:03Z")

</div>

Hi All, I’ve got a friend who’s had a simple website up for years: www.xxxx.com. The site was obviously generated with some kind of fill-in-the-blanks facility. He wants to add a page to his site for his mom’s stuff…

---

## [Email section](https://www.ruby-forum.com/t/email-section/184901)

<div class="topic-metadata">

**Author:** [@manish\_belsare](https://www.ruby-forum.com/u/manish_belsare)\
**Replies:** 6\
**Last updated:** [March 12, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/email-section/184901 "2010-03-12T18:03:12Z")

</div>

Sir , I want to implement email section in ma web application… so i found the method ‘server\_setting’ for it… Following is the method: config.action\_mailer.server\_settings = { :address =\> “smtp.gmail.com” , :port =\> …

---

## [We need this (codebubbles)](https://www.ruby-forum.com/t/we-need-this-codebubbles/184998)

<div class="topic-metadata">

**Author:** [@juli](https://www.ruby-forum.com/u/juli)\
**Replies:** 1\
**Last updated:** [March 12, 2010, 5:47pm UTC](https://www.ruby-forum.com/t/we-need-this-codebubbles/184998 "2010-03-12T17:47:34Z")

</div>

I think something like this would benefit Ruby & Rails development a huge amount. I miss the capacities the Smalltalk (+Self) browsers enabled the facilitation of. The disadvantage was that it was an “entire closed wo…

---

## [Need example of a drop-down field in Rails 2.3.5](https://www.ruby-forum.com/t/need-example-of-a-drop-down-field-in-rails-2-3-5/185033)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 2\
**Last updated:** [March 12, 2010, 4:17pm UTC](https://www.ruby-forum.com/t/need-example-of-a-drop-down-field-in-rails-2-3-5/185033 "2010-03-12T16:17:26Z")

</div>

Hi All, I’ve looked at a few of my Rails 2 books & Google to no avail in the effort to find an example of using a drop-down control. Any suggestions (especially a URL or two)? Thanks in Advance, Richard

---

## [Same controller and database, different views based on domain name](https://www.ruby-forum.com/t/same-controller-and-database-different-views-based-on-domain-name/182188)

<div class="topic-metadata">

**Author:** [@eugenio](https://www.ruby-forum.com/u/eugenio)\
**Replies:** 4\
**Last updated:** [March 12, 2010, 2:58pm UTC](https://www.ruby-forum.com/t/same-controller-and-database-different-views-based-on-domain-name/182188 "2010-03-12T14:58:53Z")

</div>

what is the easiest way to achieve that result? i would like to keep controllers and models the same for all the “applications”, which, in fact, are the same. They only appear different (the views, the css, and a para…

---

## [Acts\_as\_tree test fails : duplicate entry # for key #](https://www.ruby-forum.com/t/acts-as-tree-test-fails-duplicate-entry-for-key/184994)

<div class="topic-metadata">

**Author:** [@steve.gooberman-hil](https://www.ruby-forum.com/u/steve.gooberman-hil)\
**Replies:** 1\
**Last updated:** [March 12, 2010, 1:19pm UTC](https://www.ruby-forum.com/t/acts-as-tree-test-fails-duplicate-entry-for-key/184994 "2010-03-12T13:19:29Z")

</div>

Hi, I’ve set up a model as follows class EquipmentPrice \< ActiveRecord::Base acts\_as\_tree :order =\> “id” … end which has the following db migration class CreateEquipmentPrices \< ActiveRecord::Migration def self.u…

---

## [Time - str\_to\_date](https://www.ruby-forum.com/t/time-str-to-date/185038)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 5\
**Last updated:** [March 12, 2010, 11:03am UTC](https://www.ruby-forum.com/t/time-str-to-date/185038 "2010-03-12T11:03:41Z")

</div>

i have a time field in my table. it is of varchar data type. i want compare the time between given times. my stored time format is 09:25:01 am. is there any way to compare my time field ? i don t have any idea about …

---

## [Method of rolling up text](https://www.ruby-forum.com/t/method-of-rolling-up-text/185035)

<div class="topic-metadata">

**Author:** [@sipho](https://www.ruby-forum.com/u/sipho)\
**Replies:** 1\
**Last updated:** [March 12, 2010, 10:12am UTC](https://www.ruby-forum.com/t/method-of-rolling-up-text/185035 "2010-03-12T10:12:44Z")

</div>

i have stuck in rolling up text method in ruby View this message in context: http://old.nabble.com/method-of-rolling-up-text-tp27873768p27873768.html Sent from the RubyOnRails Users mailing list archive at Nabble.com. …

---

## [Local variable](https://www.ruby-forum.com/t/local-variable/184871)

<div class="topic-metadata">

**Author:** [@kevid](https://www.ruby-forum.com/u/kevid)\
**Replies:** 4\
**Last updated:** [March 12, 2010, 8:27am UTC](https://www.ruby-forum.com/t/local-variable/184871 "2010-03-12T08:27:23Z")

</div>

Hi all, Please, is it possible passing a local variable (specifically of type “integer”) from a view to controller using the “link\_to” function in rails. All answers are appreciated.

---

## [Integrate google ads in rails application](https://www.ruby-forum.com/t/integrate-google-ads-in-rails-application/184972)

<div class="topic-metadata">

**Author:** [@mahesh\_s](https://www.ruby-forum.com/u/mahesh_s)\
**Replies:** 2\
**Last updated:** [March 12, 2010, 7:23am UTC](https://www.ruby-forum.com/t/integrate-google-ads-in-rails-application/184972 "2010-03-12T07:23:35Z")

</div>

Hi friends I would like to integrate the google ads to my project please give some idea to how to integrate the ads Is there any plugin available for this

---

## [Is there a rails way to validate format of an email address?](https://www.ruby-forum.com/t/is-there-a-rails-way-to-validate-format-of-an-email-address/184919)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 10\
**Last updated:** [March 12, 2010, 6:53am UTC](https://www.ruby-forum.com/t/is-there-a-rails-way-to-validate-format-of-an-email-address/184919 "2010-03-12T06:53:10Z")

</div>

How can I validate and email address without using complex reg-ex is there a simple rails way to do this? – Kind Regards, Rajinder Y.

---

## [ActionMailer - attaching a PDF](https://www.ruby-forum.com/t/actionmailer-attaching-a-pdf/184951)

<div class="topic-metadata">

**Author:** [@archfiend997](https://www.ruby-forum.com/u/archfiend997)\
**Replies:** 3\
**Last updated:** [March 12, 2010, 3:42am UTC](https://www.ruby-forum.com/t/actionmailer-attaching-a-pdf/184951 "2010-03-12T03:42:19Z")

</div>

http://pastie.org/863834 The “a.body” appears to want a string, which is why I tried render\_to\_string as shown in the code linked above. This doesn’t work, I get “undefined method for render\_to\_string”. I basically n…

---

## [Decimal fields generated in Rails 2.3.5 act like strings, sort of](https://www.ruby-forum.com/t/decimal-fields-generated-in-rails-2-3-5-act-like-strings-sort-of/184950)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 2\
**Last updated:** [March 12, 2010, 1:28am UTC](https://www.ruby-forum.com/t/decimal-fields-generated-in-rails-2-3-5-act-like-strings-sort-of/184950 "2010-03-12T01:28:19Z")

</div>

Hi All, I just created a new CRUD “expense” (using Rails 2.3.5 scaffold) which included “amount:decimal”. When I: populated the amount field of a new expense with 5 characters: 12.50 and saved the new record I got…

---

## [Migration Help](https://www.ruby-forum.com/t/migration-help/185026)

<div class="topic-metadata">

**Author:** [@Sumeet\_P](https://www.ruby-forum.com/u/Sumeet_P)\
**Replies:** 0\
**Last updated:** [March 12, 2010, 12:26am UTC](https://www.ruby-forum.com/t/migration-help/185026 "2010-03-12T00:26:15Z")

</div>

Hi, I need to create a migration that will populate data in my table. Table is like Column table (id, column\_name, fa\_module\_id) column\_name stores column name of the tables existing in our database for example I h…

---

## [Strange error, possibly coming from ActiveRecord](https://www.ruby-forum.com/t/strange-error-possibly-coming-from-activerecord/185024)

<div class="topic-metadata">

**Author:** [@artemave](https://www.ruby-forum.com/u/artemave)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 11:11pm UTC](https://www.ruby-forum.com/t/strange-error-possibly-coming-from-activerecord/185024 "2010-03-11T23:11:21Z")

</div>

I didn’t get much help from stackoverflow people, hence trying heavy artillery here. P.S. In case posting links from other forums (as opposed to reposting the question) is considered a bad style, I’m more than happ…

---

## [Find Last Errors](https://www.ruby-forum.com/t/find-last-errors/185010)

<div class="topic-metadata">

**Author:** [@kampers](https://www.ruby-forum.com/u/kampers)\
**Replies:** 6\
**Last updated:** [March 11, 2010, 11:07pm UTC](https://www.ruby-forum.com/t/find-last-errors/185010 "2010-03-11T23:07:15Z")

</div>

Hi guys: This is driving me crazy. Can someone please point me in the right direction: I’m trying to get the last record from my table. Every time I do this, it tells me there is no method, other than id. theconditio…

---

## [Call a controller method from a view](https://www.ruby-forum.com/t/call-a-controller-method-from-a-view/184959)

<div class="topic-metadata">

**Author:** [@gregm](https://www.ruby-forum.com/u/gregm)\
**Replies:** 4\
**Last updated:** [March 11, 2010, 10:35pm UTC](https://www.ruby-forum.com/t/call-a-controller-method-from-a-view/184959 "2010-03-11T22:35:35Z")

</div>

Hi, I am trying to call a controller method from my view, but I get an error and I don’t know how to correct it. What i am trying to do: I am in the edit form of the model Product, and products can have many ingredi…

---

## [Table aliases in a JOIN (was "discriminating two FK refs..")](https://www.ruby-forum.com/t/table-aliases-in-a-join-was-discriminating-two-fk-refs/185016)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 1\
**Last updated:** [March 11, 2010, 10:07pm UTC](https://www.ruby-forum.com/t/table-aliases-in-a-join-was-discriminating-two-fk-refs/185016 "2010-03-11T22:07:32Z")

</div>

Note: I’ve got SQL doing what I need. Now I just need ActiveRecord to produce the corresponding query. Consequently, this is a re-framing of the post Discriminating two FK references into one table? - Rails - Ruby-F…

---

## [FreeImage exception error](https://www.ruby-forum.com/t/freeimage-exception-error/185019)

<div class="topic-metadata">

**Author:** [@cswebgrl](https://www.ruby-forum.com/u/cswebgrl)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 9:37pm UTC](https://www.ruby-forum.com/t/freeimage-exception-error/185019 "2010-03-11T21:37:24Z")

</div>

Hi, I just started getting this error on my production machine with a jpg. FreeImage exception for type ???: IPTC: Invalid key ‘Tag 0x025C’ Here’s a portion of the error output /var/www/website/releases/2010031120074…

---

## [Discriminating two FK references into one table?](https://www.ruby-forum.com/t/discriminating-two-fk-references-into-one-table/184889)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 6\
**Last updated:** [March 11, 2010, 9:08pm UTC](https://www.ruby-forum.com/t/discriminating-two-fk-references-into-one-table/184889 "2010-03-11T21:08:36Z")

</div>

My question MIGHT be "ActiveRecord play nice with multiple views into a table? I ask because my application has a single DateDimension table (heavily ornamented date objects). Each SalesFact has TWO foreign keys into…

---

## [Load seeds.rb in test and no truncating data](https://www.ruby-forum.com/t/load-seeds-rb-in-test-and-no-truncating-data/185002)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 6\
**Last updated:** [March 11, 2010, 8:55pm UTC](https://www.ruby-forum.com/t/load-seeds-rb-in-test-and-no-truncating-data/185002 "2010-03-11T20:55:31Z")

</div>

Hello, I need to load the seeds.rb into my test environment in order to test the controllers. I just added: require “#{Rails.root}/db/seeds.rb” to test\_helper.rb But, of course, it’s seeding the data whenever I tes…

---

## [How database driven content localization is done?](https://www.ruby-forum.com/t/how-database-driven-content-localization-is-done/185012)

<div class="topic-metadata">

**Author:** [@karikrishni](https://www.ruby-forum.com/u/karikrishni)\
**Replies:** 3\
**Last updated:** [March 11, 2010, 8:41pm UTC](https://www.ruby-forum.com/t/how-database-driven-content-localization-is-done/185012 "2010-03-11T20:41:26Z")

</div>

Hi, We are developing a site which needs to be localized, But we store the content into the database records. Anyone has ideas about how to localize a database based application? It should not use the google translat…

---

## [Scite on Ruby 1.9](https://www.ruby-forum.com/t/scite-on-ruby-1-9/184999)

<div class="topic-metadata">

**Author:** [@keletiki](https://www.ruby-forum.com/u/keletiki)\
**Replies:** 1\
**Last updated:** [March 11, 2010, 7:26pm UTC](https://www.ruby-forum.com/t/scite-on-ruby-1-9/184999 "2010-03-11T19:26:28Z")

</div>

Hi everybody, I am a novice in programming and I am actually having fun with Ruby. With Ruby 1.8.6, scite works well. However, this helpful tool does not come with Ruby 1.9. My question is to know how I can make scit…

---

## [Where to find plugins?](https://www.ruby-forum.com/t/where-to-find-plugins/184922)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 3\
**Last updated:** [March 11, 2010, 7:16pm UTC](https://www.ruby-forum.com/t/where-to-find-plugins/184922 "2010-03-11T19:16:11Z")

</div>

Is there another place than agilewebdevelopment.com/plugins to find a list of Rails plugins?

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

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