# Rails

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

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

---

## [Datepicker inside a form ... how?](https://www.ruby-forum.com/t/datepicker-inside-a-form-how/187115)

<div class="topic-metadata">

**Author:** [@spitfire](https://www.ruby-forum.com/u/spitfire)\
**Replies:** 0\
**Last updated:** [April 17, 2010, 11:32am UTC](https://www.ruby-forum.com/t/datepicker-inside-a-form-how/187115 "2010-04-17T11:32:47Z")

</div>

Hi, I am using jquery lib in a rails app. In a search form (created with form\_tag) I have different fields and one datepicker object, of course I can get all values from any text field but how can I get the stringda…

---

## [I wnat my application to run site 5 of ROR i am getting public\_html and other folder but i want to](https://www.ruby-forum.com/t/i-wnat-my-application-to-run-site-5-of-ror-i-am-getting-public-html-and-other-folder-but-i-want-to/186450)

<div class="topic-metadata">

**Author:** [@rahul\_m](https://www.ruby-forum.com/u/rahul_m)\
**Replies:** 2\
**Last updated:** [April 17, 2010, 11:15am UTC](https://www.ruby-forum.com/t/i-wnat-my-application-to-run-site-5-of-ror-i-am-getting-public-html-and-other-folder-but-i-want-to/186450 "2010-04-17T11:15:45Z")

</div>

i wnat my application to run site 5 of ROR i am getting public\_html and other folder but i want to get run my application what to do

---

## [If your javascript doesn't execute, but instead just gets displayed on the browser](https://www.ruby-forum.com/t/if-your-javascript-doesnt-execute-but-instead-just-gets-displayed-on-the-browser/187105)

<div class="topic-metadata">

**Author:** [@mstoth](https://www.ruby-forum.com/u/mstoth)\
**Replies:** 1\
**Last updated:** [April 17, 2010, 10:09am UTC](https://www.ruby-forum.com/t/if-your-javascript-doesnt-execute-but-instead-just-gets-displayed-on-the-browser/187105 "2010-04-17T10:09:02Z")

</div>

OK, I’ve been struggling for days trying to understand why my javascript is just being displayed on the browser rather than executed. I have found out the placement of the javascript\_include\_tag was my problem. I ha…

---

## [Need help understanding :order usage](https://www.ruby-forum.com/t/need-help-understanding-order-usage/187091)

<div class="topic-metadata">

**Author:** [@RVRoadie](https://www.ruby-forum.com/u/RVRoadie)\
**Replies:** 2\
**Last updated:** [April 17, 2010, 4:41am UTC](https://www.ruby-forum.com/t/need-help-understanding-order-usage/187091 "2010-04-17T04:41:18Z")

</div>

Import has\_many IRows IRow belongs to Import @import = Import.find(params\[:id\]) Shouldn’t both of the following statements work the same? #1 :@i\_rows = @import.i\_rows(:order =\> :row\_sort) Generates: SELECT \* FROM “i…

---

## [Unique by id](https://www.ruby-forum.com/t/unique-by-id/187071)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 2\
**Last updated:** [April 16, 2010, 11:30pm UTC](https://www.ruby-forum.com/t/unique-by-id/187071 "2010-04-16T23:30:53Z")

</div>

Guyz, tell me one thing that if i have an array of object of type ABC… then how to find the objects from that array which are uniq in id… I mean unique by ABC.id… May be a newbie question…

---

## [How to replace mail\_to in Rails 3?](https://www.ruby-forum.com/t/how-to-replace-mail-to-in-rails-3/186980)

<div class="topic-metadata">

**Author:** [@ptremblett](https://www.ruby-forum.com/u/ptremblett)\
**Replies:** 5\
**Last updated:** [April 16, 2010, 11:08pm UTC](https://www.ruby-forum.com/t/how-to-replace-mail-to-in-rails-3/186980 "2010-04-16T23:08:50Z")

</div>

I have just started up grading to Rails 3. mail\_to no longer works, you just get a lot of garbage. With what do I replace it? Thanks Paul Thompson

---

## [Ruby On Rails](https://www.ruby-forum.com/t/ruby-on-rails/187092)

<div class="topic-metadata">

**Author:** [@TRKRameshkumar](https://www.ruby-forum.com/u/TRKRameshkumar)\
**Replies:** 2\
**Last updated:** [April 16, 2010, 10:51pm UTC](https://www.ruby-forum.com/t/ruby-on-rails/187092 "2010-04-16T22:51:59Z")

</div>

i am new to Ruby On Rails

---

## [DEEEEPLY nested](https://www.ruby-forum.com/t/deeeeply-nested/187096)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 4\
**Last updated:** [April 16, 2010, 10:42pm UTC](https://www.ruby-forum.com/t/deeeeply-nested/187096 "2010-04-16T22:42:30Z")

</div>

Hello, i have “a” has many “b”, “b” has many “c”, and “c” has many “d” Now… “d” is a user model, and I have a current\_user helper method defined. If i navigate to an “a” show page, how can I make sure that my curren…

---

## [Controller action code not being executed](https://www.ruby-forum.com/t/controller-action-code-not-being-executed/187095)

<div class="topic-metadata">

**Author:** [@lpeabody](https://www.ruby-forum.com/u/lpeabody)\
**Replies:** 2\
**Last updated:** [April 16, 2010, 9:26pm UTC](https://www.ruby-forum.com/t/controller-action-code-not-being-executed/187095 "2010-04-16T21:26:03Z")

</div>

Hi all! I have a similar post going on at railsforum.com, but I figured getting help from multiple sources is better than just one! Let me begin. I have a controller, CommentsController, with a custom action ‘permit…

---

## [Caching html pages - which is better: blobs or files?](https://www.ruby-forum.com/t/caching-html-pages-which-is-better-blobs-or-files/187087)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 1\
**Last updated:** [April 16, 2010, 7:24pm UTC](https://www.ruby-forum.com/t/caching-html-pages-which-is-better-blobs-or-files/187087 "2010-04-16T19:24:36Z")

</div>

I’ve written a simple package for caching pages I’ve fetched from the web. It works like a champ, and makes it so I don’t have to hit a server multiple times. I’m wondering whether it’s better to store the cached pag…

---

## [Xml builder, dynamic methods](https://www.ruby-forum.com/t/xml-builder-dynamic-methods/187037)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 2\
**Last updated:** [April 16, 2010, 6:38pm UTC](https://www.ruby-forum.com/t/xml-builder-dynamic-methods/187037 "2010-04-16T18:38:55Z")

</div>

Is there a way to do something like: x = Builder::XmlMarkup.new(:target =\> $stdout, :indent =\> 1) x.instruct! x.response{ x.XXXXX{ XXXXX is a variable sent in to a method.

---

## [Zena transition to 1.0: any encouragement or help welcome](https://www.ruby-forum.com/t/zena-transition-to-1-0-any-encouragement-or-help-welcome/187082)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 1\
**Last updated:** [April 16, 2010, 5:58pm UTC](https://www.ruby-forum.com/t/zena-transition-to-1-0-any-encouragement-or-help-welcome/187082 "2010-04-16T17:58:25Z")

</div>

Hi list ! The refactoring to use RubyLess in the templates and improve custom attributes handling (Property) that started in autumn 2009 was quite big and now many tests in the 1.0 branch fail. Such important changes…

---

## [Test downloading stuff](https://www.ruby-forum.com/t/test-downloading-stuff/187052)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 5\
**Last updated:** [April 16, 2010, 5:27pm UTC](https://www.ruby-forum.com/t/test-downloading-stuff/187052 "2010-04-16T17:27:29Z")

</div>

Guys, Anybody know how to test the downloading stuff … ?

---

## [Testing mail server connection?](https://www.ruby-forum.com/t/testing-mail-server-connection/187079)

<div class="topic-metadata">

**Author:** [@tomuhs](https://www.ruby-forum.com/u/tomuhs)\
**Replies:** 0\
**Last updated:** [April 16, 2010, 4:51pm UTC](https://www.ruby-forum.com/t/testing-mail-server-connection/187079 "2010-04-16T16:51:11Z")

</div>

Does anybody know of a way to test that the configured mail server connection works? In a similar vein, is there a way to simply test the database connection? I use db:migrate for that now but I’d prefer a method that…

---

## [Session confusion using mem\_cache\_store?](https://www.ruby-forum.com/t/session-confusion-using-mem-cache-store/187078)

<div class="topic-metadata">

**Author:** [@HSWade\_M](https://www.ruby-forum.com/u/HSWade_M)\
**Replies:** 0\
**Last updated:** [April 16, 2010, 4:48pm UTC](https://www.ruby-forum.com/t/session-confusion-using-mem-cache-store/187078 "2010-04-16T16:48:15Z")

</div>

I have a Rails 2.3 application with about 45,000 active users. We currently store sessions in the database with active\_record\_store. I recently tested switching the session store to memcache, but within a day of it r…

---

## [Habtm joining and getting data problem](https://www.ruby-forum.com/t/habtm-joining-and-getting-data-problem/187001)

<div class="topic-metadata">

**Author:** [@rahul\_m](https://www.ruby-forum.com/u/rahul_m)\
**Replies:** 4\
**Last updated:** [April 16, 2010, 3:39pm UTC](https://www.ruby-forum.com/t/habtm-joining-and-getting-data-problem/187001 "2010-04-16T15:39:43Z")

</div>

i have two module both are joined by HABTM name are tags and content\_masters i have content\_master .id and i want to get all the content\_masters which are with the same tag as that id has . means if my content\_master…

---

## [Rails 2.3.2 \<=\> 2.3.4 SMTP: Recipient cannot contain spaces](https://www.ruby-forum.com/t/rails-2-3-2-2-3-4-smtp-recipient-cannot-contain-spaces/187072)

<div class="topic-metadata">

**Author:** [@twp](https://www.ruby-forum.com/u/twp)\
**Replies:** 0\
**Last updated:** [April 16, 2010, 3:32pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-2-3-4-smtp-recipient-cannot-contain-spaces/187072 "2010-04-16T15:32:22Z")

</div>

Did something change within the mailing support in Rails between versions 2.3.2 and 2.3.4? I have an app running Rails 2.3.2 with the following string as ‘sender’ for every email I sent out (new user created, forgotto…

---

## [Idea I18n.t(:not\_existing).presence == nil](https://www.ruby-forum.com/t/idea-i18n-t-not-existing-presence-nil/187070)

<div class="topic-metadata">

**Author:** [@iain\_hecker](https://www.ruby-forum.com/u/iain_hecker)\
**Replies:** 1\
**Last updated:** [April 16, 2010, 3:30pm UTC](https://www.ruby-forum.com/t/idea-i18n-t-not-existing-presence-nil/187070 "2010-04-16T15:30:56Z")

</div>

Hi guys, I had an idea, just wondering what your thoughts on it are. Short introduction: ActiveSupport 3 introduces the #presence method, which returns nil if #present? returns false, otherwise it returns self. Can …

---

## [Multiple production servers with different roles?](https://www.ruby-forum.com/t/multiple-production-servers-with-different-roles/187066)

<div class="topic-metadata">

**Author:** [@trevor](https://www.ruby-forum.com/u/trevor)\
**Replies:** 0\
**Last updated:** [April 16, 2010, 3:04pm UTC](https://www.ruby-forum.com/t/multiple-production-servers-with-different-roles/187066 "2010-04-16T15:04:35Z")

</div>

We’ve got an app dealing with a lot of heavy disk i/o (\>1GB uploads, lots of processing, etc.). Most of the app runs great on a few frontend servers in a xen environment but disk i/o is always a bottleneck, so we’re o…

---

## [No Method Error in MasterkeysController#search](https://www.ruby-forum.com/t/no-method-error-in-masterkeyscontroller-search/187065)

<div class="topic-metadata">

**Author:** [@sandeep\_ndd](https://www.ruby-forum.com/u/sandeep_ndd)\
**Replies:** 1\
**Last updated:** [April 16, 2010, 2:24pm UTC](https://www.ruby-forum.com/t/no-method-error-in-masterkeyscontroller-search/187065 "2010-04-16T14:24:45Z")

</div>

undefined method \`pin’ for “Masterkey\_2304”:String Extracted source (around line #3): 1: 2: Pin: 3: \<%=h @masterkey.pin %\> 4: 5: 6: RAILS\_ROOT: D:/CRIMPROF Request Parameters: {“Search”=\>“Search”, “p…

---

## [Want to write content in gujarati language in rails apps](https://www.ruby-forum.com/t/want-to-write-content-in-gujarati-language-in-rails-apps/187050)

<div class="topic-metadata">

**Author:** [@preksha](https://www.ruby-forum.com/u/preksha)\
**Replies:** 5\
**Last updated:** [April 16, 2010, 2:23pm UTC](https://www.ruby-forum.com/t/want-to-write-content-in-gujarati-language-in-rails-apps/187050 "2010-04-16T14:23:00Z")

</div>

Hi all, I am working on ruby on rails and i want to write contents in gujarati language i.e user can enter the data in gujarati language when he select the language “Gujarati” so that when user wants to see the site…

---

## [Respond\_with and redirects on error](https://www.ruby-forum.com/t/respond-with-and-redirects-on-error/186961)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 16, 2010, 1:39pm UTC](https://www.ruby-forum.com/t/respond-with-and-redirects-on-error/186961 "2010-04-16T13:39:05Z")

</div>

Hello, I’m using edge Rails and I have the following code in my users controller, with the respective test: def update @user = User.find(params\[:id\]) if @user.update\_attributes(params\[:user\]) flash\[:notice\] = t :us…

---

## [Activerecord readonly attributes](https://www.ruby-forum.com/t/activerecord-readonly-attributes/187048)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 3\
**Last updated:** [April 16, 2010, 12:15pm UTC](https://www.ruby-forum.com/t/activerecord-readonly-attributes/187048 "2010-04-16T12:15:22Z")

</div>

I do not know why my previous post was deleted. I am trying again. In Firebird database one can declare computed columns. These columns are readonly in the database. How do I stop activerecord to include these columns…

---

## [Asking for tools](https://www.ruby-forum.com/t/asking-for-tools/186973)

<div class="topic-metadata">

**Author:** [@carlitux](https://www.ruby-forum.com/u/carlitux)\
**Replies:** 9\
**Last updated:** [April 16, 2010, 11:34am UTC](https://www.ruby-forum.com/t/asking-for-tools/186973 "2010-04-16T11:34:22Z")

</div>

Hi, I have searched for a development sandbox tool, like virtualenv or buildout in python. But I didn’t have results. Please, Any suggestion? Thanks.

---

## [Rails proxy setting - How?](https://www.ruby-forum.com/t/rails-proxy-setting-how/187056)

<div class="topic-metadata">

**Author:** [@52carcar](https://www.ruby-forum.com/u/52carcar)\
**Replies:** 0\
**Last updated:** [April 16, 2010, 9:51am UTC](https://www.ruby-forum.com/t/rails-proxy-setting-how/187056 "2010-04-16T09:51:35Z")

</div>

Description: Now I have set a openfire as xmpp server, and use apache do a proxy pass to enable http-bind httpd.conf: ProxyRequests On ProxyPass /http-bind/ http://host:7070/http-bind/ (this is the openfire address…

---

## [Passing two id values through :with?](https://www.ruby-forum.com/t/passing-two-id-values-through-with/187047)

<div class="topic-metadata">

**Author:** [@veena](https://www.ruby-forum.com/u/veena)\
**Replies:** 3\
**Last updated:** [April 16, 2010, 9:13am UTC](https://www.ruby-forum.com/t/passing-two-id-values-through-with/187047 "2010-04-16T09:13:58Z")

</div>

Hai frnds, I hav two select boxes.1st selectbox for selecting the "state" and the 2nd selectbox will be populated with the “districts” based on the 1st select box value.I want to show some details according to the di…

---

## [\[JOBS\] Ruby Developer in San Francisco Bay Area (city)](https://www.ruby-forum.com/t/jobs-ruby-developer-in-san-francisco-bay-area-city/187054)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 0\
**Last updated:** [April 16, 2010, 9:12am UTC](https://www.ruby-forum.com/t/jobs-ruby-developer-in-san-francisco-bay-area-city/187054 "2010-04-16T09:12:41Z")

</div>

Hi all you sweet, sweet people. Just wanted to make a quick announcement to anyone out there looking for a new opportunity. Company: Think Twitter for what you Purchase. Service that allows you to automatically shar…

---

## [Want to set cron job for local machine](https://www.ruby-forum.com/t/want-to-set-cron-job-for-local-machine/187051)

<div class="topic-metadata">

**Author:** [@rahul\_m](https://www.ruby-forum.com/u/rahul_m)\
**Replies:** 7\
**Last updated:** [April 16, 2010, 9:05am UTC](https://www.ruby-forum.com/t/want-to-set-cron-job-for-local-machine/187051 "2010-04-16T09:05:04Z")

</div>

hiii alll, want to set the cron job on my local window installation is it possible and how , please help. thanks rahul …

---

## [Date in a textfield](https://www.ruby-forum.com/t/date-in-a-textfield/186164)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 6\
**Last updated:** [April 16, 2010, 8:12am UTC](https://www.ruby-forum.com/t/date-in-a-textfield/186164 "2010-04-16T08:12:24Z")

</div>

Hi I have two date fields in table start\_date and end\_date .There data type are datetime. Now in the view I am accepting values of them as text fields like And I am following RailsCast 32 \<%= f.text\_field :start\_da…

---

## [Need a feed aggregator](https://www.ruby-forum.com/t/need-a-feed-aggregator/186986)

<div class="topic-metadata">

**Author:** [@rahul\_m](https://www.ruby-forum.com/u/rahul_m)\
**Replies:** 2\
**Last updated:** [April 16, 2010, 7:43am UTC](https://www.ruby-forum.com/t/need-a-feed-aggregator/186986 "2010-04-16T07:43:06Z")

</div>

want to aggregate interesting blogs / discussions related to software testing field and keep it at one place In the admin system I’ll provide some information about the feed this i will do Name for the feed Addre…

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

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