# Rails

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

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

---

## [Refreshing a page gives a "stack level too deep" error](https://www.ruby-forum.com/t/refreshing-a-page-gives-a-stack-level-too-deep-error/131829)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 3\
**Last updated:** [March 13, 2008, 5:55pm UTC](https://www.ruby-forum.com/t/refreshing-a-page-gives-a-stack-level-too-deep-error/131829 "2008-03-13T17:55:53Z")

</div>

I’m converting our app into restful rails. A couple of my classes (Resource and Asset) have a has\_many relationship with each other - here’s the routes: map.resources :assets, :has\_many=\>\[:resources\] map.resources :…

---

## [Are nested resources nescessary in this case?](https://www.ruby-forum.com/t/are-nested-resources-nescessary-in-this-case/131713)

<div class="topic-metadata">

**Author:** [@betaband](https://www.ruby-forum.com/u/betaband)\
**Replies:** 3\
**Last updated:** [March 13, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/are-nested-resources-nescessary-in-this-case/131713 "2008-03-13T17:50:37Z")

</div>

Hi, I previously had a nested resources system with user having many events and events having many signups. But i thought it was not needed and am now trying a new approach without nested resources. The problem is now…

---

## [User search thru a database using the REST approach](https://www.ruby-forum.com/t/user-search-thru-a-database-using-the-rest-approach/131725)

<div class="topic-metadata">

**Author:** [@liquidrails](https://www.ruby-forum.com/u/liquidrails)\
**Replies:** 4\
**Last updated:** [March 13, 2008, 5:42pm UTC](https://www.ruby-forum.com/t/user-search-thru-a-database-using-the-rest-approach/131725 "2008-03-13T17:42:59Z")

</div>

How can you implement a search function using the REST approach? Is there an example of this somewhere on the web? Thanks!

---

## [Link\_to\_remote crossing controllers](https://www.ruby-forum.com/t/link-to-remote-crossing-controllers/131826)

<div class="topic-metadata">

**Author:** [@zeeboo](https://www.ruby-forum.com/u/zeeboo)\
**Replies:** 2\
**Last updated:** [March 13, 2008, 5:23pm UTC](https://www.ruby-forum.com/t/link-to-remote-crossing-controllers/131826 "2008-03-13T17:23:12Z")

</div>

I have a link\_to\_remote call that calls on another controller. The desired behavior is: user clicks on link remote call processed on controller link updated Here’s my code: \<% if self.queryBook(item.get(‘asin’))…

---

## [\[ANN\] Call for Alpha Users - CloudCache.net](https://www.ruby-forum.com/t/ann-call-for-alpha-users-cloudcache-net/131824)

<div class="topic-metadata">

**Author:** [@marcbey](https://www.ruby-forum.com/u/marcbey)\
**Replies:** 0\
**Last updated:** [March 13, 2008, 4:46pm UTC](https://www.ruby-forum.com/t/ann-call-for-alpha-users-cloudcache-net/131824 "2008-03-13T16:46:48Z")

</div>

Howdy! CloudCache.net is seeking alpha users for our new metered service. The CloudCache services include: Basic memcached capabilities wrapped in a ReSTful API Improvements on memcached including the ability to bac…

---

## [Some random rails, and maybe Ruby, questions](https://www.ruby-forum.com/t/some-random-rails-and-maybe-ruby-questions/131673)

<div class="topic-metadata">

**Author:** [@Fredrik\_K](https://www.ruby-forum.com/u/Fredrik_K)\
**Replies:** 3\
**Last updated:** [March 13, 2008, 4:19pm UTC](https://www.ruby-forum.com/t/some-random-rails-and-maybe-ruby-questions/131673 "2008-03-13T16:19:36Z")

</div>

Hi, I’m attempting to create a users statistics controller, and have saved up some questions regarding this for this post. So, please comment on any one of them, if not all :slight\_smile: Is there a library somewher…

---

## [Simple Problem](https://www.ruby-forum.com/t/simple-problem/131821)

<div class="topic-metadata">

**Author:** [@sjglazer](https://www.ruby-forum.com/u/sjglazer)\
**Replies:** 2\
**Last updated:** [March 13, 2008, 3:56pm UTC](https://www.ruby-forum.com/t/simple-problem/131821 "2008-03-13T15:56:24Z")

</div>

Hello There, I have a minor problem that is driving me a bit crazy and was hoping maybe someone can see something I’m not… In my view I have the following code: Choose A Cuisine: \<%= collection\_select(:restaurant, :…

---

## [How to upload a file](https://www.ruby-forum.com/t/how-to-upload-a-file/131816)

<div class="topic-metadata">

**Author:** [@pharrukh](https://www.ruby-forum.com/u/pharrukh)\
**Replies:** 2\
**Last updated:** [March 13, 2008, 3:54pm UTC](https://www.ruby-forum.com/t/how-to-upload-a-file/131816 "2008-03-13T15:54:04Z")

</div>

Hello all, i am trying to upload a file through Ruby on Rails since last week. Could anyone please guide me regarding a simple upload process. Or guide me to a ‘working’ example/tutorial of uploading. Waiting curious…

---

## [Use Ruby on Rails for a standalone prototype?](https://www.ruby-forum.com/t/use-ruby-on-rails-for-a-standalone-prototype/131079)

<div class="topic-metadata">

**Author:** [@flag](https://www.ruby-forum.com/u/flag)\
**Replies:** 6\
**Last updated:** [March 13, 2008, 3:41pm UTC](https://www.ruby-forum.com/t/use-ruby-on-rails-for-a-standalone-prototype/131079 "2008-03-13T15:41:36Z")

</div>

I need to develop a web prototype. I want to learn and use Ruby on Rails to do it. I don’t have an ISP for this project. I want to build it on my laptop (WinXP Pro), then zip it up nicely for a clean easy install o…

---

## [How to install ruby on rail without gem](https://www.ruby-forum.com/t/how-to-install-ruby-on-rail-without-gem/131787)

<div class="topic-metadata">

**Author:** [@tomal](https://www.ruby-forum.com/u/tomal)\
**Replies:** 5\
**Last updated:** [March 13, 2008, 2:14pm UTC](https://www.ruby-forum.com/t/how-to-install-ruby-on-rail-without-gem/131787 "2008-03-13T14:14:11Z")

</div>

any one kind enough to tell me how to install ruby on rail without using Gem.

---

## [How to render an action in page.replace\_html?](https://www.ruby-forum.com/t/how-to-render-an-action-in-page-replace-html/131789)

<div class="topic-metadata">

**Author:** [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Replies:** 1\
**Last updated:** [March 13, 2008, 12:33pm UTC](https://www.ruby-forum.com/t/how-to-render-an-action-in-page-replace-html/131789 "2008-03-13T12:33:31Z")

</div>

Hi all… I have an action show\_primary\_contacts\_edit in ci controller, that renders html. I have another action show\_contacts\_page in ci controller, that returns RJS. I want to replace a div “contacts\_div” specified …

---

## [RJS Move to top of div after Ajax request](https://www.ruby-forum.com/t/rjs-move-to-top-of-div-after-ajax-request/131728)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 2\
**Last updated:** [March 13, 2008, 12:05pm UTC](https://www.ruby-forum.com/t/rjs-move-to-top-of-div-after-ajax-request/131728 "2008-03-13T12:05:03Z")

</div>

Hi, Im updating a scrollable div with many links\_to\_remote. If a user has scrolled half way down the div and then clicks the link\_to\_remote outside the div it then updates the scrollable div but stays half way down.…

---

## [Multiple join with multiple grouping](https://www.ruby-forum.com/t/multiple-join-with-multiple-grouping/131800)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 0\
**Last updated:** [March 13, 2008, 11:54am UTC](https://www.ruby-forum.com/t/multiple-join-with-multiple-grouping/131800 "2008-03-13T11:54:14Z")

</div>

Hi- Is there a non-SQL way to accomplish something like select , count() from A join B join C join D, group by A.field1, A.field2 I’d like to then walk through the grouped rows one by one. Can someone tell me if thi…

---

## [Saving http response body to database](https://www.ruby-forum.com/t/saving-http-response-body-to-database/131595)

<div class="topic-metadata">

**Author:** [@ANSS](https://www.ruby-forum.com/u/ANSS)\
**Replies:** 4\
**Last updated:** [March 13, 2008, 11:01am UTC](https://www.ruby-forum.com/t/saving-http-response-body-to-database/131595 "2008-03-13T11:01:42Z")

</div>

Hi, In my application I use the NET::HTTP library to send a get request like that: The following method sends the request and return the response: res = Net::HTTP.get\_response(www.somehost.com, /index.html) puts res…

---

## [Form validation using RJS](https://www.ruby-forum.com/t/form-validation-using-rjs/131795)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [March 13, 2008, 10:49am UTC](https://www.ruby-forum.com/t/form-validation-using-rjs/131795 "2008-03-13T10:49:47Z")

</div>

Hi I have a form as below \<%= form\_remote\_tag :update =\> “update\_sd\_resolution\_ui”, :url =\> { :action =\> ‘sd\_resolution\_save’, :id =\> @sd\_ticket.id, :sd\_resolution\_id=\>@sd\_resolution\_id}, :class =\> ‘itilform’%\> …

---

## [Replace\_html help](https://www.ruby-forum.com/t/replace-html-help/131793)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [March 13, 2008, 10:45am UTC](https://www.ruby-forum.com/t/replace-html-help/131793 "2008-03-13T10:45:17Z")

</div>

I have posted a similar question pls ignore that I have a file define\_sd\_resolution.rhtml…In that an ajax form is there \<%= form\_remote\_tag :update =\> “update\_sd\_resolution\_ui”, :url =\> { :action =\> ‘sd\_resolution\_…

---

## [Help with variables](https://www.ruby-forum.com/t/help-with-variables/131582)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 5\
**Last updated:** [March 13, 2008, 10:21am UTC](https://www.ruby-forum.com/t/help-with-variables/131582 "2008-03-13T10:21:22Z")

</div>

Okay, I know this is a really beginner question. But… I created a migration to create an entity post. I gave it a title. I ran the migration. Then, I created an admin controller, entitled simply admin\_controller. I…

---

## [Need in deed.....!](https://www.ruby-forum.com/t/need-in-deed/131790)

<div class="topic-metadata">

**Author:** [@ursneed](https://www.ruby-forum.com/u/ursneed)\
**Replies:** 0\
**Last updated:** [March 13, 2008, 9:13am UTC](https://www.ruby-forum.com/t/need-in-deed/131790 "2008-03-13T09:13:07Z")

</div>

hi… here the links are goes here… http://ursneed.googlepages.com/home http://ursneed.googlepages.com/coolneeds http://ursneed.googlepages.com/funnimes http://ursneed.googlepages.com/secrets http://ursneed.googlepag…

---

## [Gettex newbea question](https://www.ruby-forum.com/t/gettex-newbea-question/131773)

<div class="topic-metadata">

**Author:** [@casid](https://www.ruby-forum.com/u/casid)\
**Replies:** 1\
**Last updated:** [March 13, 2008, 8:38am UTC](https://www.ruby-forum.com/t/gettex-newbea-question/131773 "2008-03-13T08:38:15Z")

</div>

Hello RoR Developers, I want to use gettext tool for translating user interfaces of applications into different languages. I searched some pages like http://www.yotabanana.com/hiki/ruby-gettext-howto-rails.html http…

---

## [Delete, redirect back to same page](https://www.ruby-forum.com/t/delete-redirect-back-to-same-page/131767)

<div class="topic-metadata">

**Author:** [@brentsoderberg](https://www.ruby-forum.com/u/brentsoderberg)\
**Replies:** 2\
**Last updated:** [March 13, 2008, 8:07am UTC](https://www.ruby-forum.com/t/delete-redirect-back-to-same-page/131767 "2008-03-13T08:07:17Z")

</div>

Hello everyone, I’m a beginner at Ruby and Rails, forgive me if this is a ridiculously easy question, but… I’m using Rails 2.0 and WillPaginate to paginate a list of products. Currently when I delete a product, it red…

---

## [Amazon AWS interface](https://www.ruby-forum.com/t/amazon-aws-interface/131781)

<div class="topic-metadata">

**Author:** [@nahabed](https://www.ruby-forum.com/u/nahabed)\
**Replies:** 1\
**Last updated:** [March 13, 2008, 7:45am UTC](https://www.ruby-forum.com/t/amazon-aws-interface/131781 "2008-03-13T07:45:50Z")

</div>

I’m building an app with books and would like to pull a thumbnail of the cover when a book is added by a user. I’ve heard that AWS offers an interface for this… has anyone used this if so, can you provide a pointer pl…

---

## [Latino amateur woman with brasize=4](https://www.ruby-forum.com/t/latino-amateur-woman-with-brasize-4/131785)

<div class="topic-metadata">

**Author:** [@Verona\_dsm](https://www.ruby-forum.com/u/Verona_dsm)\
**Replies:** 0\
**Last updated:** [March 13, 2008, 7:22am UTC](https://www.ruby-forum.com/t/latino-amateur-woman-with-brasize-4/131785 "2008-03-13T07:22:21Z")

</div>

Hispanic(latino) amateur woman with bracup=2, brasize=4 http://se.servik.com/latinos.htm

---

## [Fetch data from textfield](https://www.ruby-forum.com/t/fetch-data-from-textfield/131780)

<div class="topic-metadata">

**Author:** [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Replies:** 1\
**Last updated:** [March 13, 2008, 7:18am UTC](https://www.ruby-forum.com/t/fetch-data-from-textfield/131780 "2008-03-13T07:18:35Z")

</div>

i am unable for write query corresponding to text\_field value… The code is: class MainController \< ApplicationController def search book=Book.find\_by\_book\_id(params\[:query\]) redirect\_to :controller=\>'search',:a…

---

## [Replace\_html help](https://www.ruby-forum.com/t/replace-html-help/131777)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [March 13, 2008, 5:41am UTC](https://www.ruby-forum.com/t/replace-html-help/131777 "2008-03-13T05:41:59Z")

</div>

Hi I have a partial file \_view\_sd\_resolution\_details.rhtml..In that file i call link\_to\_remote as \<%= link\_to\_remote "Edit Resolution", :update =\> "create\_sd\_resolution\_ui", …

---

## [Link\_to\_remote and :with](https://www.ruby-forum.com/t/link-to-remote-and-with/131679)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 4\
**Last updated:** [March 13, 2008, 5:33am UTC](https://www.ruby-forum.com/t/link-to-remote-and-with/131679 "2008-03-13T05:33:05Z")

</div>

Hi I have in my view 2 variables @sd\_resolution\_id and @sd\_ticket How can I pass this t controller…I tried the following but failed Please help \<%= link\_to\_remote "Edit Resolution", :update …

---

## [Got different results from D&D Agile book on test of unit test](https://www.ruby-forum.com/t/got-different-results-from-d-d-agile-book-on-test-of-unit-test/131766)

<div class="topic-metadata">

**Author:** [@xeno](https://www.ruby-forum.com/u/xeno)\
**Replies:** 0\
**Last updated:** [March 13, 2008, 2:52am UTC](https://www.ruby-forum.com/t/got-different-results-from-d-d-agile-book-on-test-of-unit-test/131766 "2008-03-13T02:52:02Z")

</div>

$ ruby test/unit/pagespec\_test.rb Loaded suite test/unit/pagespec\_test Started .E… Finished in 0.502818 seconds. Error: testservers(ActionController::TestCase): ArgumentError: wrong number of arguments (0 for 1) …

---

## [Ordering across related tables](https://www.ruby-forum.com/t/ordering-across-related-tables/131740)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 1\
**Last updated:** [March 13, 2008, 2:47am UTC](https://www.ruby-forum.com/t/ordering-across-related-tables/131740 "2008-03-13T02:47:56Z")

</div>

I have two related tables: groups and categories. In the models, Group has\_many “categories” Category belongs\_to :group Category does have a column, “group\_id” as required. Both the groups and categories tables hav…

---

## [Attachment-fu - debug help](https://www.ruby-forum.com/t/attachment-fu-debug-help/131755)

<div class="topic-metadata">

**Author:** [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Replies:** 2\
**Last updated:** [March 13, 2008, 2:37am UTC](https://www.ruby-forum.com/t/attachment-fu-debug-help/131755 "2008-03-13T02:37:23Z")

</div>

So I’m using attachment-fu and just before my attachments get saved, it gets rolled back. See here: Parked at Loopia I find that I’m getting kicked down into my rescue clause here: http://pastie.caboo.se/165074 I’m …

---

## [Messages in flash don't clear out on next request](https://www.ruby-forum.com/t/messages-in-flash-dont-clear-out-on-next-request/131760)

<div class="topic-metadata">

**Author:** [@bill](https://www.ruby-forum.com/u/bill)\
**Replies:** 1\
**Last updated:** [March 13, 2008, 2:36am UTC](https://www.ruby-forum.com/t/messages-in-flash-dont-clear-out-on-next-request/131760 "2008-03-13T02:36:47Z")

</div>

I have a Rails application here that when I display a message to the user using flash\[:notice\], flash\[:warning\], flash\[:message\], etc. the message doesn’t get cleared out on the subsequent get request. So if I displa…

---

## [Issue updating multiple database rows from single form submi](https://www.ruby-forum.com/t/issue-updating-multiple-database-rows-from-single-form-submi/131758)

<div class="topic-metadata">

**Author:** [@jpigford](https://www.ruby-forum.com/u/jpigford)\
**Replies:** 0\
**Last updated:** [March 13, 2008, 2:04am UTC](https://www.ruby-forum.com/t/issue-updating-multiple-database-rows-from-single-form-submi/131758 "2008-03-13T02:04:01Z")

</div>

So I’ve got a form that loops through items with a text\_field\_tag and text\_area\_tag that lists items in the database to be edited. I want to submit this form and have it loop through the items and update the rows base…

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

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