# Rails

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

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

---

## [Can't run method on scaffold index](https://www.ruby-forum.com/t/cant-run-method-on-scaffold-index/171787)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 0\
**Last updated:** [July 9, 2009, 11:01am UTC](https://www.ruby-forum.com/t/cant-run-method-on-scaffold-index/171787 "2009-07-09T11:01:18Z")

</div>

I have this method to parse a url: def parse\_url elements = @article.url.split("/") if(elements\[0\] == "http:") @home = elements\[2\] else @home = elements\[0\] end end In the show method I can just use @home = par…

---

## [Pagination url problem](https://www.ruby-forum.com/t/pagination-url-problem/171725)

<div class="topic-metadata">

**Author:** [@santoshturamari](https://www.ruby-forum.com/u/santoshturamari)\
**Replies:** 1\
**Last updated:** [July 9, 2009, 9:48am UTC](https://www.ruby-forum.com/t/pagination-url-problem/171725 "2009-07-09T09:48:12Z")

</div>

Hi, I want to generate the sitmap, and i have written the code for that. Here beacuse of some inner pagination, I want to get the urls in this way. in sitemap controller @catalog\_sub\_urls = Community.find(:all, :con…

---

## [How to install Rails on CentOS 5.2](https://www.ruby-forum.com/t/how-to-install-rails-on-centos-5-2/159938)

<div class="topic-metadata">

**Author:** [@Paryank](https://www.ruby-forum.com/u/Paryank)\
**Replies:** 7\
**Last updated:** [July 9, 2009, 6:55am UTC](https://www.ruby-forum.com/t/how-to-install-rails-on-centos-5-2/159938 "2009-07-09T06:55:09Z")

</div>

Hi I have installed CentOS 5.2 on my PC. Ruby 1.8.5 and Ruby-devel packages are already installed. I have downloaded rubygems-1.3.1.tgz package and installed it. Now I am trying to install Rails by the command below: …

---

## [Upgrading from Rails 1.2.6](https://www.ruby-forum.com/t/upgrading-from-rails-1-2-6/171780)

<div class="topic-metadata">

**Author:** [@shusseina](https://www.ruby-forum.com/u/shusseina)\
**Replies:** 2\
**Last updated:** [July 9, 2009, 5:13am UTC](https://www.ruby-forum.com/t/upgrading-from-rails-1-2-6/171780 "2009-07-09T05:13:39Z")

</div>

I’m a Rails newbie. Currently my Mac is running Rails 1.2.6. I would like to know how to upgrade to Rails 2.0.2. How do I ensure my existing Rails apps are also upgraded? Thanks

---

## [Rerouting between controller's actions \*WITHOUT REDIRECT\_TO\*](https://www.ruby-forum.com/t/rerouting-between-controllers-actions-without-redirect-to/171749)

<div class="topic-metadata">

**Author:** [@olistik](https://www.ruby-forum.com/u/olistik)\
**Replies:** 4\
**Last updated:** [July 9, 2009, 4:58am UTC](https://www.ruby-forum.com/t/rerouting-between-controllers-actions-without-redirect-to/171749 "2009-07-09T04:58:28Z")

</div>

Hello everyone, I need to implement first level permalink style url routing inside my rails application, ie: /first\_link.html /another\_one.html … /last\_one.html For each permalink there’s an associated record (mode…

---

## [Excessive use of CPU](https://www.ruby-forum.com/t/excessive-use-of-cpu/171747)

<div class="topic-metadata">

**Author:** [@Leandro\_Maioral](https://www.ruby-forum.com/u/Leandro_Maioral)\
**Replies:** 2\
**Last updated:** [July 9, 2009, 3:33am UTC](https://www.ruby-forum.com/t/excessive-use-of-cpu/171747 "2009-07-09T03:33:11Z")

</div>

Hello guys and girls, I have a problem with a method (new), it is using 100% of CPU for 15/20 seconds. Follow the method below: http://pastie.org/537568 kits\_controller.rb def new @page\_title = ‘Add a Kit’ @kit = K…

---

## [Curious why copying an array element by element fails when using strip!](https://www.ruby-forum.com/t/curious-why-copying-an-array-element-by-element-fails-when-using-strip/171776)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 3\
**Last updated:** [July 9, 2009, 2:24am UTC](https://www.ruby-forum.com/t/curious-why-copying-an-array-element-by-element-fails-when-using-strip/171776 "2009-07-09T02:24:50Z")

</div>

Hi, I wanted to copy one array into another, element by element, so that I could edit the source data as necessary. I simultaneously changed a source element using “strip!”. The latter step corrupted the copying. …

---

## [Problems running rake test (possibly gem/debian issues)](https://www.ruby-forum.com/t/problems-running-rake-test-possibly-gem-debian-issues/171705)

<div class="topic-metadata">

**Author:** [@ksader](https://www.ruby-forum.com/u/ksader)\
**Replies:** 6\
**Last updated:** [July 9, 2009, 1:35am UTC](https://www.ruby-forum.com/t/problems-running-rake-test-possibly-gem-debian-issues/171705 "2009-07-09T01:35:29Z")

</div>

Hi, I seem to have a constant battle going on my machine about gems. The latest problem is when i attempt to run “rake test” on my rails project, here is the output: ~/code/tradertips(with\_clearance) $ rake test (in…

---

## [Nginx + passenger FAILSAFE dispatch error](https://www.ruby-forum.com/t/nginx-passenger-failsafe-dispatch-error/171772)

<div class="topic-metadata">

**Author:** [@cpjolicoeur](https://www.ruby-forum.com/u/cpjolicoeur)\
**Replies:** 0\
**Last updated:** [July 8, 2009, 11:23pm UTC](https://www.ruby-forum.com/t/nginx-passenger-failsafe-dispatch-error/171772 "2009-07-08T23:23:56Z")

</div>

I’m having a very strange issue with a freshly deployed Rails app on a staging server. Up until this point all development has been done locally. I just setup the staging server and pushed the code to the staging se…

---

## [Can't seems to get rails app running with Passenger](https://www.ruby-forum.com/t/cant-seems-to-get-rails-app-running-with-passenger/167132)

<div class="topic-metadata">

**Author:** [@kmhui](https://www.ruby-forum.com/u/kmhui)\
**Replies:** 8\
**Last updated:** [July 8, 2009, 11:19pm UTC](https://www.ruby-forum.com/t/cant-seems-to-get-rails-app-running-with-passenger/167132 "2009-07-08T23:19:08Z")

</div>

Need help with deploying rails on Passenger in running on Apache. I am new to Ruby on Rails and deployment. What I have done so far is successfully installed Passenger into Apache 2.3 on my laptop. Followed the Passen…

---

## [Date as textfield, virtual attribute can't be empty?](https://www.ruby-forum.com/t/date-as-textfield-virtual-attribute-cant-be-empty/171768)

<div class="topic-metadata">

**Author:** [@pink-ink](https://www.ruby-forum.com/u/pink-ink)\
**Replies:** 0\
**Last updated:** [July 8, 2009, 10:53pm UTC](https://www.ruby-forum.com/t/date-as-textfield-virtual-attribute-cant-be-empty/171768 "2009-07-08T22:53:37Z")

</div>

Hi Ruby comunity! I made a virtual date attribute to input date into a textfield. Here is my entry from models\\tbl\_data.rb: def date\_test\_string date\_test.strftime(’%d.%m.%Y’) end def date\_test\_string=(date\_test\_st…

---

## [ActiveRecord HABTM finds with "AND"](https://www.ruby-forum.com/t/activerecord-habtm-finds-with-and/171714)

<div class="topic-metadata">

**Author:** [@kelhart](https://www.ruby-forum.com/u/kelhart)\
**Replies:** 9\
**Last updated:** [July 8, 2009, 10:32pm UTC](https://www.ruby-forum.com/t/activerecord-habtm-finds-with-and/171714 "2009-07-08T22:32:16Z")

</div>

Howdy railsters, I have a problem which at first seemed to be very simple, but now I’m quite stumped. I’d appreciate your help with this if possible. I’ve scoured the web and the mailing list for several months now, a…

---

## [Transaction is not working in mysql database](https://www.ruby-forum.com/t/transaction-is-not-working-in-mysql-database/171740)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 1\
**Last updated:** [July 8, 2009, 9:15pm UTC](https://www.ruby-forum.com/t/transaction-is-not-working-in-mysql-database/171740 "2009-07-08T21:15:44Z")

</div>

Ruby/Rails/DB/PF -v =\> 1.8.6/2.3.2/mysql/Winxp user.rb class User validates\_presence\_of :name end code 1 def destroy User.count #=\> 0 User.transaction do User.create({:name=\>“kkk”}) User.create({:name=\>nil}) …

---

## [Search within Search Result set](https://www.ruby-forum.com/t/search-within-search-result-set/171733)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 1\
**Last updated:** [July 8, 2009, 9:11pm UTC](https://www.ruby-forum.com/t/search-within-search-result-set/171733 "2009-07-08T21:11:38Z")

</div>

I looking into a search functionality to provide a “search within results” option. Not sure how to go about it. Any ideas?

---

## [Button that doesn't submit](https://www.ruby-forum.com/t/button-that-doesnt-submit/171764)

<div class="topic-metadata">

**Author:** [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Replies:** 3\
**Last updated:** [July 8, 2009, 9:02pm UTC](https://www.ruby-forum.com/t/button-that-doesnt-submit/171764 "2009-07-08T21:02:52Z")

</div>

Is there a way to put a button on a view that doesn;t do a “submit” but executes a method in the controller? -Janna

---

## [Question on railfrog](https://www.ruby-forum.com/t/question-on-railfrog/171742)

<div class="topic-metadata">

**Author:** [@taiwo\_obafrmi](https://www.ruby-forum.com/u/taiwo_obafrmi)\
**Replies:** 1\
**Last updated:** [July 8, 2009, 9:02pm UTC](https://www.ruby-forum.com/t/question-on-railfrog/171742 "2009-07-08T21:02:17Z")

</div>

i would like to know why railfrog is not working on any platform higher than rails 2.0.5

---

## [Senior Ror,Mysql](https://www.ruby-forum.com/t/senior-ror-mysql/171743)

<div class="topic-metadata">

**Author:** [@eric\_cs](https://www.ruby-forum.com/u/eric_cs)\
**Replies:** 1\
**Last updated:** [July 8, 2009, 8:50pm UTC](https://www.ruby-forum.com/t/senior-ror-mysql/171743 "2009-07-08T20:50:35Z")

</div>

We are looking for experienced Ruby on Rails, Mysql, Ajax, Padrones de diseno,uml,CSS desarrollador de un proyecto completo. El proyecto se llevaría a cabo a través de Internet, 8-9 horas al díadurante un mes por lo m…

---

## [Rails apps. with Microsoft Access as a back end?](https://www.ruby-forum.com/t/rails-apps-with-microsoft-access-as-a-back-end/171756)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [July 8, 2009, 8:36pm UTC](https://www.ruby-forum.com/t/rails-apps-with-microsoft-access-as-a-back-end/171756 "2009-07-08T20:36:43Z")

</div>

Curious as to whether anyone out there has set up Rails as a front end to a M$ Access DB? I have done it with SQL Server, and have used ODBC to do it, so I know that this is certainly possible. I’m interested in gotc…

---

## [Calling content\_for from a controller](https://www.ruby-forum.com/t/calling-content-for-from-a-controller/171762)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 0\
**Last updated:** [July 8, 2009, 8:11pm UTC](https://www.ruby-forum.com/t/calling-content-for-from-a-controller/171762 "2009-07-08T20:11:24Z")

</div>

i’ve got a helper method that calls content\_for to get all of the content for a sidebar. it’s kind of annoying though because i’m having to go into each template file and add \<% render\_sidebar %\> it’d be great if i co…

---

## [Accepts\_nested\_attributes\_for and has\_one](https://www.ruby-forum.com/t/accepts-nested-attributes-for-and-has-one/171759)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 8, 2009, 7:17pm UTC](https://www.ruby-forum.com/t/accepts-nested-attributes-for-and-has-one/171759 "2009-07-08T19:17:38Z")

</div>

Hi all, I’m seeing some unexpected behaviour in a nested model and I’m not sure if it’s a bug or if I’m doing something wrong. When assigning nested attributes, the associated object gets replaced with a new record. …

---

## [How to Trigger 'onclick' or 'onchange' on \<select\>](https://www.ruby-forum.com/t/how-to-trigger-onclick-or-onchange-on-select/171726)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 2\
**Last updated:** [July 8, 2009, 6:38pm UTC](https://www.ruby-forum.com/t/how-to-trigger-onclick-or-onchange-on-select/171726 "2009-07-08T18:38:04Z")

</div>

I have two dropdowns ‘a’ and ‘b’. when something is selected on ‘a’, its onchange event has an action and an update area which works fine. but when it comes to editing a record, i am able to list items in ‘a’ dropdow…

---

## [A lot of postgresql database users authenticating and connecting from an enterprise rails applicati](https://www.ruby-forum.com/t/a-lot-of-postgresql-database-users-authenticating-and-connecting-from-an-enterprise-rails-applicati/171741)

<div class="topic-metadata">

**Author:** [@alfredmart](https://www.ruby-forum.com/u/alfredmart)\
**Replies:** 1\
**Last updated:** [July 8, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/a-lot-of-postgresql-database-users-authenticating-and-connecting-from-an-enterprise-rails-applicati/171741 "2009-07-08T16:41:32Z")

</div>

Hi to everybody, my name is Alfredo Rico from Venezuela. Please apologize if my english is not so good… My company is beginning a huge enterprise rails project for a goverment customer. We have setting up a postgres…

---

## [ActiveSupport::TestCase does not respond to "get" or "post"](https://www.ruby-forum.com/t/activesupport-testcase-does-not-respond-to-get-or-post/171751)

<div class="topic-metadata">

**Author:** [@Beta](https://www.ruby-forum.com/u/Beta)\
**Replies:** 1\
**Last updated:** [July 8, 2009, 4:36pm UTC](https://www.ruby-forum.com/t/activesupport-testcase-does-not-respond-to-get-or-post/171751 "2009-07-08T16:36:54Z")

</div>

Hi everybody, I’m upgrading an app from rails 1.2.3 to rails 2.3.2. I’ve a problem with the controllers tests. At the beginning, a test was defined as class XControllerTest \< Test::Unit::TestCase import\_fixtures :fix…

---

## [Complex relations](https://www.ruby-forum.com/t/complex-relations/171750)

<div class="topic-metadata">

**Author:** [@marek\_j](https://www.ruby-forum.com/u/marek_j)\
**Replies:** 0\
**Last updated:** [July 8, 2009, 4:25pm UTC](https://www.ruby-forum.com/t/complex-relations/171750 "2009-07-08T16:25:12Z")

</div>

Hi, I wanted to ask, whether someone could help me. I have in my project quite a lot of complex relations between my models. For example: has\_many :some\_groups, :class\_name =\> ‘Group’, :finder\_sql =\> ’ SELECT DISTINC…

---

## [Determining which tables are available (oracle)](https://www.ruby-forum.com/t/determining-which-tables-are-available-oracle/171748)

<div class="topic-metadata">

**Author:** [@mrodgers](https://www.ruby-forum.com/u/mrodgers)\
**Replies:** 0\
**Last updated:** [July 8, 2009, 4:24pm UTC](https://www.ruby-forum.com/t/determining-which-tables-are-available-oracle/171748 "2009-07-08T16:24:36Z")

</div>

I am trying to connect to an oracle database using the OCI8 tools and everything appears to be working fine (rake db:migrate pulls no errors). The only issue is, I’m not sure how to determine which tables are availabl…

---

## [Setting up routes with formats and parameters that are domain names](https://www.ruby-forum.com/t/setting-up-routes-with-formats-and-parameters-that-are-domain-names/171746)

<div class="topic-metadata">

**Author:** [@Dan\_Van\_Derveer](https://www.ruby-forum.com/u/Dan_Van_Derveer)\
**Replies:** 0\
**Last updated:** [July 8, 2009, 4:24pm UTC](https://www.ruby-forum.com/t/setting-up-routes-with-formats-and-parameters-that-are-domain-names/171746 "2009-07-08T16:24:01Z")

</div>

Configuration This is on Rails 2.3.2.1 running on ruby 1.8.4 in config/routes.rb map.somecontroller\_show ‘somecontroller/:id.:format’, :requirements =\> {:id =\> /\\w\[^/?;\]\*/ }, :controller =\> ‘somecontroller’, :action…

---

## [Upgrading on Unix](https://www.ruby-forum.com/t/upgrading-on-unix/196980)

<div class="topic-metadata">

**Author:** [@parki](https://www.ruby-forum.com/u/parki)\
**Replies:** 7\
**Last updated:** [July 8, 2009, 4:23pm UTC](https://www.ruby-forum.com/t/upgrading-on-unix/196980 "2009-07-08T16:23:25Z")

</div>

Do I need to re-install gems after upgrading from Ruby 1.8.6 to 1.8.7 on Unix?

---

## [Ruby on Rails opportunity in the online gaming industry](https://www.ruby-forum.com/t/ruby-on-rails-opportunity-in-the-online-gaming-industry/171744)

<div class="topic-metadata">

**Author:** [@StuartF](https://www.ruby-forum.com/u/StuartF)\
**Replies:** 0\
**Last updated:** [July 8, 2009, 4:22pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-opportunity-in-the-online-gaming-industry/171744 "2009-07-08T16:22:50Z")

</div>

Are you a web developer specializing in Ruby on Rails, looking for a new challenge in the online gaming industry? This company is looking for a focused, talented and career-driven Web Developer who wants to join an or…

---

## [Programmatically add a route](https://www.ruby-forum.com/t/programmatically-add-a-route/171663)

<div class="topic-metadata">

**Author:** [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Replies:** 6\
**Last updated:** [July 8, 2009, 3:42pm UTC](https://www.ruby-forum.com/t/programmatically-add-a-route/171663 "2009-07-08T15:42:51Z")

</div>

Is there a way to programmartically add a route? I have an outside process creating pages that I need to access, but I dont know their names or locations until runtime. -Janna B

---

## [Editable Combobox](https://www.ruby-forum.com/t/editable-combobox/171739)

<div class="topic-metadata">

**Author:** [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Replies:** 0\
**Last updated:** [July 8, 2009, 2:54pm UTC](https://www.ruby-forum.com/t/editable-combobox/171739 "2009-07-08T14:54:34Z")

</div>

I am in dire need of something like an editable combox - though, it doesn;t have to subscribe to the combo box idiom - perhaps some of the ajax-like features / dhtml can provide what I need. What do people in the RoR …

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

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