# Rails

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

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

---

## [Javascript question - why does â€œwindow.loc ationâ€ not ensure my spinner.gif animation works?](https://www.ruby-forum.com/t/javascript-question-why-does-a-oewindow-loc-ationa-not-ensure-my-spinner-gif-animation-works/184059)

<div class="topic-metadata">

**Author:** [@greghauptmann](https://www.ruby-forum.com/u/greghauptmann)\
**Replies:** 2\
**Last updated:** [February 25, 2010, 7:27am UTC](https://www.ruby-forum.com/t/javascript-question-why-does-a-oewindow-loc-ationa-not-ensure-my-spinner-gif-animation-works/184059 "2010-02-25T07:27:01Z")

</div>

Hi, It seems when I use “window.location” as a means to redirect to the API when my longer running transaction is does not ensure the animation for the spinner gif I have works. Any ideas how to fix this? ie. I see t…

---

## [How to use connection pool in Rails2.3.5 with WEBrick and MySQL?](https://www.ruby-forum.com/t/how-to-use-connection-pool-in-rails2-3-5-with-webrick-and-mysql/184102)

<div class="topic-metadata">

**Author:** [@Sheile](https://www.ruby-forum.com/u/Sheile)\
**Replies:** 0\
**Last updated:** [February 25, 2010, 2:13am UTC](https://www.ruby-forum.com/t/how-to-use-connection-pool-in-rails2-3-5-with-webrick-and-mysql/184102 "2010-02-25T02:13:53Z")

</div>

We use Rails 2.3.5, MySQL, and WEBrick. ActiveRecord call ConnectionPool#checkout and create new connection to MySQL when receive a first HTTP request. At this time, register to connection pool its connection in Conn…

---

## [Redmine and hoptoad notifier](https://www.ruby-forum.com/t/redmine-and-hoptoad-notifier/184028)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 1\
**Last updated:** [February 25, 2010, 1:57am UTC](https://www.ruby-forum.com/t/redmine-and-hoptoad-notifier/184028 "2010-02-25T01:57:10Z")

</div>

Hi, Has anyone ever managed to make the hoptoad notifier work with Redmine? I always get time outs when posting an issue to the redmine server… Cheers,

---

## [Limit number of selections in multiple select](https://www.ruby-forum.com/t/limit-number-of-selections-in-multiple-select/184017)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 4\
**Last updated:** [February 25, 2010, 1:04am UTC](https://www.ruby-forum.com/t/limit-number-of-selections-in-multiple-select/184017 "2010-02-25T01:04:17Z")

</div>

How can I limit the number of selections in multiple select? Say, a user should not be able to select more than 5 values in a multiple selection box. I am following the multiple select example here: http://www.gillu…

---

## [Need help understanding how to sort and view items through categories](https://www.ruby-forum.com/t/need-help-understanding-how-to-sort-and-view-items-through-categories/183921)

<div class="topic-metadata">

**Author:** [@roflkk](https://www.ruby-forum.com/u/roflkk)\
**Replies:** 2\
**Last updated:** [February 24, 2010, 11:40pm UTC](https://www.ruby-forum.com/t/need-help-understanding-how-to-sort-and-view-items-through-categories/183921 "2010-02-24T23:40:02Z")

</div>

This is probably an easy guess for some, but after searching the web for quite some time, I’ve concluded that I need help understanding this. My case: I’m creating an ad application where people can sell and buy item…

---

## [Please help with new Ruby install (my gems are missing!)](https://www.ruby-forum.com/t/please-help-with-new-ruby-install-my-gems-are-missing/184052)

<div class="topic-metadata">

**Author:** [@rezilient](https://www.ruby-forum.com/u/rezilient)\
**Replies:** 4\
**Last updated:** [February 24, 2010, 11:20pm UTC](https://www.ruby-forum.com/t/please-help-with-new-ruby-install-my-gems-are-missing/184052 "2010-02-24T23:20:42Z")

</div>

Hello. I am trying to get Ruby installed on our CentOS 5.2 (x64) server for a specific Ruby application (clockingIT). I followed the steps here: I made sure that all Ruby related packages are installed, here are th…

---

## [Belongs\_to has many](https://www.ruby-forum.com/t/belongs-to-has-many/184097)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 0\
**Last updated:** [February 24, 2010, 10:34pm UTC](https://www.ruby-forum.com/t/belongs-to-has-many/184097 "2010-02-24T22:34:59Z")

</div>

Ok… heres the deal I’m trying to make a real simple app, but I’m getting wierd errors, and I’m not sure wat to do. So my project is-- using Restful\_Authentication, I need to assign each user with their own links, tha…

---

## [Thanks Bob](https://www.ruby-forum.com/t/thanks-bob/184089)

<div class="topic-metadata">

**Author:** [@BuckReed](https://www.ruby-forum.com/u/BuckReed)\
**Replies:** 0\
**Last updated:** [February 24, 2010, 9:40pm UTC](https://www.ruby-forum.com/t/thanks-bob/184089 "2010-02-24T21:40:37Z")

</div>

Bob, after doing your suggestion to run “gem update --system” I then ran “gem install rails --version 2.2.2” and it worked perfectly.

---

## [Undefined method \`default\_external=' for Encoding:Class](https://www.ruby-forum.com/t/undefined-method-default-external-for-encoding-class/184087)

<div class="topic-metadata">

**Author:** [@Emily](https://www.ruby-forum.com/u/Emily)\
**Replies:** 0\
**Last updated:** [February 24, 2010, 9:40pm UTC](https://www.ruby-forum.com/t/undefined-method-default-external-for-encoding-class/184087 "2010-02-24T21:40:37Z")

</div>

undefined method \`default\_external=’ for Encoding:Class after doing rake db:create ?

---

## [Aliased route redirect](https://www.ruby-forum.com/t/aliased-route-redirect/184090)

<div class="topic-metadata">

**Author:** [@Jonesy](https://www.ruby-forum.com/u/Jonesy)\
**Replies:** 0\
**Last updated:** [February 24, 2010, 9:40pm UTC](https://www.ruby-forum.com/t/aliased-route-redirect/184090 "2010-02-24T21:40:37Z")

</div>

Noob question: I have in my routes.db: map.signup ‘signup/:plan\_name’, :controller =\> ‘accounts’, :action =\> ‘new’ No problem, but this page contains a form which when invalid does a render :action =\> ‘new’ which ca…

---

## [Integrate cucumber/rspec in existing app, broken](https://www.ruby-forum.com/t/integrate-cucumber-rspec-in-existing-app-broken/184082)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 0\
**Last updated:** [February 24, 2010, 9:10pm UTC](https://www.ruby-forum.com/t/integrate-cucumber-rspec-in-existing-app-broken/184082 "2010-02-24T21:10:10Z")

</div>

I have a deployed app that I am trying to do some testing on. In the RSPEC book it said to do this: script/generate cucumber --rspec --webrat I did it and now I cannot start my app, here is the error: No such file o…

---

## [Apache with rails](https://www.ruby-forum.com/t/apache-with-rails/183416)

<div class="topic-metadata">

**Author:** [@gautam](https://www.ruby-forum.com/u/gautam)\
**Replies:** 3\
**Last updated:** [February 24, 2010, 5:59pm UTC](https://www.ruby-forum.com/t/apache-with-rails/183416 "2010-02-24T17:59:25Z")

</div>

can someone please tell me how to use apache web server with rails. I am new to rails and I do not know much about it. Please help me…

---

## ["no such file to load -- gettext/rails" error](https://www.ruby-forum.com/t/no-such-file-to-load-gettext-rails-error/183991)

<div class="topic-metadata">

**Author:** [@metaltree](https://www.ruby-forum.com/u/metaltree)\
**Replies:** 12\
**Last updated:** [February 24, 2010, 5:07pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-gettext-rails-error/183991 "2010-02-24T17:07:29Z")

</div>

I get the error below when I try to start my server. Here are the versions installed: OS: Windows Server 2008 Ruby: 1.8.7 Gems: actionmailer (2.3.5, 1.3.5) actionpack (2.3.5, 1.13.5) actionwebservice (1.2.5) acti…

---

## [Gem install rmagick --local](https://www.ruby-forum.com/t/gem-install-rmagick-local/184062)

<div class="topic-metadata">

**Author:** [@shyam\_mohan](https://www.ruby-forum.com/u/shyam_mohan)\
**Replies:** 5\
**Last updated:** [February 24, 2010, 3:50pm UTC](https://www.ruby-forum.com/t/gem-install-rmagick-local/184062 "2010-02-24T15:50:05Z")

</div>

Hi all i copied rmagic gem in my local system cd rmagick-2.12.2.gem bash: cd: rmagick-2.12.2.gem: Not a directory \[root@localhost shyam\]# gem install rmagick --local Building native extensions. This could take a wh…

---

## [Fascism is coming to Internet](https://www.ruby-forum.com/t/fascism-is-coming-to-internet/183994)

<div class="topic-metadata">

**Author:** [@Joan\_M](https://www.ruby-forum.com/u/Joan_M)\
**Replies:** 4\
**Last updated:** [February 24, 2010, 3:49pm UTC](https://www.ruby-forum.com/t/fascism-is-coming-to-internet/183994 "2010-02-24T15:49:29Z")

</div>

Sorry by this off topic message, but this is too important Fascism is coming fastly to Internet because is the only communication way that governements (managed by the bank and multinationals) cann’t control

---

## [Very brief](https://www.ruby-forum.com/t/very-brief/184064)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 2\
**Last updated:** [February 24, 2010, 3:41pm UTC](https://www.ruby-forum.com/t/very-brief/184064 "2010-02-24T15:41:17Z")

</div>

@jobs = Job.find(:all, :conditions =\> “#{Date.parse(str=”#{closing\_date}")} \>= #{Date.today.strftime("%d/%m/%Y")}") In the above instance, ‘closing\_date’ is a string. I want to ensure that only instances of Job where…

---

## [Attachment fu file path](https://www.ruby-forum.com/t/attachment-fu-file-path/184069)

<div class="topic-metadata">

**Author:** [@srikanth\_j](https://www.ruby-forum.com/u/srikanth_j)\
**Replies:** 0\
**Last updated:** [February 24, 2010, 3:38pm UTC](https://www.ruby-forum.com/t/attachment-fu-file-path/184069 "2010-02-24T15:38:09Z")

</div>

Hi I am using attachment fu plugin for uploading data. say : User has\_many :photos I wanted to save the uploaded photo in the path as follows. /files/\<user\_id\>/photos/1.jpg - while uploading first photo /files/\<user\_…

---

## [How can I embed a merb app into a rails app as a plugin?](https://www.ruby-forum.com/t/how-can-i-embed-a-merb-app-into-a-rails-app-as-a-plugin/184067)

<div class="topic-metadata">

**Author:** [@yingfeng](https://www.ruby-forum.com/u/yingfeng)\
**Replies:** 0\
**Last updated:** [February 24, 2010, 3:20pm UTC](https://www.ruby-forum.com/t/how-can-i-embed-a-merb-app-into-a-rails-app-as-a-plugin/184067 "2010-02-24T15:20:48Z")

</div>

Hi, I have two existing apps, one is developed with merb, while the other is rails 2.3. If I won’t upgrade to rails 3.0 beta, can I embed the merb app into rails as a plugin? Since sinatra app could be integrated in…

---

## [Active Record - Select by multiple days of week](https://www.ruby-forum.com/t/active-record-select-by-multiple-days-of-week/184025)

<div class="topic-metadata">

**Author:** [@sgallo1](https://www.ruby-forum.com/u/sgallo1)\
**Replies:** 3\
**Last updated:** [February 24, 2010, 3:00pm UTC](https://www.ruby-forum.com/t/active-record-select-by-multiple-days-of-week/184025 "2010-02-24T15:00:18Z")

</div>

Wondering what would be the best way to implement this. I need to store that an item occurs on a specific day of the week or everyday. Say in the model we have a title and a day of week. I was thinking doing a 0-7 in…

---

## [How can I get the I18n.default\_locale selected in my Rails app in a JS script?](https://www.ruby-forum.com/t/how-can-i-get-the-i18n-default-locale-selected-in-my-rails-app-in-a-js-script/184002)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 6\
**Last updated:** [February 24, 2010, 2:56pm UTC](https://www.ruby-forum.com/t/how-can-i-get-the-i18n-default-locale-selected-in-my-rails-app-in-a-js-script/184002 "2010-02-24T14:56:12Z")

</div>

I am not very fluent in JS, so I don’t see how to transfer the rails app current locale … I have a JS script able to detect the default browser language … running fine I can also modify the JS language, passing a glo…

---

## [Add\_index error ?cd](https://www.ruby-forum.com/t/add-index-error-cd/184040)

<div class="topic-metadata">

**Author:** [@lsumnler](https://www.ruby-forum.com/u/lsumnler)\
**Replies:** 3\
**Last updated:** [February 24, 2010, 2:46pm UTC](https://www.ruby-forum.com/t/add-index-error-cd/184040 "2010-02-24T14:46:03Z")

</div>

Created the following Ruby Migration program 001\_create\_aropenitems.rb class CreateAropenitems \< ActiveRecord::Migration def self.up create\_table :aropenitem do |t| t.int :cust\_no t.date :doc\_date t.integer :doc\_no …

---

## [Are there any good ruby on rails opensource job board apps out there?](https://www.ruby-forum.com/t/are-there-any-good-ruby-on-rails-opensource-job-board-apps-out-there/184061)

<div class="topic-metadata">

**Author:** [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Replies:** 0\
**Last updated:** [February 24, 2010, 2:17pm UTC](https://www.ruby-forum.com/t/are-there-any-good-ruby-on-rails-opensource-job-board-apps-out-there/184061 "2010-02-24T14:17:34Z")

</div>

Searched hi and low and havent found anything that usefull yet. Could build myself but rather contribute to a community effort. Does anyone know of any job boards or has plans on working on one ? I found these: http:…

---

## [Benchmarking an Profiling of Rails apps](https://www.ruby-forum.com/t/benchmarking-an-profiling-of-rails-apps/125997)

<div class="topic-metadata">

**Author:** [@deliak](https://www.ruby-forum.com/u/deliak)\
**Replies:** 9\
**Last updated:** [February 24, 2010, 1:33pm UTC](https://www.ruby-forum.com/t/benchmarking-an-profiling-of-rails-apps/125997 "2010-02-24T13:33:05Z")

</div>

Right now, in order to optimize my rails app performances, I’m benchmarking each method by explicitly doing a Benchmark.measure of the method. Since I suspect thats not the fastest and best way to do it, could you su…

---

## [ActionController::MethodNotAllowed (Only get and post requests are allowed.)](https://www.ruby-forum.com/t/actioncontroller-methodnotallowed-only-get-and-post-requests-are-allowed/128585)

<div class="topic-metadata">

**Author:** [@Don\_F](https://www.ruby-forum.com/u/Don_F)\
**Replies:** 10\
**Last updated:** [February 24, 2010, 12:57pm UTC](https://www.ruby-forum.com/t/actioncontroller-methodnotallowed-only-get-and-post-requests-are-allowed/128585 "2010-02-24T12:57:25Z")

</div>

I have a restful controller that when a uri of items/1/edit is displayed and then saved, I get that message. The model is InventroyItem and the controller is InventroyItemsController. The routes.rb contains map.resou…

---

## [How to run Rails project if i has some application made already...please Help](https://www.ruby-forum.com/t/how-to-run-rails-project-if-i-has-some-application-made-already-please-help/183899)

<div class="topic-metadata">

**Author:** [@shyam\_mohan](https://www.ruby-forum.com/u/shyam_mohan)\
**Replies:** 9\
**Last updated:** [February 24, 2010, 11:47am UTC](https://www.ruby-forum.com/t/how-to-run-rails-project-if-i-has-some-application-made-already-please-help/183899 "2010-02-24T11:47:08Z")

</div>

Hi all i has a demo project build in rails … i copied SVN at my local system How to run this project if some application made already… please Help Tell me steps for this… I tried some thing like… I created a data…

---

## [Regular Expressions](https://www.ruby-forum.com/t/regular-expressions/184051)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 7\
**Last updated:** [February 24, 2010, 11:29am UTC](https://www.ruby-forum.com/t/regular-expressions/184051 "2010-02-24T11:29:03Z")

</div>

validates\_format\_of :closing\_date, :with =\> /^\\d\\d-\\d\\d-\\d\\d\\d\\d$/, :message =\> “is not correct format” Does this seem correct or is there a better way to do this? Basically, I have a closing\_date column in my databa…

---

## [Gem/Plugin for sending system alert message to logged-in users via AJAX?](https://www.ruby-forum.com/t/gem-plugin-for-sending-system-alert-message-to-logged-in-users-via-ajax/184047)

<div class="topic-metadata">

**Author:** [@andyman404](https://www.ruby-forum.com/u/andyman404)\
**Replies:** 1\
**Last updated:** [February 24, 2010, 10:23am UTC](https://www.ruby-forum.com/t/gem-plugin-for-sending-system-alert-message-to-logged-in-users-via-ajax/184047 "2010-02-24T10:23:16Z")

</div>

Anyone know of a gem/plugin that lets you send alerts to currently logged in users of a Rails app via AJAX? For example, I want to send an alert like “The system will be going down in 5 minutes for a quick upgrade. Pl…

---

## [Rdoc](https://www.ruby-forum.com/t/rdoc/184044)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 2\
**Last updated:** [February 24, 2010, 9:54am UTC](https://www.ruby-forum.com/t/rdoc/184044 "2010-02-24T09:54:43Z")

</div>

Hi I am asked to prepare RDoc for my rails application. I have a number of questions relating to this? I have only a basic idea of generating RDoc which I got from Ruby Programming/RubyDoc - Wikibooks, open books for…

---

## [File and folder permission](https://www.ruby-forum.com/t/file-and-folder-permission/179999)

<div class="topic-metadata">

**Author:** [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Replies:** 1\
**Last updated:** [February 24, 2010, 9:43am UTC](https://www.ruby-forum.com/t/file-and-folder-permission/179999 "2010-02-24T09:43:48Z")

</div>

Hi, In my project i have to give the folder and file permission on centOS. Can you guys help me out?. Thanks. Periyasamy

---

## [Rake db:create:all creates databases but doesn't create their tables](https://www.ruby-forum.com/t/rake-dball-creates-databases-but-doesnt-create-their-tables/184030)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 4\
**Last updated:** [February 24, 2010, 9:08am UTC](https://www.ruby-forum.com/t/rake-dball-creates-databases-but-doesnt-create-their-tables/184030 "2010-02-24T09:08:21Z")

</div>

Hi All, I’m stilling running: WinXP-Pro/SP3 Rails 2.3.5 MySQL 5.0.37-community-nt I have exhaustively tested MySQLd server using the MySQL monitor by: Creating a database Creating a table with columns Populating …

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

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