# Rails

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

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

---

## [Mysql gem error on solaris 10 sparc](https://www.ruby-forum.com/t/mysql-gem-error-on-solaris-10-sparc/171736)

<div class="topic-metadata">

**Author:** [@mka](https://www.ruby-forum.com/u/mka)\
**Replies:** 0\
**Last updated:** [July 8, 2009, 2:19pm UTC](https://www.ruby-forum.com/t/mysql-gem-error-on-solaris-10-sparc/171736 "2009-07-08T14:19:34Z")

</div>

root@xxx:/opt/gitorious/config# gem install mysql Building native extensions. This could take a while… Successfully installed mysql-2.7 1 gem installed Installing ri documentation for mysql-2.7… Installing RDoc doc…

---

## [Rails Connection Pool With Firewall](https://www.ruby-forum.com/t/rails-connection-pool-with-firewall/171735)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 0\
**Last updated:** [July 8, 2009, 1:34pm UTC](https://www.ruby-forum.com/t/rails-connection-pool-with-firewall/171735 "2009-07-08T13:34:30Z")

</div>

Does anyone know how to properly configure rails connection pool to behave through a firewall? We are seeing a lot of timeout errors with activerecord (webapp has firewall between it and the firewall) and not sure ho…

---

## [Tricky find on associated conditions](https://www.ruby-forum.com/t/tricky-find-on-associated-conditions/171728)

<div class="topic-metadata">

**Author:** [@tuktuk](https://www.ruby-forum.com/u/tuktuk)\
**Replies:** 3\
**Last updated:** [July 8, 2009, 10:53am UTC](https://www.ruby-forum.com/t/tricky-find-on-associated-conditions/171728 "2009-07-08T10:53:24Z")

</div>

My head is spinning a bit this morning - can somebody help me with this? Given these two models with the following associations: class Article \< ActiveRecord::Base belongs\_to :category has an attribute called “publi…

---

## [\[ANN\] a helper to DRY-up internationalized \<title\>'s (http://github.com/lwe/page\_title\_helper)](https://www.ruby-forum.com/t/ann-a-helper-to-dry-up-internationalized-title-s-http-github-com-lwe-page-title-helper/171732)

<div class="topic-metadata">

**Author:** [@lwe](https://www.ruby-forum.com/u/lwe)\
**Replies:** 0\
**Last updated:** [July 8, 2009, 10:42am UTC](https://www.ruby-forum.com/t/ann-a-helper-to-dry-up-internationalized-title-s-http-github-com-lwe-page-title-helper/171732 "2009-07-08T10:42:08Z")

</div>

Hey there Code and (longer) quick-start guide can also be found here: To customize page titles there are many different methods, among the most popular (and best looking) is certainly: #30 Pretty Page Title - RailsC…

---

## [Multiple associated records](https://www.ruby-forum.com/t/multiple-associated-records/171628)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 5\
**Last updated:** [July 8, 2009, 9:10am UTC](https://www.ruby-forum.com/t/multiple-associated-records/171628 "2009-07-08T09:10:25Z")

</div>

I am dealing with a legacy db which is limiting my options here. I have… class Stockmaster \< ActiveRecord::Base set\_table\_name “stockmaster” set\_primary\_key “stockid” has\_many :prices def wholesale\_price(stockid) …

---

## [Like "observe\_field"](https://www.ruby-forum.com/t/like-observe-field/171666)

<div class="topic-metadata">

**Author:** [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Replies:** 1\
**Last updated:** [July 8, 2009, 6:10am UTC](https://www.ruby-forum.com/t/like-observe-field/171666 "2009-07-08T06:10:55Z")

</div>

I don’t see where this can be done in rails directly, but I am hoping some creative mind can see how to use dvarious rails pieces to do it. I need an ajax request like “observe\_field” that triggers an action so as to …

---

## [Find(:all) problem](https://www.ruby-forum.com/t/find-all-problem/171712)

<div class="topic-metadata">

**Author:** [@mpaxton](https://www.ruby-forum.com/u/mpaxton)\
**Replies:** 3\
**Last updated:** [July 8, 2009, 1:14am UTC](https://www.ruby-forum.com/t/find-all-problem/171712 "2009-07-08T01:14:23Z")

</div>

Newbie question, trying to get data from a mysql database. I can write to it fine, but when I try to retrieve it I get the following error message: C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/a…

---

## [Help convert php code to eruby?](https://www.ruby-forum.com/t/help-convert-php-code-to-eruby/196981)

<div class="topic-metadata">

**Author:** [@rayholland](https://www.ruby-forum.com/u/rayholland)\
**Replies:** 0\
**Last updated:** [July 8, 2009, 12:35am UTC](https://www.ruby-forum.com/t/help-convert-php-code-to-eruby/196981 "2009-07-08T00:35:29Z")

</div>

Hi, I want to convert my site from php to eruby(no rails). I’m really new to ruby and need some help. The most trival php code i use in my web-page is to use php for password protect my pages. Can someone help me to…

---

## [Combining Polymorphic Results from Related Records?](https://www.ruby-forum.com/t/combining-polymorphic-results-from-related-records/171709)

<div class="topic-metadata">

**Author:** [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Replies:** 0\
**Last updated:** [July 8, 2009, 12:28am UTC](https://www.ruby-forum.com/t/combining-polymorphic-results-from-related-records/171709 "2009-07-08T00:28:18Z")

</div>

Hello, I am trying to combine results on two related associations. I have some models set up as: class Vendor \< ActiveRecord::Base has\_many :vendor\_staffs has\_many :vendor\_codes, :as =\> :vendor\_codable end class …

---

## [Route generator using incorrect host](https://www.ruby-forum.com/t/route-generator-using-incorrect-host/171703)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 0\
**Last updated:** [July 7, 2009, 11:48pm UTC](https://www.ruby-forum.com/t/route-generator-using-incorrect-host/171703 "2009-07-07T23:48:29Z")

</div>

Hi there, Two times in the last three months I’ve had Rails start serving up some links as .com/page rather than mysite.com/page. The are sites are completely unrelated to my site, and I have no idea why it did it. …

---

## [Permalink\_fu on using Rails 1.2.6](https://www.ruby-forum.com/t/permalink-fu-on-using-rails-1-2-6/171704)

<div class="topic-metadata">

**Author:** [@cswebgrl](https://www.ruby-forum.com/u/cswebgrl)\
**Replies:** 0\
**Last updated:** [July 7, 2009, 10:29pm UTC](https://www.ruby-forum.com/t/permalink-fu-on-using-rails-1-2-6/171704 "2009-07-07T22:29:27Z")

</div>

Hi, I’m trying to see if I can get permalink\_fu to work with Rails 1.2.6. Has anyone here been able to make it work successfully? I had to add a fix for the extract\_options method, but now I’m getting undefined metho…

---

## [Executing js when a partial loads](https://www.ruby-forum.com/t/executing-js-when-a-partial-loads/171643)

<div class="topic-metadata">

**Author:** [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Replies:** 12\
**Last updated:** [July 7, 2009, 7:34pm UTC](https://www.ruby-forum.com/t/executing-js-when-a-partial-loads/171643 "2009-07-07T19:34:19Z")

</div>

In my view I have a: \<%= render :partial =\> ‘uplog’ %\> and the partial is shown below. Note there is js in it which I thought got executed on load (but, I have found out this does NOT happen when a partial is loaded.…

---

## [Data exists in table? Checkbox Problem](https://www.ruby-forum.com/t/data-exists-in-table-checkbox-problem/171668)

<div class="topic-metadata">

**Author:** [@coldie](https://www.ruby-forum.com/u/coldie)\
**Replies:** 5\
**Last updated:** [July 7, 2009, 5:36pm UTC](https://www.ruby-forum.com/t/data-exists-in-table-checkbox-problem/171668 "2009-07-07T17:36:10Z")

</div>

Hi, I want to add a tag-search to my page. The tags can be given to each item by clicking a checkbox. The value of the checkboxes is saved in the table using the check\_box\_tag. By editing the tags of an item (refresh…

---

## [Compare ror vs php vs .net](https://www.ruby-forum.com/t/compare-ror-vs-php-vs-net/171655)

<div class="topic-metadata">

**Author:** [@rajendra](https://www.ruby-forum.com/u/rajendra)\
**Replies:** 2\
**Last updated:** [July 7, 2009, 5:27pm UTC](https://www.ruby-forum.com/t/compare-ror-vs-php-vs-net/171655 "2009-07-07T17:27:18Z")

</div>

hi, i am new to ror, how can we rate ror when we campare with php and .net, what are the aspects that we need to consider when comparing ror with php and .net, can anyone mention those aspects and compare them with r…

---

## [Adding data in two tables simul;taneously with Validations](https://www.ruby-forum.com/t/adding-data-in-two-tables-simul-taneously-with-validations/171678)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 1\
**Last updated:** [July 7, 2009, 5:17pm UTC](https://www.ruby-forum.com/t/adding-data-in-two-tables-simul-taneously-with-validations/171678 "2009-07-07T17:17:31Z")

</div>

Hi All, I have 2 tables 1\] user\_infos & 2\] users class UserInfo has\_one :user validates\_presence\_of :city class User belongs\_to :user\_info validates\_presence\_of :first\_name i write following code in my creat…

---

## [Rails/Rake wrongly interpreting command-line?](https://www.ruby-forum.com/t/rails-rake-wrongly-interpreting-command-line/171638)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [July 7, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/rails-rake-wrongly-interpreting-command-line/171638 "2009-07-07T17:13:59Z")

</div>

Hi, I’ve been struggling to get Rails working properly on my Ubuntu box for a couple of weeks now - driving me mad… The current problem is that the “rails” and “rake” commands seem to be wrongly intrepreting the comm…

---

## [Modular website with XML-based backend in Rails?](https://www.ruby-forum.com/t/modular-website-with-xml-based-backend-in-rails/171573)

<div class="topic-metadata">

**Author:** [@sander](https://www.ruby-forum.com/u/sander)\
**Replies:** 3\
**Last updated:** [July 7, 2009, 3:44pm UTC](https://www.ruby-forum.com/t/modular-website-with-xml-based-backend-in-rails/171573 "2009-07-07T15:44:14Z")

</div>

I’ve been asked to find the most appropriate framework with which to implement the following: A website with Modules, which separate (partially user-configurable) style, from user settings, from content. A bit like …

---

## [RoR alternative to mod\_deflate](https://www.ruby-forum.com/t/ror-alternative-to-mod-deflate/171673)

<div class="topic-metadata">

**Author:** [@chero](https://www.ruby-forum.com/u/chero)\
**Replies:** 1\
**Last updated:** [July 7, 2009, 3:39pm UTC](https://www.ruby-forum.com/t/ror-alternative-to-mod-deflate/171673 "2009-07-07T15:39:06Z")

</div>

Hey Everyone, I’m experiencing the following general problem. I have a single instance of mongrel on a shared hosting environment. I’m just a hobbyist so I don’t want to have to spend too much on hosting. Some of …

---

## [Symbol\[int\] not working as expected](https://www.ruby-forum.com/t/symbol-int-not-working-as-expected/171677)

<div class="topic-metadata">

**Author:** [@stuart.coyle](https://www.ruby-forum.com/u/stuart.coyle)\
**Replies:** 1\
**Last updated:** [July 7, 2009, 3:38pm UTC](https://www.ruby-forum.com/t/symbol-int-not-working-as-expected/171677 "2009-07-07T15:38:07Z")

</div>

In Ruby 1.9 Symbol can receive \[\] and convert to a string and then index. I’ve confirmed this works as expected in the Rails console and irb. I have a model with a method\_missing method defined. Like this: def metho…

---

## [Rake db:create:all error](https://www.ruby-forum.com/t/rake-dball-error/171669)

<div class="topic-metadata">

**Author:** [@mka](https://www.ruby-forum.com/u/mka)\
**Replies:** 3\
**Last updated:** [July 7, 2009, 3:05pm UTC](https://www.ruby-forum.com/t/rake-dball-error/171669 "2009-07-07T15:05:21Z")

</div>

Hi, I am getting this error when i execute rake db:create:all /opt/gitorious/vendor/rails/activerecord/lib/active\_record/connection\_adapters/mysql\_adapter.rb:569: \[BUG\] unknown type 0x22 (0xc given) any clues ? -Man…

---

## [Paperclip unit testing](https://www.ruby-forum.com/t/paperclip-unit-testing/171664)

<div class="topic-metadata">

**Author:** [@benol](https://www.ruby-forum.com/u/benol)\
**Replies:** 2\
**Last updated:** [July 7, 2009, 1:36pm UTC](https://www.ruby-forum.com/t/paperclip-unit-testing/171664 "2009-07-07T13:36:54Z")

</div>

Hi, Rails 2.3.2, paperclip 2.2.9.2 How can I unit test my model that has a paperclip attachment? I add to my model: — CODE START — has\_attached\_file :image, :default\_url =\> ‘’ attr\_protected :image\_file\_name, :imag…

---

## [Rails rewrites URL by appending "dispatch.cgi" to URL](https://www.ruby-forum.com/t/rails-rewrites-url-by-appending-dispatch-cgi-to-url/167218)

<div class="topic-metadata">

**Author:** [@augusto](https://www.ruby-forum.com/u/augusto)\
**Replies:** 1\
**Last updated:** [July 7, 2009, 1:33pm UTC](https://www.ruby-forum.com/t/rails-rewrites-url-by-appending-dispatch-cgi-to-url/167218 "2009-07-07T13:33:27Z")

</div>

hi- i have a rails running on a server, but when i access my site as: “http://test.com” it rewrites the URL with the name of the dispatch.cgi script: “http://test.comdispatch.cgi%2Flist\_topics” which then fails to r…

---

## [Rake DB:Create works, but not DB:Migrate, Please help](https://www.ruby-forum.com/t/rake-db-create-works-but-not-db-migrate-please-help/167316)

<div class="topic-metadata">

**Author:** [@naturalkid](https://www.ruby-forum.com/u/naturalkid)\
**Replies:** 1\
**Last updated:** [July 7, 2009, 1:29pm UTC](https://www.ruby-forum.com/t/rake-db-create-works-but-not-db-migrate-please-help/167316 "2009-07-07T13:29:14Z")

</div>

Hi, Having a Postgres related database rake error, wonder if you can give me some suggestion to fix this issue: Environment: Ubuntu Desktop (9.04) 64-bit Postgres SQL 64-Bit (latest official release) Ruby-pg instal…

---

## [Not able to send mails using ruby on rails](https://www.ruby-forum.com/t/not-able-to-send-mails-using-ruby-on-rails/169658)

<div class="topic-metadata">

**Author:** [@devirv](https://www.ruby-forum.com/u/devirv)\
**Replies:** 1\
**Last updated:** [July 7, 2009, 1:27pm UTC](https://www.ruby-forum.com/t/not-able-to-send-mails-using-ruby-on-rails/169658 "2009-07-07T13:27:38Z")

</div>

In environment.rb below configuration details have used ActionMailer::Base.delivery\_method = :smtp ActionMailer::Base.smtp\_settings = { :address =\> “mydomain.com”, :port =\> xx, :domain =\> ‘mydomain.com’, :authentic…

---

## [Problem with acts\_as\_taggable and :uniq option](https://www.ruby-forum.com/t/problem-with-acts-as-taggable-and-uniq-option/171671)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [July 7, 2009, 1:25pm UTC](https://www.ruby-forum.com/t/problem-with-acts-as-taggable-and-uniq-option/171671 "2009-07-07T13:25:45Z")

</div>

I’m using acts\_as\_taggable which provides a polymorphic join table (taggings) between a Tag and some other class of object (Resource in this case). Tagging has the fields “tag”, “taggable\_id” and “taggable\_type”. I’…

---

## [Rails application failed to start properly](https://www.ruby-forum.com/t/rails-application-failed-to-start-properly/170665)

<div class="topic-metadata">

**Author:** [@preethi](https://www.ruby-forum.com/u/preethi)\
**Replies:** 2\
**Last updated:** [July 7, 2009, 1:20pm UTC](https://www.ruby-forum.com/t/rails-application-failed-to-start-properly/170665 "2009-07-07T13:20:00Z")

</div>

Hi I uploaded the rails project that i developed in Linux environment. Upload was successful and when i try to login to that website I’m getting the error “Rails application failed to start properly” What might be t…

---

## [Rails -v Error](https://www.ruby-forum.com/t/rails-v-error/170187)

<div class="topic-metadata">

**Author:** [@jford](https://www.ruby-forum.com/u/jford)\
**Replies:** 1\
**Last updated:** [July 7, 2009, 1:11pm UTC](https://www.ruby-forum.com/t/rails-v-error/170187 "2009-07-07T13:11:04Z")

</div>

Can anyone tell me why I’m getting this error? Thanks. Macintosh:~ jeff$ rails -v /usr/local/lib/ruby/1.8/yaml.rb:9:in require': no such file to load -- stringio (LoadError) from /usr/local/lib/ruby/1.8/yaml.rb:9 from …

---

## [Scope\_out plugin](https://www.ruby-forum.com/t/scope-out-plugin/171665)

<div class="topic-metadata">

**Author:** [@miss\_moviestar](https://www.ruby-forum.com/u/miss_moviestar)\
**Replies:** 1\
**Last updated:** [July 7, 2009, 12:48pm UTC](https://www.ruby-forum.com/t/scope-out-plugin/171665 "2009-07-07T12:48:08Z")

</div>

hi i want to install scope out plugin script/plugin install http://scope-out-rails.googlecode.com/svn/trunk but i get the error plugin not found i use window what should i do? thanks in advance

---

## [Conentent management system in ROR](https://www.ruby-forum.com/t/conentent-management-system-in-ror/171658)

<div class="topic-metadata">

**Author:** [@rajendra](https://www.ruby-forum.com/u/rajendra)\
**Replies:** 4\
**Last updated:** [July 7, 2009, 11:19am UTC](https://www.ruby-forum.com/t/conentent-management-system-in-ror/171658 "2009-07-07T11:19:16Z")

</div>

i am willing to develop a content management system using ROR. somebady told me that, for developing cms, ror is best way. In content management system, what are the different typr of users we have, and how can we giv…

---

## [Testing has\_many](https://www.ruby-forum.com/t/testing-has-many/171647)

<div class="topic-metadata">

**Author:** [@p\_W](https://www.ruby-forum.com/u/p_W)\
**Replies:** 3\
**Last updated:** [July 7, 2009, 6:46am UTC](https://www.ruby-forum.com/t/testing-has-many/171647 "2009-07-07T06:46:56Z")

</div>

I have been developing with RoR for a little but haven’t really dived too much into the testing framework yet ( I know, sacrilege!) . I was wondering about the best way to test a has\_many relationship. Let’s say I h…

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

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