# Rails

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

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

---

## [Concat, nil.\<\< and Rails 2.3.0RC1](https://www.ruby-forum.com/t/concat-nil-and-rails-2-3-0rc1/159437)

<div class="topic-metadata">

**Author:** [@joost](https://www.ruby-forum.com/u/joost)\
**Replies:** 5\
**Last updated:** [February 5, 2009, 10:18am UTC](https://www.ruby-forum.com/t/concat-nil-and-rails-2-3-0rc1/159437 "2009-02-05T10:18:29Z")

</div>

When moving to Rails 2.3.0RC1 I get an error with concat!? I can’t figure it out. See the dump below: ActionView::TemplateError (You have a nil object when you didn’t expect it! You might have expected an instance o…

---

## [A nicer way to join my hash?](https://www.ruby-forum.com/t/a-nicer-way-to-join-my-hash/159391)

<div class="topic-metadata">

**Author:** [@dazonic](https://www.ruby-forum.com/u/dazonic)\
**Replies:** 15\
**Last updated:** [February 5, 2009, 9:02am UTC](https://www.ruby-forum.com/t/a-nicer-way-to-join-my-hash/159391 "2009-02-05T09:02:31Z")

</div>

I know this is dodgy, what would be a nicer way of getting all the unique Volunteer emails that aren’t blank (or nil) and putting them in a comma separated list? Also, my tests seem to have come up okay, but I’m still…

---

## [How to use Sitealizer Web Stats step bu step?](https://www.ruby-forum.com/t/how-to-use-sitealizer-web-stats-step-bu-step/159505)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 0\
**Last updated:** [February 5, 2009, 6:58am UTC](https://www.ruby-forum.com/t/how-to-use-sitealizer-web-stats-step-bu-step/159505 "2009-02-05T06:58:11Z")

</div>

Hi all, I am using Sitealizer in Rails 2.2 version. Sitealizer uses .rhtml file format. It is not acceptable in rails 2.2? Can any one give tell me step by step use of Sitealizer in rails application.?

---

## [Small doubt HELP me](https://www.ruby-forum.com/t/small-doubt-help-me/159412)

<div class="topic-metadata">

**Author:** [@lookshankar](https://www.ruby-forum.com/u/lookshankar)\
**Replies:** 7\
**Last updated:** [February 5, 2009, 6:37am UTC](https://www.ruby-forum.com/t/small-doubt-help-me/159412 "2009-02-05T06:37:34Z")

</div>

Hi , I have table like this --------------------------------------------------------------- |id | what | when | color | to | description | 1 | test |2009-02-01 | red |2009-02-15 | hi this is …

---

## [Help convert code form PHP to Rails](https://www.ruby-forum.com/t/help-convert-code-form-php-to-rails/159499)

<div class="topic-metadata">

**Author:** [@lookshankar](https://www.ruby-forum.com/u/lookshankar)\
**Replies:** 4\
**Last updated:** [February 5, 2009, 6:30am UTC](https://www.ruby-forum.com/t/help-convert-code-form-php-to-rails/159499 "2009-02-05T06:30:33Z")

</div>

hi, Shown below is the PHP code to obtain the value for each date in the corresponding date range.And with I’ve attached the MYSQL Database Table.Please Have a look.I’ve tried to convert this code to rails but not ye…

---

## [Drop Down Select List from model](https://www.ruby-forum.com/t/drop-down-select-list-from-model/159408)

<div class="topic-metadata">

**Author:** [@Sahil\_D](https://www.ruby-forum.com/u/Sahil_D)\
**Replies:** 2\
**Last updated:** [February 5, 2009, 6:22am UTC](https://www.ruby-forum.com/t/drop-down-select-list-from-model/159408 "2009-02-05T06:22:21Z")

</div>

hi all, i am new to rails and not able to figure how to get a drop-down selection list in a view. i have 3 models (tables): country, state & city. country has many states state has many cities now i want to create …

---

## [Adding "id='xyz' " to a form\_tag](https://www.ruby-forum.com/t/adding-id-xyz-to-a-form-tag/159500)

<div class="topic-metadata">

**Author:** [@srj](https://www.ruby-forum.com/u/srj)\
**Replies:** 11\
**Last updated:** [February 5, 2009, 5:27am UTC](https://www.ruby-forum.com/t/adding-id-xyz-to-a-form-tag/159500 "2009-02-05T05:27:24Z")

</div>

I am using the form\_tag\_helper to create a form, but I want to give it an ID so I can style the elements within the form. I currently have the following: \<% form\_tag :controller =\> 'my\_controller', :action =\> ‘m…

---

## [Pagination problem using will\_paginate with two models](https://www.ruby-forum.com/t/pagination-problem-using-will-paginate-with-two-models/159501)

<div class="topic-metadata">

**Author:** [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Replies:** 0\
**Last updated:** [February 5, 2009, 5:25am UTC](https://www.ruby-forum.com/t/pagination-problem-using-will-paginate-with-two-models/159501 "2009-02-05T05:25:04Z")

</div>

Hi, let me explain my application details: I have two controllers: 1.streams\_controller 2.search\_controller And i have two models: 1.stream.rb 2.search.rb in streams\_controller, i am uploading and downloading str…

---

## [Tag clouds](https://www.ruby-forum.com/t/tag-clouds/159411)

<div class="topic-metadata">

**Author:** [@vivekmajhi](https://www.ruby-forum.com/u/vivekmajhi)\
**Replies:** 4\
**Last updated:** [February 5, 2009, 4:04am UTC](https://www.ruby-forum.com/t/tag-clouds/159411 "2009-02-05T04:04:56Z")

</div>

Hi, Is there anyway to import TAGCLOUDS in a Ruby on Rails application without using PLUGINS? If it is so, please help me! Thanks in Advance, cheers.

---

## [A noob question for direction](https://www.ruby-forum.com/t/a-noob-question-for-direction/159196)

<div class="topic-metadata">

**Author:** [@jdunneuk](https://www.ruby-forum.com/u/jdunneuk)\
**Replies:** 10\
**Last updated:** [February 5, 2009, 4:02am UTC](https://www.ruby-forum.com/t/a-noob-question-for-direction/159196 "2009-02-05T04:02:36Z")

</div>

Hello folks! I’m new here as you would soon see from my post. I started reading http://pine.fm/LearnToProgram/ and am somewhat “getting it”… I do find some difficulties understanding the flow of things, but I do get t…

---

## [We don't need no stinking Badges! Guidance, anyone?](https://www.ruby-forum.com/t/we-dont-need-no-stinking-badges-guidance-anyone/159468)

<div class="topic-metadata">

**Author:** [@ldenman](https://www.ruby-forum.com/u/ldenman)\
**Replies:** 2\
**Last updated:** [February 5, 2009, 3:34am UTC](https://www.ruby-forum.com/t/we-dont-need-no-stinking-badges-guidance-anyone/159468 "2009-02-05T03:34:27Z")

</div>

Hi, Thanks for taking a look at this. I am in need of some guidance for a particular problem: My Requirements: The concept of a user The concept of a badge A badge is simply a small image over the user’s avatar that…

---

## [Ruby Vs. PHP pipe terminal access](https://www.ruby-forum.com/t/ruby-vs-php-pipe-terminal-access/159495)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 0\
**Last updated:** [February 5, 2009, 2:59am UTC](https://www.ruby-forum.com/t/ruby-vs-php-pipe-terminal-access/159495 "2009-02-05T02:59:39Z")

</div>

I’m attempting to make a javascript/RoR site that utilizes maxima the free math program. In this thread Maxima and Ruby Integration - Rails - Ruby-Forum I was able to pass information into and out of maxima, but I was…

---

## [Form\_remote\_tag](https://www.ruby-forum.com/t/form-remote-tag/159442)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [February 5, 2009, 2:36am UTC](https://www.ruby-forum.com/t/form-remote-tag/159442 "2009-02-05T02:36:32Z")

</div>

I have this strange situation where I have a form and when you hit the form button an indicator is supposed to flash at the bottom of the screen and say something like ‘Information Saved’ or ‘Information not saved’, w…

---

## [Drag and drop for a form](https://www.ruby-forum.com/t/drag-and-drop-for-a-form/159492)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 0\
**Last updated:** [February 5, 2009, 2:33am UTC](https://www.ruby-forum.com/t/drag-and-drop-for-a-form/159492 "2009-02-05T02:33:36Z")

</div>

I am trying to do a drag and drop cards into a shelf. I am doing this for the drop: \<%= drop\_receiving\_element :slot2,{:onDrop =\> “function(element) { $(‘slot2’).replace(’\<td id=“slot2”\>’ + element.id + ‘\</ td\>’).ad…

---

## [How to create select box by selected value?](https://www.ruby-forum.com/t/how-to-create-select-box-by-selected-value/159404)

<div class="topic-metadata">

**Author:** [@poloman](https://www.ruby-forum.com/u/poloman)\
**Replies:** 3\
**Last updated:** [February 5, 2009, 1:32am UTC](https://www.ruby-forum.com/t/how-to-create-select-box-by-selected-value/159404 "2009-02-05T01:32:10Z")

</div>

I’m newbie for ROR. I was create select box for employee who swap position when they work. ex. mr.John has default position as a service but he can swap position to driver . In select box i want to show default posit…

---

## [Custom module for ActionController no longer works in Rails 2.2](https://www.ruby-forum.com/t/custom-module-for-actioncontroller-no-longer-works-in-rails-2-2/159454)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [February 5, 2009, 1:31am UTC](https://www.ruby-forum.com/t/custom-module-for-actioncontroller-no-longer-works-in-rails-2-2/159454 "2009-02-05T01:31:00Z")

</div>

I am using some code for in place JS editing with validation, that worked up until Rails 2.2. After upgrade, the method can’t be find, so apparently its not overridge the right class or isn’t being included as before.…

---

## [Rail's compatibility problem](https://www.ruby-forum.com/t/rails-compatibility-problem/159477)

<div class="topic-metadata">

**Author:** [@dscaffold](https://www.ruby-forum.com/u/dscaffold)\
**Replies:** 2\
**Last updated:** [February 5, 2009, 1:23am UTC](https://www.ruby-forum.com/t/rails-compatibility-problem/159477 "2009-02-05T01:23:24Z")

</div>

Hello: I did ‘Jruby script/generate controller home index’, and I got “Rails requires RubyGems \>= 1.3.1 (you have 1.2.0). Please ‘gem update –system’ and try again” message. I follwed, and did ‘gem update –system’, b…

---

## [Controllers/views in sub-folders and broken routes](https://www.ruby-forum.com/t/controllers-views-in-sub-folders-and-broken-routes/159361)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 9\
**Last updated:** [February 5, 2009, 1:19am UTC](https://www.ruby-forum.com/t/controllers-views-in-sub-folders-and-broken-routes/159361 "2009-02-05T01:19:19Z")

</div>

I’m having some issues with routing when using controllers in sub-folders. I have controllers in an admin folder that look like this: class Admin::UsersController \< ApplicationController end My link\_to\_remote calls …

---

## [Rails 2.2.2 to\_date and to\_datetime methods](https://www.ruby-forum.com/t/rails-2-2-2-to-date-and-to-datetime-methods/159475)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 4\
**Last updated:** [February 5, 2009, 1:16am UTC](https://www.ruby-forum.com/t/rails-2-2-2-to-date-and-to-datetime-methods/159475 "2009-02-05T01:16:58Z")

</div>

In the console I see this behaviour: “19270412000000”.to\_date.methods =\> \[“ns?”, “mon”, “ago”, “end\_of\_month”, “months\_since”, “default\_inspect”, “minus\_without\_duration”, … “19270412000000”.to\_date.class =\> Dat…

---

## [Rails Music Composer Beta Launch](https://www.ruby-forum.com/t/rails-music-composer-beta-launch/159488)

<div class="topic-metadata">

**Author:** [@GabrielG1976](https://www.ruby-forum.com/u/GabrielG1976)\
**Replies:** 0\
**Last updated:** [February 5, 2009, 12:28am UTC](https://www.ruby-forum.com/t/rails-music-composer-beta-launch/159488 "2009-02-05T00:28:24Z")

</div>

Hello Everyone, I have just Launched Live a new online music composing site. That allows you to create new musical compositions based off the Conversion of text into a midi Composition that can be used in any softwa…

---

## [MySQL Schema Error](https://www.ruby-forum.com/t/mysql-schema-error/141148)

<div class="topic-metadata">

**Author:** [@fusi-eon](https://www.ruby-forum.com/u/fusi-eon)\
**Replies:** 12\
**Last updated:** [February 5, 2009, 12:01am UTC](https://www.ruby-forum.com/t/mysql-schema-error/141148 "2009-02-05T00:01:22Z")

</div>

I’ve been stuck on this from the past 2-3 days. I deleted the folder, did everything right from the start, but it’s still showing the error. I’ve been following this (=\>Ruby on Rails 2.1 - Migrations | Tutorialspoint) …

---

## [Regexp route broken in Rails 2.2.2?](https://www.ruby-forum.com/t/regexp-route-broken-in-rails-2-2-2/159478)

<div class="topic-metadata">

**Author:** [@ewildgoose](https://www.ruby-forum.com/u/ewildgoose)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 10:25pm UTC](https://www.ruby-forum.com/t/regexp-route-broken-in-rails-2-2-2/159478 "2009-02-04T22:25:09Z")

</div>

Hi, just upgraded an app from Rails 2.1.0 to 2.2.2 and finding my routes stopped working URL which doesn’t match is: http://blah/blog/auth/login Route is: map.connect ‘blog/:controller/:action/:id’, :requirements =\> …

---

## [DangerousAttributeError](https://www.ruby-forum.com/t/dangerousattributeerror/159474)

<div class="topic-metadata">

**Author:** [@Jorg\_L](https://www.ruby-forum.com/u/Jorg_L)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 9:32pm UTC](https://www.ruby-forum.com/t/dangerousattributeerror/159474 "2009-02-04T21:32:14Z")

</div>

Is there something one can do in the model to override ActiveREcord when legacy tables have names that are defined in rails generating teh DangerousAttributeError? Or am I stuck creating a view to get arund this situ…

---

## [Subdomain\_fu rewriting wrong with tld size 2?](https://www.ruby-forum.com/t/subdomain-fu-rewriting-wrong-with-tld-size-2/159469)

<div class="topic-metadata">

**Author:** [@lodestone](https://www.ruby-forum.com/u/lodestone)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 8:46pm UTC](https://www.ruby-forum.com/t/subdomain-fu-rewriting-wrong-with-tld-size-2/159469 "2009-02-04T20:46:24Z")

</div>

I have a website on a demo server at: mycompany.com I have a Rails app with subdomain\_fu. I’ve verified it’s running in the right environment and set the TLD Size to “2” so I can have: myapp.mycompany.com admin.myap…

---

## [Ruby-prof's memory profiling Vs. my app](https://www.ruby-forum.com/t/ruby-profs-memory-profiling-vs-my-app/159466)

<div class="topic-metadata">

**Author:** [@moredip](https://www.ruby-forum.com/u/moredip)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 8:22pm UTC](https://www.ruby-forum.com/t/ruby-profs-memory-profiling-vs-my-app/159466 "2009-02-04T20:22:13Z")

</div>

I’ve been using ruby-prof’s memory profiling mode to try to reduce the memory usage of an app, with ruby enterprise edition and rails 2.2.2. I setup a profiling test (as recommended in the ruby-prof docs) for a single…

---

## [2nd call for papers: PostgreSQL Conference East](https://www.ruby-forum.com/t/2nd-call-for-papers-postgresql-conference-east/159455)

<div class="topic-metadata">

**Author:** [@Joshua\_DSDrake](https://www.ruby-forum.com/u/Joshua_DSDrake)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 6:43pm UTC](https://www.ruby-forum.com/t/2nd-call-for-papers-postgresql-conference-east/159455 "2009-02-04T18:43:23Z")

</div>

PostgreSQL Conference East is being held at historic Drexel University on April 3rd through 5th 2009 . This is the second call for papers. The call for papers ends Feb 23rd and speakers will be notified on the 27th. Y…

---

## [Protect to\_xml and/or disabled other format](https://www.ruby-forum.com/t/protect-to-xml-and-or-disabled-other-format/159304)

<div class="topic-metadata">

**Author:** [@fmh](https://www.ruby-forum.com/u/fmh)\
**Replies:** 2\
**Last updated:** [February 4, 2009, 6:38pm UTC](https://www.ruby-forum.com/t/protect-to-xml-and-or-disabled-other-format/159304 "2009-02-04T18:38:01Z")

</div>

hello, how protect to\_xml and disabled other format or accpet only html format example : if user type in url www.mysite/controller.xml , i want to redirect to another controller. it’s possible to use a routes to do …

---

## [Rich editor](https://www.ruby-forum.com/t/rich-editor/159453)

<div class="topic-metadata">

**Author:** [@gorter9](https://www.ruby-forum.com/u/gorter9)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 6:16pm UTC](https://www.ruby-forum.com/t/rich-editor/159453 "2009-02-04T18:16:26Z")

</div>

I have a script with a tinymce editor included. But the editor doesn’t work at all. Can somebody explain what is wrong. In the application\_helper def in\_place\_rich\_editor(field\_id, options = {}) function = “new Aja…

---

## [PHP string + value to RoR](https://www.ruby-forum.com/t/php-string-value-to-ror/159396)

<div class="topic-metadata">

**Author:** [@johnroyworld](https://www.ruby-forum.com/u/johnroyworld)\
**Replies:** 5\
**Last updated:** [February 4, 2009, 5:38pm UTC](https://www.ruby-forum.com/t/php-string-value-to-ror/159396 "2009-02-04T17:38:54Z")

</div>

hello I’m new to RoR and i have concern regarding on how to output a string with a value that parse on it. Example in php: $value = 1; $string = ‘the value is ‘.$value.’.’; and it gives you the output which is: “the…

---

## [Date Range Between Two Dates - NEED HELP](https://www.ruby-forum.com/t/date-range-between-two-dates-need-help/159393)

<div class="topic-metadata">

**Author:** [@lookshankar](https://www.ruby-forum.com/u/lookshankar)\
**Replies:** 5\
**Last updated:** [February 4, 2009, 4:54pm UTC](https://www.ruby-forum.com/t/date-range-between-two-dates-need-help/159393 "2009-02-04T16:54:00Z")

</div>

hi, I’ve two dates say input for example., date1 = ‘2009-01-02’; date2 = ‘2009-01-10’; Need to find date range array between date1 and date2. output for example., Array{ \[0\]=\>‘2009-01-02’, \[1\]=\>‘2009-01-03’, \[2…

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

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