# Rails

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

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

---

## [Accessing has\_many objects](https://www.ruby-forum.com/t/accessing-has-many-objects/111182)

<div class="topic-metadata">

**Author:** [@Iain\_A](https://www.ruby-forum.com/u/Iain_A)\
**Replies:** 5\
**Last updated:** [August 3, 2007, 5:38pm UTC](https://www.ruby-forum.com/t/accessing-has-many-objects/111182 "2007-08-03T17:38:26Z")

</div>

I have a the following models CLIENT - has\_many -\> CAMPAIGNS - has\_many -\> CODES -\> has\_many -\>HITS So obviously a client has many codes, but each is linked to a campaign. Now I have managed to get all the codes by us…

---

## [Linking many tables with conditions?](https://www.ruby-forum.com/t/linking-many-tables-with-conditions/110971)

<div class="topic-metadata">

**Author:** [@rogboone](https://www.ruby-forum.com/u/rogboone)\
**Replies:** 8\
**Last updated:** [August 3, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/linking-many-tables-with-conditions/110971 "2007-08-03T17:31:38Z")

</div>

Rails newbie here struggling to understand ActiveRecord. I have 6 tables: Class -\> has many subjects Subject -\> has many projects Project -\> has many tasks Task -\> has many scores Score (records a score for each task …

---

## [Javascript textilize method?](https://www.ruby-forum.com/t/javascript-textilize-method/111179)

<div class="topic-metadata">

**Author:** [@franee](https://www.ruby-forum.com/u/franee)\
**Replies:** 2\
**Last updated:** [August 3, 2007, 5:12pm UTC](https://www.ruby-forum.com/t/javascript-textilize-method/111179 "2007-08-03T17:12:07Z")

</div>

Hi, I just want to ask if there is a javascript library or implementation similar to rails textilize method. What i want to do is have a lightning fast preview from an editor which i want to observe and not have to s…

---

## [MTOM problem](https://www.ruby-forum.com/t/mtom-problem/111185)

<div class="topic-metadata">

**Author:** [@el2king](https://www.ruby-forum.com/u/el2king)\
**Replies:** 0\
**Last updated:** [August 3, 2007, 5:10pm UTC](https://www.ruby-forum.com/t/mtom-problem/111185 "2007-08-03T17:10:33Z")

</div>

I am trying to access a WSDL file directly in my Ruby. I have no problems accessing the WSDL and sending a request to the web service linked to the WSDL, but I am having a problem sending an MTOM attachment to the se…

---

## [Nested Resources vs. Normal Resources](https://www.ruby-forum.com/t/nested-resources-vs-normal-resources/111184)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 3, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/nested-resources-vs-normal-resources/111184 "2007-08-03T16:57:22Z")

</div>

Hi, I’m a bit unsure as to when one uses a nested resource and when one uses a normal resource. If you have a belongs\_to, has\_one/many relationship between models is that automatically an indication of a nested resou…

---

## [Display text\_field if checkbox checked](https://www.ruby-forum.com/t/display-text-field-if-checkbox-checked/111104)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [August 3, 2007, 4:55pm UTC](https://www.ruby-forum.com/t/display-text-field-if-checkbox-checked/111104 "2007-08-03T16:55:21Z")

</div>

Hi! I’ve been trying to figure out how to display a text\_field if a checkbox on my form is checked. If the checkbox is unchecked, the text\_field is removed. If anybody has an example or tutorial on this, that would …

---

## [Mongrel dies with no Exceptions](https://www.ruby-forum.com/t/mongrel-dies-with-no-exceptions/111180)

<div class="topic-metadata">

**Author:** [@stanislavb](https://www.ruby-forum.com/u/stanislavb)\
**Replies:** 0\
**Last updated:** [August 3, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/mongrel-dies-with-no-exceptions/111180 "2007-08-03T16:24:51Z")

</div>

Hi all, I have a difficult to debug problem. It regards mongrel\_rails. I use these versions: Linux kernel 2.6.21-1.3194.fc7 Mongrel Web Server 1.0.1 Rails 1.2.3 mysql-5.0.37-2.fc7 I use mongrel\_cluster with 8 inst…

---

## [How To Fix Internet Explorer 6 Slowdowns And Hangs](https://www.ruby-forum.com/t/how-to-fix-internet-explorer-6-slowdowns-and-hangs/111175)

<div class="topic-metadata">

**Author:** [@John\_Napzter](https://www.ruby-forum.com/u/John_Napzter)\
**Replies:** 1\
**Last updated:** [August 3, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/how-to-fix-internet-explorer-6-slowdowns-and-hangs/111175 "2007-08-03T16:23:19Z")

</div>

Open a command prompt window on the desktop (Start/Run/command). Exit IE and Windows Explorer (iexplore.exe and explorer.exe, respectively, in Task Manager, i.e - Ctrl-Alt-Del/Task Manager/ Processes/End Process for e…

---

## [Session doesn't seem to store anything](https://www.ruby-forum.com/t/session-doesnt-seem-to-store-anything/111178)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 2\
**Last updated:** [August 3, 2007, 4:21pm UTC](https://www.ruby-forum.com/t/session-doesnt-seem-to-store-anything/111178 "2007-08-03T16:21:18Z")

</div>

I’m going to first frankly admit that this is the first web application I’m attempting to make for the first since the depot project in Agile Web D. with Ruby on Rails, and already, I’m lost. Anyway, according to my …

---

## [Send fax through my rails application](https://www.ruby-forum.com/t/send-fax-through-my-rails-application/111176)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 5\
**Last updated:** [August 3, 2007, 4:20pm UTC](https://www.ruby-forum.com/t/send-fax-through-my-rails-application/111176 "2007-08-03T16:20:18Z")

</div>

Hello folks, I need to find a way to send a fax to an US fax number. The user would shop, do a checkout through my rails web app and then the order would be delivered by fax to the store. Does anyone have any idea o…

---

## [Where to put pages not baked by controllers](https://www.ruby-forum.com/t/where-to-put-pages-not-baked-by-controllers/111080)

<div class="topic-metadata">

**Author:** [@cesidio](https://www.ruby-forum.com/u/cesidio)\
**Replies:** 3\
**Last updated:** [August 3, 2007, 2:49pm UTC](https://www.ruby-forum.com/t/where-to-put-pages-not-baked-by-controllers/111080 "2007-08-03T14:49:03Z")

</div>

I am developing an application that supports internationalization. I have public pages (in public folder) that are not backed by any controller, but I need them to be rendered in the correct locale and to apply a layo…

---

## [How do i use paginate in the class that i written](https://www.ruby-forum.com/t/how-do-i-use-paginate-in-the-class-that-i-written/111162)

<div class="topic-metadata">

**Author:** [@patrick](https://www.ruby-forum.com/u/patrick)\
**Replies:** 2\
**Last updated:** [August 3, 2007, 2:37pm UTC](https://www.ruby-forum.com/t/how-do-i-use-paginate-in-the-class-that-i-written/111162 "2007-08-03T14:37:00Z")

</div>

Hi ~ I am writing a class that is used to make a search to the model. It has a method that return the result set of the search result and the pagination class. But how can i use ‘paginate’ method in my class so that …

---

## [ActionView theme hack?](https://www.ruby-forum.com/t/actionview-theme-hack/111161)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 1\
**Last updated:** [August 3, 2007, 1:57pm UTC](https://www.ruby-forum.com/t/actionview-theme-hack/111161 "2007-08-03T13:57:00Z")

</div>

Hey guys I am needing to implement a theme type functionality in my app, I guess one thats similar in operation to the way typo works with the theme .rhtml files override the default view behavior. I found this blog p…

---

## [Struct with xml rpc](https://www.ruby-forum.com/t/struct-with-xml-rpc/111169)

<div class="topic-metadata">

**Author:** [@lephasme](https://www.ruby-forum.com/u/lephasme)\
**Replies:** 0\
**Last updated:** [August 3, 2007, 1:43pm UTC](https://www.ruby-forum.com/t/struct-with-xml-rpc/111169 "2007-08-03T13:43:08Z")

</div>

Hi, I have to access a webservice (write in Java) which take 3 arguments, 2 string and a complex type. For the comple type i have defined a class child of ActionWebService::Struct. The problem is that when i invoke …

---

## [Attachment\_fu file sizes](https://www.ruby-forum.com/t/attachment-fu-file-sizes/111031)

<div class="topic-metadata">

**Author:** [@dcgrigsby](https://www.ruby-forum.com/u/dcgrigsby)\
**Replies:** 2\
**Last updated:** [August 3, 2007, 1:33pm UTC](https://www.ruby-forum.com/t/attachment-fu-file-sizes/111031 "2007-08-03T13:33:52Z")

</div>

Hi, I’ve been using minimagick with attachment\_fu and have noticed the resized jpeg files are huge, over 100kb for a 640\*480 pic. Does anyone know a way to compress these files upon conversion? -Thanks

---

## [HABTM and acts\_as\_list](https://www.ruby-forum.com/t/habtm-and-acts-as-list/106885)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 1\
**Last updated:** [August 3, 2007, 12:07pm UTC](https://www.ruby-forum.com/t/habtm-and-acts-as-list/106885 "2007-08-03T12:07:43Z")

</div>

I don’t think this needs much explanation. Is what I’m trying to do even possible? class CreateLanguagesProducts \< ActiveRecord::Migration create\_table languages\_products do |t| t.column :language\_id, :integer t.col…

---

## [Attachment\_fu max height/width](https://www.ruby-forum.com/t/attachment-fu-max-height-width/110623)

<div class="topic-metadata">

**Author:** [@xinu](https://www.ruby-forum.com/u/xinu)\
**Replies:** 3\
**Last updated:** [August 3, 2007, 10:34am UTC](https://www.ruby-forum.com/t/attachment-fu-max-height-width/110623 "2007-08-03T10:34:30Z")

</div>

hi. I use attachment\_fu for uploading avatars. I only want to save the attachment, if the height and the width of the image are smaller than 100px.(the system should not resize it) If the attachment is larger I want …

---

## [STI functionality, but then with multiple tables](https://www.ruby-forum.com/t/sti-functionality-but-then-with-multiple-tables/111140)

<div class="topic-metadata">

**Author:** [@daxhuiberts](https://www.ruby-forum.com/u/daxhuiberts)\
**Replies:** 2\
**Last updated:** [August 3, 2007, 9:26am UTC](https://www.ruby-forum.com/t/sti-functionality-but-then-with-multiple-tables/111140 "2007-08-03T09:26:26Z")

</div>

Hello, I’m creating my own Tumblr \[tumblr.com\] like rails app. It’s like a blog, but in this case a blog post could be of a certain type, i.e. a regular post, a video, a link, a photo, a song(info). Well now, it’s cl…

---

## [Locking Out User Access](https://www.ruby-forum.com/t/locking-out-user-access/111145)

<div class="topic-metadata">

**Author:** [@dukael](https://www.ruby-forum.com/u/dukael)\
**Replies:** 2\
**Last updated:** [August 3, 2007, 9:05am UTC](https://www.ruby-forum.com/t/locking-out-user-access/111145 "2007-08-03T09:05:14Z")

</div>

Hi all, I’m new to rails and this is my first post to this list so apologies if I’m little slow on a few things. I have a standard database app with multiple users and a limited access admin controller. Occasionally,…

---

## [Rake aborted! stack level too deep](https://www.ruby-forum.com/t/rake-aborted-stack-level-too-deep/111062)

<div class="topic-metadata">

**Author:** [@valeriya](https://www.ruby-forum.com/u/valeriya)\
**Replies:** 3\
**Last updated:** [August 3, 2007, 9:01am UTC](https://www.ruby-forum.com/t/rake-aborted-stack-level-too-deep/111062 "2007-08-03T09:01:05Z")

</div>

Hello, I have trouble with migration files. Every time when I try create a record by migration file I have error: “Rake aborted! stack level too deep” (look bellow to see content of my migration file and my rails en…

---

## [Missing fields when using scaffold](https://www.ruby-forum.com/t/missing-fields-when-using-scaffold/111151)

<div class="topic-metadata">

**Author:** [@r.g](https://www.ruby-forum.com/u/r.g)\
**Replies:** 0\
**Last updated:** [August 3, 2007, 8:26am UTC](https://www.ruby-forum.com/t/missing-fields-when-using-scaffold/111151 "2007-08-03T08:26:07Z")

</div>

Hey Everyone, When using a dynamic scaffold (i.e. putting “scaffold :object” in a controller) to build my app, I noticed that input fields were missing for some of the object’s columns in my ‘new object’ form. Using …

---

## [ActiveRecord Limitation (Advance)](https://www.ruby-forum.com/t/activerecord-limitation-advance/111061)

<div class="topic-metadata">

**Author:** [@nigel.bris](https://www.ruby-forum.com/u/nigel.bris)\
**Replies:** 4\
**Last updated:** [August 3, 2007, 7:50am UTC](https://www.ruby-forum.com/t/activerecord-limitation-advance/111061 "2007-08-03T07:50:05Z")

</div>

Or is it ? Need to be able to :- @search = Form.find(:all, :include=\>\[:form\_type, :form\_type\_items\], :conditions=\>…) I need in the Form model a :form\_type\_items, the question is, what is the relationship type? Cur…

---

## [Debugging advice](https://www.ruby-forum.com/t/debugging-advice/110983)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 12\
**Last updated:** [August 3, 2007, 7:24am UTC](https://www.ruby-forum.com/t/debugging-advice/110983 "2007-08-03T07:24:04Z")

</div>

Can anyone recommend a nice way to debug a rails app, ie to step through the code, seeing what all the local values are as we go along? Is there any IDE support? I’m a windows xp user. thanks…

---

## [Habtm find question](https://www.ruby-forum.com/t/habtm-find-question/111056)

<div class="topic-metadata">

**Author:** [@Koalemos](https://www.ruby-forum.com/u/Koalemos)\
**Replies:** 2\
**Last updated:** [August 3, 2007, 6:44am UTC](https://www.ruby-forum.com/t/habtm-find-question/111056 "2007-08-03T06:44:01Z")

</div>

The model “Raids” and “Characters” have a habtm relationship. I’m having a tough time finding all the characters who have attended a raid in the last week. I have a timestamp column in the raids table. Its easy to gra…

---

## [No route for :method =\> :get](https://www.ruby-forum.com/t/no-route-for-method-get/110980)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 2\
**Last updated:** [August 3, 2007, 4:49am UTC](https://www.ruby-forum.com/t/no-route-for-method-get/110980 "2007-08-03T04:49:52Z")

</div>

I have been trying to get my application to simply pop open a simple widow with a form laid out in that window. I get it to open this window, but the error I get says: no route found to match “/enroll/airline\_preferen…

---

## [Render\_component alternatives](https://www.ruby-forum.com/t/render-component-alternatives/111006)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 1\
**Last updated:** [August 3, 2007, 4:42am UTC](https://www.ruby-forum.com/t/render-component-alternatives/111006 "2007-08-03T04:42:52Z")

</div>

I am not sure if I am the only one, but I really like the idea of render\_component. Too bad it is depricated now. Currently I am using components so that I can have custom view functions with their own rhtml files in …

---

## [Multipart remote\_form\_for](https://www.ruby-forum.com/t/multipart-remote-form-for/111007)

<div class="topic-metadata">

**Author:** [@BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/u/BallS_Donald_A_Jr_S)\
**Replies:** 1\
**Last updated:** [August 3, 2007, 4:34am UTC](https://www.ruby-forum.com/t/multipart-remote-form-for/111007 "2007-08-03T04:34:52Z")

</div>

I’m trying to figure out how to create an AJAXified form with remote\_form\_for that can submit a file upload, to no avail. Any pointers for me? donald

---

## [Shared Helpers -- Newbie Help](https://www.ruby-forum.com/t/shared-helpers-newbie-help/111019)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 1\
**Last updated:** [August 3, 2007, 4:32am UTC](https://www.ruby-forum.com/t/shared-helpers-newbie-help/111019 "2007-08-03T04:32:51Z")

</div>

I am trying to make a shared helper. I have searched near and far for every piece of help, yet I am still stuck. I am assuming it should be quite easy; I guess just not for me. helpers/fun\_helper.rb – Note: this works…

---

## [Firefox reloads select field from cache?](https://www.ruby-forum.com/t/firefox-reloads-select-field-from-cache/111048)

<div class="topic-metadata">

**Author:** [@PatRoy](https://www.ruby-forum.com/u/PatRoy)\
**Replies:** 1\
**Last updated:** [August 3, 2007, 4:25am UTC](https://www.ruby-forum.com/t/firefox-reloads-select-field-from-cache/111048 "2007-08-03T04:25:50Z")

</div>

Hi, I have a select field that has a “New Category” option in it. When it’s selected a prompt asks for a new category. It creates it, reloads the select field with rjs and selects the added category. Everything works …

---

## [Code works in console but fails test?](https://www.ruby-forum.com/t/code-works-in-console-but-fails-test/111095)

<div class="topic-metadata">

**Author:** [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Replies:** 3\
**Last updated:** [August 3, 2007, 4:17am UTC](https://www.ruby-forum.com/t/code-works-in-console-but-fails-test/111095 "2007-08-03T04:17:50Z")

</div>

So I have message model and each user has many messages. When I run user.messages in the console it returns correctly, however in the test it returns and empty collection? Any thoughts. All the sql is being generate c…

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

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