# Rails

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

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

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/162036)

<div class="topic-metadata">

**Author:** [@khim\_sreang](https://www.ruby-forum.com/u/khim_sreang)\
**Replies:** 1\
**Last updated:** [March 5, 2009, 9:49am UTC](https://www.ruby-forum.com/t/no-subject/162036 "2009-03-05T09:49:10Z")

</div>

Hi all, I want to make ruby on rails advance search with check box and redio bottom but i can’t to do that,please help me to do that by seding code or some concept.Pleae find attachment file to see detail of my form …

---

## [Rails 2.3 test failure - is this all it takes?](https://www.ruby-forum.com/t/rails-2-3-test-failure-is-this-all-it-takes/162050)

<div class="topic-metadata">

**Author:** [@conz](https://www.ruby-forum.com/u/conz)\
**Replies:** 0\
**Last updated:** [March 5, 2009, 9:31am UTC](https://www.ruby-forum.com/t/rails-2-3-test-failure-is-this-all-it-takes/162050 "2009-03-05T09:31:00Z")

</div>

On Wed, Mar 4, 2009 at 9:14 PM, Richard Lloyd removed\_email\_address@domain.invalidwrote: Conrad, I just commented out line 10 from activesupport-2.3.0/lib/activesupport/test\_case.rb and the test ran to completion. …

---

## [2 types of method new](https://www.ruby-forum.com/t/2-types-of-method-new/162046)

<div class="topic-metadata">

**Author:** [@golf](https://www.ruby-forum.com/u/golf)\
**Replies:** 0\
**Last updated:** [March 5, 2009, 9:17am UTC](https://www.ruby-forum.com/t/2-types-of-method-new/162046 "2009-03-05T09:17:14Z")

</div>

Hello, I want to make a two types of new user registrations. user/new/band user/new/user I want to show still the same form and pass hidden field with for example user\_type (band or user). Any help would be most we…

---

## [Separate rows in view depending its date](https://www.ruby-forum.com/t/separate-rows-in-view-depending-its-date/161993)

<div class="topic-metadata">

**Author:** [@kinunt](https://www.ruby-forum.com/u/kinunt)\
**Replies:** 5\
**Last updated:** [March 5, 2009, 8:33am UTC](https://www.ruby-forum.com/t/separate-rows-in-view-depending-its-date/161993 "2009-03-05T08:33:33Z")

</div>

Hi, I would like to hear your opinions about how do you think I can implement this. I have a @events array where I have events each one with its datetime, and ordered by it. I would like to show a list of these even…

---

## [Insert using Rake Task](https://www.ruby-forum.com/t/insert-using-rake-task/162045)

<div class="topic-metadata">

**Author:** [@rakenewuser](https://www.ruby-forum.com/u/rakenewuser)\
**Replies:** 0\
**Last updated:** [March 5, 2009, 8:11am UTC](https://www.ruby-forum.com/t/insert-using-rake-task/162045 "2009-03-05T08:11:31Z")

</div>

Hi, Anyone can help me, I run my source code using rake task. It seems no error was trace, but when I look the table it doesn’t insert.I select the data here MysqlDB.Tablename and update/insert here SQLserverDB.Table…

---

## [Gmap application](https://www.ruby-forum.com/t/gmap-application/162042)

<div class="topic-metadata">

**Author:** [@chaitanya](https://www.ruby-forum.com/u/chaitanya)\
**Replies:** 0\
**Last updated:** [March 5, 2009, 7:56am UTC](https://www.ruby-forum.com/t/gmap-application/162042 "2009-03-05T07:56:40Z")

</div>

Hello friends I have a problem with google meshup feature it is giving me following error. SystemStackError in Moments#list Showing moments/list.html.erb where line #6 raised: stack level too deep Extracted source …

---

## [Need Suggestion on handling multiple associated models](https://www.ruby-forum.com/t/need-suggestion-on-handling-multiple-associated-models/162043)

<div class="topic-metadata">

**Author:** [@Sahil\_D](https://www.ruby-forum.com/u/Sahil_D)\
**Replies:** 0\
**Last updated:** [March 5, 2009, 7:47am UTC](https://www.ruby-forum.com/t/need-suggestion-on-handling-multiple-associated-models/162043 "2009-03-05T07:47:18Z")

</div>

hi guys… I am new to rails and need some pointers on how i should handle multiple related models. ’ ’ =\> model In my app i am creating and handling some ‘deals’. Each ‘deal’ has got some ‘orders’, and each ‘order’ …

---

## [Restful\_authentication with two models suggestion/help](https://www.ruby-forum.com/t/restful-authentication-with-two-models-suggestion-help/161920)

<div class="topic-metadata">

**Author:** [@bagadoughnuts](https://www.ruby-forum.com/u/bagadoughnuts)\
**Replies:** 5\
**Last updated:** [March 5, 2009, 4:33am UTC](https://www.ruby-forum.com/t/restful-authentication-with-two-models-suggestion-help/161920 "2009-03-05T04:33:40Z")

</div>

Hi all, I’m working on trying to create a login system via subdomains for a teacher/students. I have two models at the moment. teacher.rb and student.rb. The fields in both tables are almost identical. Now I’ve come …

---

## [Dynamic validations](https://www.ruby-forum.com/t/dynamic-validations/161865)

<div class="topic-metadata">

**Author:** [@timdunn2](https://www.ruby-forum.com/u/timdunn2)\
**Replies:** 2\
**Last updated:** [March 5, 2009, 3:41am UTC](https://www.ruby-forum.com/t/dynamic-validations/161865 "2009-03-05T03:41:26Z")

</div>

I am wondering what code I should put inside the class of my model to do validations for all columns of a given data type. For example I want to validate whether it is a number or not if it is of type integer. I want …

---

## [Can't connect to local MySQL server through socket](https://www.ruby-forum.com/t/cant-connect-to-local-mysql-server-through-socket/162031)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 2\
**Last updated:** [March 5, 2009, 2:35am UTC](https://www.ruby-forum.com/t/cant-connect-to-local-mysql-server-through-socket/162031 "2009-03-05T02:35:50Z")

</div>

I just did an unwanted mysql upgrade and am now unable to start the mysql service. After doing some searching the common solution is to just create a symlink ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock The iss…

---

## [New version of open source Ruby on Rails virtual software appliance](https://www.ruby-forum.com/t/new-version-of-open-source-ruby-on-rails-virtual-software-appliance/162035)

<div class="topic-metadata">

**Author:** [@Liraz](https://www.ruby-forum.com/u/Liraz)\
**Replies:** 0\
**Last updated:** [March 5, 2009, 2:35am UTC](https://www.ruby-forum.com/t/new-version-of-open-source-ruby-on-rails-virtual-software-appliance/162035 "2009-03-05T02:35:05Z")

</div>

Hi everyone, We just released a new version of our Ruby on Rails appliance: In a nutshell, this is an extremely easy way to get a Rails stack up and running in your VM (VMware, VirtualBox, Xen, KVM) of choice in jus…

---

## [Hard coded drop down menu help](https://www.ruby-forum.com/t/hard-coded-drop-down-menu-help/162016)

<div class="topic-metadata">

**Author:** [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Replies:** 3\
**Last updated:** [March 5, 2009, 1:14am UTC](https://www.ruby-forum.com/t/hard-coded-drop-down-menu-help/162016 "2009-03-05T01:14:15Z")

</div>

I currently have a drop down menu selection in an input form with hardcoded values, the problem I’m having is I want to use multiple word entries that users can select from, is there anyway of doing that? here is my c…

---

## [Total per user](https://www.ruby-forum.com/t/total-per-user/161998)

<div class="topic-metadata">

**Author:** [@esdevs](https://www.ruby-forum.com/u/esdevs)\
**Replies:** 10\
**Last updated:** [March 5, 2009, 12:58am UTC](https://www.ruby-forum.com/t/total-per-user/161998 "2009-03-05T00:58:00Z")

</div>

so I am trying to sum month over month the amount that a user has posted. So for example: User 1: Jan $3000 Feb $4000 March $1500, etc. I can get this to work if I sum totals (aggregate of all users) but just not by…

---

## [Android + Rails](https://www.ruby-forum.com/t/android-rails/162029)

<div class="topic-metadata">

**Author:** [@arshak](https://www.ruby-forum.com/u/arshak)\
**Replies:** 0\
**Last updated:** [March 5, 2009, 12:51am UTC](https://www.ruby-forum.com/t/android-rails/162029 "2009-03-05T00:51:54Z")

</div>

Anything out there like this: http://iphoneonrails.com/ but for Android?

---

## [JavaScript Frameworks](https://www.ruby-forum.com/t/javascript-frameworks/162017)

<div class="topic-metadata">

**Author:** [@kyleh](https://www.ruby-forum.com/u/kyleh)\
**Replies:** 0\
**Last updated:** [March 4, 2009, 11:01pm UTC](https://www.ruby-forum.com/t/javascript-frameworks/162017 "2009-03-04T23:01:16Z")

</div>

In an effort to better understand loosely what developer’s think of the JavaScript frameworks they use, I’ve created a short survey. It is by no means a scientific representation of an overall census, naturally. I hop…

---

## [How to install patches?](https://www.ruby-forum.com/t/how-to-install-patches/64091)

<div class="topic-metadata">

**Author:** [@haries](https://www.ruby-forum.com/u/haries)\
**Replies:** 7\
**Last updated:** [March 4, 2009, 10:58pm UTC](https://www.ruby-forum.com/t/how-to-install-patches/64091 "2009-03-04T22:58:55Z")

</div>

Hi, Can someone explain how do I install patches. Once I go to the page, I am not sure what to download and how to apply? I am RoR newbie. -Thanks Hari

---

## [Como consultar en oracle](https://www.ruby-forum.com/t/como-consultar-en-oracle/160484)

<div class="topic-metadata">

**Author:** [@oraldo](https://www.ruby-forum.com/u/oraldo)\
**Replies:** 24\
**Last updated:** [March 4, 2009, 10:48pm UTC](https://www.ruby-forum.com/t/como-consultar-en-oracle/160484 "2009-03-04T22:48:20Z")

</div>

holaa todos ante todo un cordial saludo alguien que me pueda ayudar. se plantea lo siguiente necesito mostrar 2 campos de una tabla los cuales son mtin\_mtin,mtin\_descri de una tabla llamada re\_tmtinv de esos dos campo…

---

## [Versions?](https://www.ruby-forum.com/t/versions/162009)

<div class="topic-metadata">

**Author:** [@sprsquish](https://www.ruby-forum.com/u/sprsquish)\
**Replies:** 4\
**Last updated:** [March 4, 2009, 9:52pm UTC](https://www.ruby-forum.com/t/versions/162009 "2009-03-04T21:52:11Z")

</div>

I’m using Rails 2.3 and Ruby 1.9.1 on OS X 10.5, and some simple things are failing. I can’t believe I’m the only one who has encountered these issues, so if anybody else is using the same tool versions, would you pl…

---

## [Render yield?!](https://www.ruby-forum.com/t/render-yield/161982)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 6\
**Last updated:** [March 4, 2009, 9:16pm UTC](https://www.ruby-forum.com/t/render-yield/161982 "2009-03-04T21:16:27Z")

</div>

Hello, I’ve got a little problem with remote functions. I call it for example like this: \<%= link\_to\_remote ‘bla’, :url =\> ‘bla/whatever’, :method =\> :get %\> that function would be: def whatever flash\[:notice\] = “Y…

---

## [About rails error\_messages](https://www.ruby-forum.com/t/about-rails-error-messages/161994)

<div class="topic-metadata">

**Author:** [@difei](https://www.ruby-forum.com/u/difei)\
**Replies:** 1\
**Last updated:** [March 4, 2009, 8:57pm UTC](https://www.ruby-forum.com/t/about-rails-error-messages/161994 "2009-03-04T20:57:14Z")

</div>

Hi all, I have a web form: \<% form\_for @comment do |f| %\> \<%= f.error\_messages %\> \<%= f.label :author %\> \<%= f.text\_field :author, :size =\> 20 %\> %\> \<%= f.label :email %\> \<%= f.text\_fie…

---

## [Getting the namespace out of the URL](https://www.ruby-forum.com/t/getting-the-namespace-out-of-the-url/161915)

<div class="topic-metadata">

**Author:** [@khiltd](https://www.ruby-forum.com/u/khiltd)\
**Replies:** 10\
**Last updated:** [March 4, 2009, 8:47pm UTC](https://www.ruby-forum.com/t/getting-the-namespace-out-of-the-url/161915 "2009-03-04T20:47:16Z")

</div>

I want to group my controllers into subdirectories as a matter of internal organization, but I do not want to have these subdirectories automatically interpreted as some latent desire on my part to create additional n…

---

## [Link\_to/url\_for in an "model" object quandry](https://www.ruby-forum.com/t/link-to-url-for-in-an-model-object-quandry/161952)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 6\
**Last updated:** [March 4, 2009, 6:44pm UTC](https://www.ruby-forum.com/t/link-to-url-for-in-an-model-object-quandry/161952 "2009-03-04T18:44:13Z")

</div>

OK, I’ve googled and found some discussion about this and seen the scolding about breaking the MVC pattern as in “why do you need to do that?”, but I do have a situation where it makes some sense. Let me describe… I …

---

## [Public folder (images, javascript) on Amazon's Cloudfront](https://www.ruby-forum.com/t/public-folder-images-javascript-on-amazons-cloudfront/153993)

<div class="topic-metadata">

**Author:** [@jah4711](https://www.ruby-forum.com/u/jah4711)\
**Replies:** 3\
**Last updated:** [March 4, 2009, 6:31pm UTC](https://www.ruby-forum.com/t/public-folder-images-javascript-on-amazons-cloudfront/153993 "2009-03-04T18:31:13Z")

</div>

Hi, as the subject says I am currently considering to move all resources from my app to Cloudfront. I already googled for some best practices, but haven’t found much. However, despite that Cloudfront is quite new, I…

---

## [How to install a patch on windows xp?](https://www.ruby-forum.com/t/how-to-install-a-patch-on-windows-xp/56891)

<div class="topic-metadata">

**Author:** [@barthelemy](https://www.ruby-forum.com/u/barthelemy)\
**Replies:** 3\
**Last updated:** [March 4, 2009, 6:24pm UTC](https://www.ruby-forum.com/t/how-to-install-a-patch-on-windows-xp/56891 "2009-03-04T18:24:46Z")

</div>

Hello all, I need to install the following patch : http://dev.rubyonrails.org/ticket/4457 Unfortunately I don’t have any idea how to use/install it… I am on windows xp. Could someone help me, and sorry for my questi…

---

## [Problem with \`arp -a\`](https://www.ruby-forum.com/t/problem-with-arp-a/161877)

<div class="topic-metadata">

**Author:** [@misha\_mistral](https://www.ruby-forum.com/u/misha_mistral)\
**Replies:** 3\
**Last updated:** [March 4, 2009, 6:05pm UTC](https://www.ruby-forum.com/t/problem-with-arp-a/161877 "2009-03-04T18:05:50Z")

</div>

Hi everyone. I have a problem with this command: @arp\_table = arp -n When I execute it on console, all is perfect, but when I put it in the script on Rails the string arp\_table is empty and I don’t view any result. …

---

## [Generated plugin test doesn't work](https://www.ruby-forum.com/t/generated-plugin-test-doesnt-work/159306)

<div class="topic-metadata">

**Author:** [@raphael\_b](https://www.ruby-forum.com/u/raphael_b)\
**Replies:** 1\
**Last updated:** [March 4, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/generated-plugin-test-doesnt-work/159306 "2009-03-04T17:35:50Z")

</div>

Hi, I’m on rails 2.2.2, and generate a new plugin: ./script/generate plugin mytest and try to run the generated test but get an error: cd vendor/plugins/mytest/ rake test --trace (in /tmp/test/vendor/plugins/mytes…

---

## [How to apply a specific "view" when I send out an \*email\*](https://www.ruby-forum.com/t/how-to-apply-a-specific-view-when-i-send-out-an-email/161988)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 2\
**Last updated:** [March 4, 2009, 5:28pm UTC](https://www.ruby-forum.com/t/how-to-apply-a-specific-view-when-i-send-out-an-email/161988 "2009-03-04T17:28:26Z")

</div>

Hi there, how can I tell my Rails app Mailer to: -\> Apply a specific “view” when I send out an email ? When I don’t specify anything specific, my “WhateverMailer” looks for its “view” (.erb file) as if the Mailer was…

---

## [How to use templates in ruby](https://www.ruby-forum.com/t/how-to-use-templates-in-ruby/161931)

<div class="topic-metadata">

**Author:** [@nanouk](https://www.ruby-forum.com/u/nanouk)\
**Replies:** 5\
**Last updated:** [March 4, 2009, 5:24pm UTC](https://www.ruby-forum.com/t/how-to-use-templates-in-ruby/161931 "2009-03-04T17:24:21Z")

</div>

hi all, I have created links ie:- /articles /news and i looked on a site and it said creating a .rhtml file in the app/views/articles news etc but when i created news.rhtml and articles.rhtml and put it in the fold…

---

## [Mail](https://www.ruby-forum.com/t/mail/159519)

<div class="topic-metadata">

**Author:** [@mikael](https://www.ruby-forum.com/u/mikael)\
**Replies:** 2\
**Last updated:** [March 4, 2009, 4:26pm UTC](https://www.ruby-forum.com/t/mail/159519 "2009-03-04T16:26:28Z")

</div>

Hi! I use armailer and crontab to send out mass email at night works perfektly. But i also have mail that i want to send immediatly, is there a way to say to armailer deliver at once. Or do i have to set ar\_sendmail …

---

## [Change date and numbers format, before\_validation()](https://www.ruby-forum.com/t/change-date-and-numbers-format-before-validation/161958)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 6\
**Last updated:** [March 4, 2009, 2:45pm UTC](https://www.ruby-forum.com/t/change-date-and-numbers-format-before-validation/161958 "2009-03-04T14:45:44Z")

</div>

Hello, I need to change/adapt of the date and float numbers the user enters: dd/mm/yyyy I have to change into yyyy-mm-dd and numbers, replace the , with the . 1245,85 =\> 1245.85 I thought the best place was using th…

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

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