# Rails

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

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

---

## [Best way and practices to implement search](https://www.ruby-forum.com/t/best-way-and-practices-to-implement-search/158175)

<div class="topic-metadata">

**Author:** [@gustav](https://www.ruby-forum.com/u/gustav)\
**Replies:** 2\
**Last updated:** [January 20, 2009, 6:32am UTC](https://www.ruby-forum.com/t/best-way-and-practices-to-implement-search/158175 "2009-01-20T06:32:18Z")

</div>

I’m trying to implement a search engine to look thru some stuff in my models. Is there a way I can do something similar to Model.find, but that is more “forgiving” (poor spelling etc.) and also leverages the relations…

---

## [Hiding and showing html with ajax](https://www.ruby-forum.com/t/hiding-and-showing-html-with-ajax/158138)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 2\
**Last updated:** [January 20, 2009, 4:48am UTC](https://www.ruby-forum.com/t/hiding-and-showing-html-with-ajax/158138 "2009-01-20T04:48:16Z")

</div>

I could use some advice on this situation. I know this looks like a lot of code, but It is a straightforward implementation question, I am not stuck or anything. I have what I need working but it involved two ajax s…

---

## [Ruby on Rails local SSH installation - centos i686](https://www.ruby-forum.com/t/ruby-on-rails-local-ssh-installation-centos-i686/158170)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 0\
**Last updated:** [January 20, 2009, 2:21am UTC](https://www.ruby-forum.com/t/ruby-on-rails-local-ssh-installation-centos-i686/158170 "2009-01-20T02:21:00Z")

</div>

I’m totally new to both Rails and this Centos server I got a shell on. Could anyone help me install Ruby on Rails (local installation, so I dont have to ask root to install) through the ssh? Its a centos i686 box

---

## [ActionMailer and url\_for in helper methods](https://www.ruby-forum.com/t/actionmailer-and-url-for-in-helper-methods/158058)

<div class="topic-metadata">

**Author:** [@chuboy](https://www.ruby-forum.com/u/chuboy)\
**Replies:** 3\
**Last updated:** [January 19, 2009, 11:36pm UTC](https://www.ruby-forum.com/t/actionmailer-and-url-for-in-helper-methods/158058 "2009-01-19T23:36:54Z")

</div>

Hi, I was wondering how to get url\_for to work inside ActionMailer. I did research on the web but I can’t seem to find something that fits what I need. In my application, each user can specify their custom domain to…

---

## [Action working in local, not working once deployed](https://www.ruby-forum.com/t/action-working-in-local-not-working-once-deployed/158133)

<div class="topic-metadata">

**Author:** [@tranquiliste](https://www.ruby-forum.com/u/tranquiliste)\
**Replies:** 2\
**Last updated:** [January 19, 2009, 11:15pm UTC](https://www.ruby-forum.com/t/action-working-in-local-not-working-once-deployed/158133 "2009-01-19T23:15:46Z")

</div>

Hello I have a form (new/create) which works well in local, but not when deployed where it keeps being redirected to the index action when I submit. Here is what I have done so far : de-Ajaxified the form to be pu…

---

## [I am sure I am just missing something obvious](https://www.ruby-forum.com/t/i-am-sure-i-am-just-missing-something-obvious/158150)

<div class="topic-metadata">

**Author:** [@bearblu](https://www.ruby-forum.com/u/bearblu)\
**Replies:** 1\
**Last updated:** [January 19, 2009, 10:15pm UTC](https://www.ruby-forum.com/t/i-am-sure-i-am-just-missing-something-obvious/158150 "2009-01-19T22:15:10Z")

</div>

I have html I am trying to verify that looks like: \\n Displaying 1 user\\n a test that contains assert\_tag “p”,:content =\> /Displaying 1 user/ The assertion fails, is there something I am missing? It seems it sh…

---

## [Pass ruby array to javascript function](https://www.ruby-forum.com/t/pass-ruby-array-to-javascript-function/158158)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [January 19, 2009, 10:12pm UTC](https://www.ruby-forum.com/t/pass-ruby-array-to-javascript-function/158158 "2009-01-19T22:12:14Z")

</div>

Im wondering how to go about passing a ruby array to a javascript function. I was able to do this the other way around and pass a javascript array to an action using JSON and convert it back to a ruby array: Object.…

---

## [Session\[:aa\]\[:bb\]](https://www.ruby-forum.com/t/session-aa-bb/158137)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 5\
**Last updated:** [January 19, 2009, 10:01pm UTC](https://www.ruby-forum.com/t/session-aa-bb/158137 "2009-01-19T22:01:31Z")

</div>

Why this doesn’t work? session\[:aa\]\[:bb\] = “xxx”

---

## [Edge rails: \`scan': undefined method \`empty?' for nil:NilCla](https://www.ruby-forum.com/t/edge-rails-scan-undefined-method-empty-for-nil-nilcla/149960)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 4\
**Last updated:** [January 19, 2009, 9:51pm UTC](https://www.ruby-forum.com/t/edge-rails-scan-undefined-method-empty-for-nil-nilcla/149960 "2009-01-19T21:51:19Z")

</div>

Anybody possibly know what’s going on? upgrading my existing rails app to edge results in this error thoughts? /Users/rogerpack/dev/ruby\_186\_installed/lib/ruby/1.8/erb.rb:469:in scan': undefined methodempty?’ for nil…

---

## [Will\_paginate help](https://www.ruby-forum.com/t/will-paginate-help/158146)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 3\
**Last updated:** [January 19, 2009, 9:40pm UTC](https://www.ruby-forum.com/t/will-paginate-help/158146 "2009-01-19T21:40:41Z")

</div>

Can I limit results in will\_paginate plugin? I want to paginate only 100 results 10 per page.

---

## [Quick answer needed on dependancy](https://www.ruby-forum.com/t/quick-answer-needed-on-dependancy/158143)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 2\
**Last updated:** [January 19, 2009, 9:40pm UTC](https://www.ruby-forum.com/t/quick-answer-needed-on-dependancy/158143 "2009-01-19T21:40:05Z")

</div>

Hi Guys, I have a mail\_templates table I have a mailinglists table I have a mail\_templates\_mailinglists table with mailtemplate\_id, and mailinglist\_id mail\_template has\_and\_belongs\_to\_many :mailinglists mailinglist…

---

## [Date Range comparison](https://www.ruby-forum.com/t/date-range-comparison/158117)

<div class="topic-metadata">

**Author:** [@staypufd](https://www.ruby-forum.com/u/staypufd)\
**Replies:** 3\
**Last updated:** [January 19, 2009, 9:15pm UTC](https://www.ruby-forum.com/t/date-range-comparison/158117 "2009-01-19T21:15:17Z")

</div>

I have a set of dates in my database and would like to only get the latest one or the one closest to the current date. I’m trying to come up with a way of doing it but had no luck. If any one could help I would apprec…

---

## [Calling a remote method on choosing an item from Select](https://www.ruby-forum.com/t/calling-a-remote-method-on-choosing-an-item-from-select/158131)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 2\
**Last updated:** [January 19, 2009, 8:29pm UTC](https://www.ruby-forum.com/t/calling-a-remote-method-on-choosing-an-item-from-select/158131 "2009-01-19T20:29:51Z")

</div>

Hi, Is there a way where in I can trigger remote action when an user choose one of the options in the dropdown of “select” method? Mebbe something like on\_change but instead of triggering JS action, remote action is …

---

## [Problem running an demo application](https://www.ruby-forum.com/t/problem-running-an-demo-application/158080)

<div class="topic-metadata">

**Author:** [@Rajasekaramya](https://www.ruby-forum.com/u/Rajasekaramya)\
**Replies:** 3\
**Last updated:** [January 19, 2009, 7:51pm UTC](https://www.ruby-forum.com/t/problem-running-an-demo-application/158080 "2009-01-19T19:51:41Z")

</div>

hi there, I am very new to ruby on rails and trying to run an demo application I created an application rails demo. i created a controller Say i started the server ruby/script server I used port http://localhost:3…

---

## [Modeling complex associations](https://www.ruby-forum.com/t/modeling-complex-associations/158099)

<div class="topic-metadata">

**Author:** [@Till](https://www.ruby-forum.com/u/Till)\
**Replies:** 5\
**Last updated:** [January 19, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/modeling-complex-associations/158099 "2009-01-19T18:02:05Z")

</div>

Hi, Is there any default way to model something like the following situation in ActiveRecord?: A company has\_many :buildings which are associated to :company, e.g. in a polymorphic way. Moreover one and only one of …

---

## [Available for short-term contract work](https://www.ruby-forum.com/t/available-for-short-term-contract-work/158135)

<div class="topic-metadata">

**Author:** [@Sean\_CSHess](https://www.ruby-forum.com/u/Sean_CSHess)\
**Replies:** 0\
**Last updated:** [January 19, 2009, 5:34pm UTC](https://www.ruby-forum.com/t/available-for-short-term-contract-work/158135 "2009-01-19T17:34:21Z")

</div>

Hi everybody, I am an expert Flex developer, and an intermediate Rails developer. I work for Universal Mind, a contracting group, and am between projects at the moment. I thought this lull would be a good time to work…

---

## [Still cant get ActionMailer to work!](https://www.ruby-forum.com/t/still-cant-get-actionmailer-to-work/158128)

<div class="topic-metadata">

**Author:** [@dr\_gavin](https://www.ruby-forum.com/u/dr_gavin)\
**Replies:** 8\
**Last updated:** [January 19, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/still-cant-get-actionmailer-to-work/158128 "2009-01-19T17:32:36Z")

</div>

Hey - can anyone spare a few minutes to explain how to set-up actionmailer in Rails 2.2.2 I have read the API but still not sure if I’m changing the correct file? I am going nuts with this! Do I add my smtp settings…

---

## [RedCloth + Ajax problem](https://www.ruby-forum.com/t/redcloth-ajax-problem/158027)

<div class="topic-metadata">

**Author:** [@shenry](https://www.ruby-forum.com/u/shenry)\
**Replies:** 2\
**Last updated:** [January 19, 2009, 5:03pm UTC](https://www.ruby-forum.com/t/redcloth-ajax-problem/158027 "2009-01-19T17:03:52Z")

</div>

I’m using RedCloth and am trying to update a div (id=‘page\_content’) from an ajax link. The problem is that when the element is updated it inserts the content twice and contains all kinds of ajax code, newline and tab…

---

## [Output fleximage image from DB?](https://www.ruby-forum.com/t/output-fleximage-image-from-db/158124)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 5\
**Last updated:** [January 19, 2009, 4:47pm UTC](https://www.ruby-forum.com/t/output-fleximage-image-from-db/158124 "2009-01-19T16:47:00Z")

</div>

I’m a bit stuck trying to output a DB-stored file in a view with FlexImage 2. DB storing is supported but there is no documentation on how to get it out of the DB. Could someone point me to a resource explaining how…

---

## [Ruby script inherit model data](https://www.ruby-forum.com/t/ruby-script-inherit-model-data/158127)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 19, 2009, 4:15pm UTC](https://www.ruby-forum.com/t/ruby-script-inherit-model-data/158127 "2009-01-19T16:15:09Z")

</div>

Is there a way that a regular cli script can inherit all of the rails active record methods? I am trying to run a script from the cli so work on the associations between models but I am not sure how to get the active…

---

## [Error rails 2.2.2 con mysql](https://www.ruby-forum.com/t/error-rails-2-2-2-con-mysql/158126)

<div class="topic-metadata">

**Author:** [@aprendiz\_ror](https://www.ruby-forum.com/u/aprendiz_ror)\
**Replies:** 0\
**Last updated:** [January 19, 2009, 4:08pm UTC](https://www.ruby-forum.com/t/error-rails-2-2-2-con-mysql/158126 "2009-01-19T16:08:43Z")

</div>

Buenas. no he podido poner a funcionar una pequeÃ±a aplicacion hecha en rails 2.2.2, me genera el problema de la gema de mysql. la cual no he podido instalar o no lo he hecho como debe ser, el servidor me sube, pero …

---

## [What is calling ApplicationController#index](https://www.ruby-forum.com/t/what-is-calling-applicationcontroller-index/158125)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 19, 2009, 4:01pm UTC](https://www.ruby-forum.com/t/what-is-calling-applicationcontroller-index/158125 "2009-01-19T16:01:34Z")

</div>

I’m probably missing something very obvious here, but - I just started noticing error messages from my log, of the form: ActionController::RoutingError (No route matches “/bullet.gif” with {:method=\>:get}): These imm…

---

## [What version of rails am I running?](https://www.ruby-forum.com/t/what-version-of-rails-am-i-running/158069)

<div class="topic-metadata">

**Author:** [@kedarmhaswade](https://www.ruby-forum.com/u/kedarmhaswade)\
**Replies:** 7\
**Last updated:** [January 19, 2009, 4:00pm UTC](https://www.ruby-forum.com/t/what-version-of-rails-am-i-running/158069 "2009-01-19T16:00:24Z")

</div>

Sorry to ask a question that appears like the one posed by a n00b. (Maybe I am going blind, seriously). I have searched the forum for it, but couldn’t find it. How can I tell which version of rails I am running? Doing…

---

## [Newbie to Mac and Rails](https://www.ruby-forum.com/t/newbie-to-mac-and-rails/158098)

<div class="topic-metadata">

**Author:** [@eduardopa](https://www.ruby-forum.com/u/eduardopa)\
**Replies:** 1\
**Last updated:** [January 19, 2009, 3:57pm UTC](https://www.ruby-forum.com/t/newbie-to-mac-and-rails/158098 "2009-01-19T15:57:26Z")

</div>

Hi, This Newbie to Mac and Rails needs some help. I have some rails apps made using instantrails in windows, and have been trying to setup a mac as a developing machine to continue developing them. Using Leopard and…

---

## [Openid in rails](https://www.ruby-forum.com/t/openid-in-rails/158122)

<div class="topic-metadata">

**Author:** [@kisrti](https://www.ruby-forum.com/u/kisrti)\
**Replies:** 0\
**Last updated:** [January 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/openid-in-rails/158122 "2009-01-19T15:25:47Z")

</div>

Hello, I have implement ‘acts\_as\_authenticate’ in my application,I have followed all steps given in readme file. Even tried to run application given at ‘http://railskits.com/openid/’. And getting exception: " Sorry,…

---

## [Model objects, link\_to and view](https://www.ruby-forum.com/t/model-objects-link-to-and-view/158111)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 2\
**Last updated:** [January 19, 2009, 3:22pm UTC](https://www.ruby-forum.com/t/model-objects-link-to-and-view/158111 "2009-01-19T15:22:50Z")

</div>

Hi, this is probably a very easy problem to solve but ive googled and searched this site no end and cant find a suitable solution - to be fair im not really sure of the appropriate search terms. Im praticing ruby by m…

---

## [How to set up Ajax.Request, so that format.json block is executed?](https://www.ruby-forum.com/t/how-to-set-up-ajax-request-so-that-format-json-block-is-executed/158121)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 0\
**Last updated:** [January 19, 2009, 3:21pm UTC](https://www.ruby-forum.com/t/how-to-set-up-ajax-request-so-that-format-json-block-is-executed/158121 "2009-01-19T15:21:54Z")

</div>

Hi, I’ve got format.js block in my code that returns some RJS. I’m trying to do edit-in-place using RESTful approach and I’ve added format.json block to the update action, but I can’t figure out how to setup Ajax.Req…

---

## [Connecting/Merging 2 different inputs](https://www.ruby-forum.com/t/connecting-merging-2-different-inputs/158037)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 19, 2009, 2:54pm UTC](https://www.ruby-forum.com/t/connecting-merging-2-different-inputs/158037 "2009-01-19T14:54:42Z")

</div>

Hi I have a form which contain a student names and their attendance. For each student name there is a text box to input attendance.I want to create a connection between the ‘name’ and it’s attendance. I think I shoul…

---

## [Determine modification time of remote (http) file](https://www.ruby-forum.com/t/determine-modification-time-of-remote-http-file/158048)

<div class="topic-metadata">

**Author:** [@Jeffrey\_LSTaylor](https://www.ruby-forum.com/u/Jeffrey_LSTaylor)\
**Replies:** 2\
**Last updated:** [January 19, 2009, 2:44pm UTC](https://www.ruby-forum.com/t/determine-modification-time-of-remote-http-file/158048 "2009-01-19T14:44:41Z")

</div>

Is there way to determine the last modification time of a file via HTTP? Specifically, I’d like to not download or parse a very large RSS file (300+ items) if it hasn’t changed. TIA, Jeffrey

---

## [Uninitialized constant OpenID::Store](https://www.ruby-forum.com/t/uninitialized-constant-openid-store/158115)

<div class="topic-metadata">

**Author:** [@shahroon\_ali](https://www.ruby-forum.com/u/shahroon_ali)\
**Replies:** 0\
**Last updated:** [January 19, 2009, 2:42pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-openid-store/158115 "2009-01-19T14:42:53Z")

</div>

Hi All, I am getting this error, uninitialized constant OpenID::Store and I found no help regarding this issue, so could anyone of you resolve this issue. I have rails 2.0.2 with latest version of OpenId\_authe…

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

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