# Rails

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

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

---

## [How do I recognize AJAX requests](https://www.ruby-forum.com/t/how-do-i-recognize-ajax-requests/104502)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 4\
**Last updated:** [May 18, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/how-do-i-recognize-ajax-requests/104502 "2007-05-18T19:30:56Z")

</div>

Is there any way I can recognize that a request is an AJAX (something\_remote\_xxx) request? My application saves the pages history and needs to filter out the AJAX requests. What I do is keep a list of AJAX actions and…

---

## [Error in the tutorial?](https://www.ruby-forum.com/t/error-in-the-tutorial/104486)

<div class="topic-metadata">

**Author:** [@Luis\_Carraud](https://www.ruby-forum.com/u/Luis_Carraud)\
**Replies:** 8\
**Last updated:** [May 18, 2007, 7:29pm UTC](https://www.ruby-forum.com/t/error-in-the-tutorial/104486 "2007-05-18T19:29:56Z")

</div>

Hello everyone!!! I’m new to Rails… I’m trying to follow the first tutorial steps, but I came across this error: D:\\InstantRails\\rails\_apps\\cookbook2\>ruby script\\generate scaffold recipe recipe exists app/control…

---

## [AJAX textarea problem (javascript newbie, alas)](https://www.ruby-forum.com/t/ajax-textarea-problem-javascript-newbie-alas/104497)

<div class="topic-metadata">

**Author:** [@Kenneth\_D](https://www.ruby-forum.com/u/Kenneth_D)\
**Replies:** 0\
**Last updated:** [May 18, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/ajax-textarea-problem-javascript-newbie-alas/104497 "2007-05-18T18:46:52Z")

</div>

I have a form which contains the following: \<%= render(:partial=\>‘recipients’) -%\> The recipients partial: \<%= @recipients.join("\\r\\n") -%\> And the submit button: updtrecipients rebuilds the @recipients array. …

---

## [How to drag-n-drop like iGoogle?](https://www.ruby-forum.com/t/how-to-drag-n-drop-like-igoogle/104495)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 0\
**Last updated:** [May 18, 2007, 6:41pm UTC](https://www.ruby-forum.com/t/how-to-drag-n-drop-like-igoogle/104495 "2007-05-18T18:41:51Z")

</div>

Railsters: What’s the closest Rail-ist solution for the iGoogle system that drags-and-drop divs around a page and records their locations? The draggable\_element view helpers would require a system to record locations…

---

## [MyPunchbowl.com is hiring](https://www.ruby-forum.com/t/mypunchbowl-com-is-hiring/104496)

<div class="topic-metadata">

**Author:** [@Matt\_Douglas](https://www.ruby-forum.com/u/Matt_Douglas)\
**Replies:** 0\
**Last updated:** [May 18, 2007, 6:23pm UTC](https://www.ruby-forum.com/t/mypunchbowl-com-is-hiring/104496 "2007-05-18T18:23:50Z")

</div>

Hi all, We’re looking for a front-end web developer to join MyPunchbowl.com (http://www.mypunchbowl.com). Here is the description: Location: Natick, MA (Telecommuting ok) URL: http://www.mypunchbowl.com Description …

---

## [Install a streamlined plugin](https://www.ruby-forum.com/t/install-a-streamlined-plugin/104489)

<div class="topic-metadata">

**Author:** [@pankaj](https://www.ruby-forum.com/u/pankaj)\
**Replies:** 0\
**Last updated:** [May 18, 2007, 5:37pm UTC](https://www.ruby-forum.com/t/install-a-streamlined-plugin/104489 "2007-05-18T17:37:41Z")

</div>

I have downloaded a pluging for Streamlined framework. How to install it. I am on windows xp. my application is in C:/datagrid. pluging is stored at c:/streamlined C:\\datagrid\>ruby script/plugin install c:/streamlin…

---

## [Send\_file and streaming](https://www.ruby-forum.com/t/send-file-and-streaming/103471)

<div class="topic-metadata">

**Author:** [@guillaume](https://www.ruby-forum.com/u/guillaume)\
**Replies:** 1\
**Last updated:** [May 18, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/send-file-and-streaming/103471 "2007-05-18T17:29:40Z")

</div>

Hi, I ve got a very simple question, I want to stream via quictime a file wich is not in the public folder… so my JS template for the streaming is : So in order to make it works i need to change the “PATH OF…

---

## [Need help with categories in Typo](https://www.ruby-forum.com/t/need-help-with-categories-in-typo/104487)

<div class="topic-metadata">

**Author:** [@thereverseengineers](https://www.ruby-forum.com/u/thereverseengineers)\
**Replies:** 0\
**Last updated:** [May 18, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/need-help-with-categories-in-typo/104487 "2007-05-18T16:57:32Z")

</div>

I’ve upgraded to Typo 4.0 and now have an issue with the Articles Controller. Here’s the issue: In Typo 2.6.0 I had changed the Articles Controller code like such: def category if category = Category.find\_by\_permal…

---

## [How to add combobox selections to listbox](https://www.ruby-forum.com/t/how-to-add-combobox-selections-to-listbox/104485)

<div class="topic-metadata">

**Author:** [@jodogger](https://www.ruby-forum.com/u/jodogger)\
**Replies:** 0\
**Last updated:** [May 18, 2007, 4:45pm UTC](https://www.ruby-forum.com/t/how-to-add-combobox-selections-to-listbox/104485 "2007-05-18T16:45:09Z")

</div>

I need a page where i have a listbox and a combobox filled with choices. There will be a link called “Add” that will add the selection in the combobox to the listbox. Then when the page is submitted, the controller co…

---

## [Unit Tests and Default Values](https://www.ruby-forum.com/t/unit-tests-and-default-values/104342)

<div class="topic-metadata">

**Author:** [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Replies:** 5\
**Last updated:** [May 18, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/unit-tests-and-default-values/104342 "2007-05-18T16:24:30Z")

</div>

We have a fairly simple model that appears to be throwing an error when using unit tests, but we don’t know why. Seems to work well enough from our controllers just throws the error in test. We have a table that conta…

---

## [Attaching user to comment](https://www.ruby-forum.com/t/attaching-user-to-comment/104443)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 18, 2007, 3:22pm UTC](https://www.ruby-forum.com/t/attaching-user-to-comment/104443 "2007-05-18T15:22:23Z")

</div>

How would I attach as user to the form input being added into the db? User name is defined as @current\_user in application.rb def comment @albums = Albums.find(params\[:id\]) @albumscomment = Albums.find(params\[:id\]).…

---

## [Rspec + Oracle](https://www.ruby-forum.com/t/rspec-oracle/104193)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [May 18, 2007, 2:14pm UTC](https://www.ruby-forum.com/t/rspec-oracle/104193 "2007-05-18T14:14:12Z")

</div>

Hi all. Does anybody use Rspec with Oracle? I have RoR app + Oracle DB. I use Rspec 0.9.4. I have installed Rspec plugin and generated spec for model Country. If I use “@countries = Country.new” in my spec I get “Ar…

---

## [Using mod\_rewrite to add 'www' to urls](https://www.ruby-forum.com/t/using-mod-rewrite-to-add-www-to-urls/104437)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 8\
**Last updated:** [May 18, 2007, 2:02pm UTC](https://www.ruby-forum.com/t/using-mod-rewrite-to-add-www-to-urls/104437 "2007-05-18T14:02:08Z")

</div>

Hi guys. I’m using the following rule to point users to www.mydomain.com instead of mydomain.com. RewriteEngine On RewriteCond %{HTTP\_HOST} !^www.mydomain.com$ RewriteRule ^(.\*)$ http://www.mydomain.com/$1 \[R=301,QSA…

---

## [Rubyonrails site. editing wiki hosts for rails broken?](https://www.ruby-forum.com/t/rubyonrails-site-editing-wiki-hosts-for-rails-broken/104471)

<div class="topic-metadata">

**Author:** [@monstamac](https://www.ruby-forum.com/u/monstamac)\
**Replies:** 0\
**Last updated:** [May 18, 2007, 12:46pm UTC](https://www.ruby-forum.com/t/rubyonrails-site-editing-wiki-hosts-for-rails-broken/104471 "2007-05-18T12:46:59Z")

</div>

Hi, I just tried to edit the list of hosts on the rubyonrails.org site. But it threw up an error when I clicked save. Is this broken ?

---

## [Problem with map.resources and modules](https://www.ruby-forum.com/t/problem-with-map-resources-and-modules/104466)

<div class="topic-metadata">

**Author:** [@madiba](https://www.ruby-forum.com/u/madiba)\
**Replies:** 0\
**Last updated:** [May 18, 2007, 12:01pm UTC](https://www.ruby-forum.com/t/problem-with-map-resources-and-modules/104466 "2007-05-18T12:01:55Z")

</div>

Is it possible to use map.resources + CRUD with controller in modules. When I tries rails 1.2 throws error: NameError (uninitialized constant LSpace::BooksControllerController): /usr/lib/ruby/gems/1.8/gems/activesuppo…

---

## [Change Password](https://www.ruby-forum.com/t/change-password/104461)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 18, 2007, 11:40am UTC](https://www.ruby-forum.com/t/change-password/104461 "2007-05-18T11:40:54Z")

</div>

Hallo to all I have a big Problem by changing the Password of user. I have a database with user and theier password and now i want to reset the Password! admin\_controller.rb def restore\_user @user = User.find\_by\_id(…

---

## [Running a shell command in the background from Rails](https://www.ruby-forum.com/t/running-a-shell-command-in-the-background-from-rails/104283)

<div class="topic-metadata">

**Author:** [@vanight](https://www.ruby-forum.com/u/vanight)\
**Replies:** 3\
**Last updated:** [May 18, 2007, 10:39am UTC](https://www.ruby-forum.com/t/running-a-shell-command-in-the-background-from-rails/104283 "2007-05-18T10:39:48Z")

</div>

Hi I need to call a method on one of my models in response to a form being submitted that may take quite some time to run. I’d like to just use script/runner and have it run in the background returning immediately. T…

---

## [Variable numbers of terms in a query](https://www.ruby-forum.com/t/variable-numbers-of-terms-in-a-query/104417)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 4\
**Last updated:** [May 18, 2007, 10:37am UTC](https://www.ruby-forum.com/t/variable-numbers-of-terms-in-a-query/104417 "2007-05-18T10:37:00Z")

</div>

I have to produce a front end to a database where users can select from a variety of parameters they want to search on, e.g. a \> 1 b = 2 c \>= 3 The numerical values could be floats as well as integers, and so a dro…

---

## [Session not storing flash message](https://www.ruby-forum.com/t/session-not-storing-flash-message/104457)

<div class="topic-metadata">

**Author:** [@rdrdrd](https://www.ruby-forum.com/u/rdrdrd)\
**Replies:** 0\
**Last updated:** [May 18, 2007, 9:14am UTC](https://www.ruby-forum.com/t/session-not-storing-flash-message/104457 "2007-05-18T09:14:24Z")

</div>

Hi all, I faced a problem while writing functional tests, where the session wasn’t storing the flash message, even when the message was shown to be stored in the flash hash. See the code : This wasn’t working : fla…

---

## [Page cache more than 100K files inside a single directory?](https://www.ruby-forum.com/t/page-cache-more-than-100k-files-inside-a-single-directory/104456)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 3\
**Last updated:** [May 18, 2007, 9:05am UTC](https://www.ruby-forum.com/t/page-cache-more-than-100k-files-inside-a-single-directory/104456 "2007-05-18T09:05:59Z")

</div>

I get a model containing more than 100K rows of data, and page caching is used for this model. As a cached page will generate a html file in related directory, (http://example.com/data/:rowid) day after day, more tha…

---

## [Capistrano Woes](https://www.ruby-forum.com/t/capistrano-woes/104450)

<div class="topic-metadata">

**Author:** [@samuelzx](https://www.ruby-forum.com/u/samuelzx)\
**Replies:** 2\
**Last updated:** [May 18, 2007, 7:17am UTC](https://www.ruby-forum.com/t/capistrano-woes/104450 "2007-05-18T07:17:17Z")

</div>

Hi List, I am having difficulty deploying with Capistrano v1. It always used to work, but for some reason, it is not anymore. Output message when 'cap deploy’ing: http://pastie.caboo.se/62562 The issue seems to be …

---

## [Circumventing migrations](https://www.ruby-forum.com/t/circumventing-migrations/104451)

<div class="topic-metadata">

**Author:** [@em00guy](https://www.ruby-forum.com/u/em00guy)\
**Replies:** 2\
**Last updated:** [May 18, 2007, 7:09am UTC](https://www.ruby-forum.com/t/circumventing-migrations/104451 "2007-05-18T07:09:16Z")

</div>

Hello everyone. I’m just beginning my journey with rails and I have many questions though I’ll start with just one. I was wondering what happens if you undermine a migration by changing the database schema manually. F…

---

## [Is this ActiveRecord behaviour considered correct? (:include](https://www.ruby-forum.com/t/is-this-activerecord-behaviour-considered-correct-include/104235)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 5\
**Last updated:** [May 18, 2007, 6:37am UTC](https://www.ruby-forum.com/t/is-this-activerecord-behaviour-considered-correct-include/104235 "2007-05-18T06:37:15Z")

</div>

When you compare the tags for the article on these pages: http://blog.hasmanythrough.com/tags/tests to http://blog.hasmanythrough.com/2007/5/2/getting-arbitrary-with- assert\_difference you see that the tag “edge” is …

---

## [Naming convention and search engines](https://www.ruby-forum.com/t/naming-convention-and-search-engines/104455)

<div class="topic-metadata">

**Author:** [@rails.impaired](https://www.ruby-forum.com/u/rails.impaired)\
**Replies:** 0\
**Last updated:** [May 18, 2007, 6:06am UTC](https://www.ruby-forum.com/t/naming-convention-and-search-engines/104455 "2007-05-18T06:06:12Z")

</div>

Hi all: The following is an Search Engine Optimization tip that is fairly common in most of the SEO checklists that I have read. Hyphens - Use hyphens ( - ) and not underscores ( \_ ) to separate words in directory an…

---

## [Connecting to Microsoft Access](https://www.ruby-forum.com/t/connecting-to-microsoft-access/104405)

<div class="topic-metadata">

**Author:** [@Lewis](https://www.ruby-forum.com/u/Lewis)\
**Replies:** 3\
**Last updated:** [May 18, 2007, 4:37am UTC](https://www.ruby-forum.com/t/connecting-to-microsoft-access/104405 "2007-05-18T04:37:07Z")

</div>

Can anyone tell me if it is possible to connect to Microsoft Access db and how? I have several systems that use Access and I need to create new front end functionality to the Access tables. Thanks

---

## [Caching article on IBM Developer Works](https://www.ruby-forum.com/t/caching-article-on-ibm-developer-works/104448)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 0\
**Last updated:** [May 18, 2007, 4:31am UTC](https://www.ruby-forum.com/t/caching-article-on-ibm-developer-works/104448 "2007-05-18T04:31:07Z")

</div>

Hi, just got this on the IBM Developer Works list. Here’s an article about Caching in Rails: http://www-128.ibm.com/developerworks/web/library/wa-rails1/ Cheers Mohit.

---

## [A javascript problem when learning Beast](https://www.ruby-forum.com/t/a-javascript-problem-when-learning-beast/104369)

<div class="topic-metadata">

**Author:** [@yananay](https://www.ruby-forum.com/u/yananay)\
**Replies:** 2\
**Last updated:** [May 18, 2007, 3:54am UTC](https://www.ruby-forum.com/t/a-javascript-problem-when-learning-beast/104369 "2007-05-18T03:54:27Z")

</div>

now i’m learning the Beast source code, but a problem happened when read the javascript like below: var TopicForm = { editNewTitle: function(txtField) { $(‘new\_topic’).innerHTML = (txtField.value.length \> 5) ? txtFi…

---

## [URL Fragment Anchors -- may be a Safari Question](https://www.ruby-forum.com/t/url-fragment-anchors-may-be-a-safari-question/104447)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 1\
**Last updated:** [May 18, 2007, 3:49am UTC](https://www.ruby-forum.com/t/url-fragment-anchors-may-be-a-safari-question/104447 "2007-05-18T03:49:51Z")

</div>

Hi, I’m a new beginner so, please forgive if I am somewhat imprecise… I’m wanting to use fragment anchors in my pages. (I think that is the right term for them). So my URL will be something like pmrs/1#id56. I am u…

---

## [Attaching user to comment](https://www.ruby-forum.com/t/attaching-user-to-comment/104442)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 18, 2007, 1:35am UTC](https://www.ruby-forum.com/t/attaching-user-to-comment/104442 "2007-05-18T01:35:53Z")

</div>

How would I add a user name along with the form input? The user name is defined in application.rb as @current\_user Below works 100% w/ adding the comment body/time but I wasnt sure how to add the user part albums\_con…

---

## [Creating Multiple tables in my Migrations](https://www.ruby-forum.com/t/creating-multiple-tables-in-my-migrations/104357)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 18, 2007, 1:24am UTC](https://www.ruby-forum.com/t/creating-multiple-tables-in-my-migrations/104357 "2007-05-18T01:24:56Z")

</div>

When I scaffold in a migration for model that I’ve created I’m finding it hard to create more than 1 table within that migration. I think it has something to do with the fact that the ‘createservices’ class gets defi…

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

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