# Rails

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

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

---

## [Non-blocking "send\_data \`foo\`"](https://www.ruby-forum.com/t/non-blocking-send-data-foo/139021)

<div class="topic-metadata">

**Author:** [@mjcharl](https://www.ruby-forum.com/u/mjcharl)\
**Replies:** 5\
**Last updated:** [May 30, 2008, 7:50pm UTC](https://www.ruby-forum.com/t/non-blocking-send-data-foo/139021 "2008-05-30T19:50:19Z")

</div>

Hello list, The subject pretty much says it all: I’m looking for a way to send the output from a long-running, slowly-outputting system command to the browser without the app hanging until that system command complete…

---

## [Auto rotating between (will\_)paginated objects?](https://www.ruby-forum.com/t/auto-rotating-between-will-paginated-objects/139101)

<div class="topic-metadata">

**Author:** [@heimdull](https://www.ruby-forum.com/u/heimdull)\
**Replies:** 4\
**Last updated:** [May 30, 2008, 7:46pm UTC](https://www.ruby-forum.com/t/auto-rotating-between-will-paginated-objects/139101 "2008-05-30T19:46:10Z")

</div>

Ok lets see if I can ask this question in a way that makes sense… I have a website that has a testimonial box on the front page that show one testimonial at a time. I pull the testimonials using will\_paginate and 1 ob…

---

## [Simple File Upload Fails](https://www.ruby-forum.com/t/simple-file-upload-fails/139102)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 0\
**Last updated:** [May 30, 2008, 7:21pm UTC](https://www.ruby-forum.com/t/simple-file-upload-fails/139102 "2008-05-30T19:21:24Z")

</div>

I have a very simple file upload MVC. But every time I attempt to upload a gif or image file it gives an error see \[1\]. I have tried using http://railsforum.com/viewtopic.php?id=4642&p=1 and the example from a book th…

---

## [How to render view to file](https://www.ruby-forum.com/t/how-to-render-view-to-file/138919)

<div class="topic-metadata">

**Author:** [@rubylicious](https://www.ruby-forum.com/u/rubylicious)\
**Replies:** 12\
**Last updated:** [May 30, 2008, 6:51pm UTC](https://www.ruby-forum.com/t/how-to-render-view-to-file/138919 "2008-05-30T18:51:19Z")

</div>

I want to render a view to a file that gets stored on my hard disk. I’ve created an app that allows me to automate e-learning content generation. I perform basic data entry and select one of many HTML content templat…

---

## [Is DateTime and Time interchangeable?](https://www.ruby-forum.com/t/is-datetime-and-time-interchangeable/139093)

<div class="topic-metadata">

**Author:** [@Eric\_LIn](https://www.ruby-forum.com/u/Eric_LIn)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 6:47pm UTC](https://www.ruby-forum.com/t/is-datetime-and-time-interchangeable/139093 "2008-05-30T18:47:11Z")

</div>

I have datetime (SQL) column in my DB, and I noticed whenever I retrieve that column using ActiveRecord, it returns an object of class Time instead of DateTime. Does Rails convert treat datetime and time as if they’r…

---

## [Hard time with checkboxes](https://www.ruby-forum.com/t/hard-time-with-checkboxes/139063)

<div class="topic-metadata">

**Author:** [@amanda](https://www.ruby-forum.com/u/amanda)\
**Replies:** 18\
**Last updated:** [May 30, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/hard-time-with-checkboxes/139063 "2008-05-30T18:29:36Z")

</div>

Hi, I’ve been having a heck of a time trying to get checkboxes for filter options of a search page working. I have a SearchController and views: index, keyword, for the searching part. And I have the Event model, cont…

---

## [Slurp or dump a table to yml](https://www.ruby-forum.com/t/slurp-or-dump-a-table-to-yml/138890)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 3\
**Last updated:** [May 30, 2008, 6:24pm UTC](https://www.ruby-forum.com/t/slurp-or-dump-a-table-to-yml/138890 "2008-05-30T18:24:45Z")

</div>

I’m looking for a way to slurp or dump a table to a yml file. I have found several ‘backup’ procedures but they cause problems with my join tables and I just want to dump a couple of the join tables anyway. Is there s…

---

## [Has\_many :through and association callbacks: Working?](https://www.ruby-forum.com/t/has-many-through-and-association-callbacks-working/139043)

<div class="topic-metadata">

**Author:** [@Feurio](https://www.ruby-forum.com/u/Feurio)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 6:17pm UTC](https://www.ruby-forum.com/t/has-many-through-and-association-callbacks-working/139043 "2008-05-30T18:17:05Z")

</div>

Hi, does anybody know if the association callbacks like :after\_add, :before\_remove should work together with the :through option of a has\_many association? For me it actually seems not to work. And I don’t know if it…

---

## [Help with ActiveRecord for Models with long associtation chain](https://www.ruby-forum.com/t/help-with-activerecord-for-models-with-long-associtation-chain/139078)

<div class="topic-metadata">

**Author:** [@tonypm](https://www.ruby-forum.com/u/tonypm)\
**Replies:** 3\
**Last updated:** [May 30, 2008, 6:12pm UTC](https://www.ruby-forum.com/t/help-with-activerecord-for-models-with-long-associtation-chain/139078 "2008-05-30T18:12:23Z")

</div>

Hi, I am trying to use this set of associations for what must be a fairly standard data model, to give me the accessor @batch.products Batch: has\_many :orders has\_many :line\_items :through=\>orders Order: has\_many…

---

## [Change association methods behaviour](https://www.ruby-forum.com/t/change-association-methods-behaviour/139055)

<div class="topic-metadata">

**Author:** [@Dante\_R](https://www.ruby-forum.com/u/Dante_R)\
**Replies:** 2\
**Last updated:** [May 30, 2008, 6:01pm UTC](https://www.ruby-forum.com/t/change-association-methods-behaviour/139055 "2008-05-30T18:01:46Z")

</div>

Hello there, I am building an application where users are distributed among different user groups (User has\_many UserGroup). But there is a specific type of User (admin) that I would like to belong to ALL groups. I k…

---

## [Prawn (PDF in Ruby) BoF at RailsConf?](https://www.ruby-forum.com/t/prawn-pdf-in-ruby-bof-at-railsconf/139088)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [May 30, 2008, 5:58pm UTC](https://www.ruby-forum.com/t/prawn-pdf-in-ruby-bof-at-railsconf/139088 "2008-05-30T17:58:14Z")

</div>

Hey folks, Unfortunately I’m not at RailsConf but if there are enough people interested in PDF generation in Ruby / Rails, please consider using the BoF sessions or some other time to get together and share thoughts …

---

## [Best practice: same "workflow", different context](https://www.ruby-forum.com/t/best-practice-same-workflow-different-context/139028)

<div class="topic-metadata">

**Author:** [@geek001](https://www.ruby-forum.com/u/geek001)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 5:27pm UTC](https://www.ruby-forum.com/t/best-practice-same-workflow-different-context/139028 "2008-05-30T17:27:56Z")

</div>

Hi, I am trying to figure out what the best practice for the following problem might be: In my RoR app, I have an account class, and the user has to have the ability to edit it (e.g., change the email address). At th…

---

## [Ruby on Rails Developer Opportunity - Melbourne - Permanent - Excellent Career Path](https://www.ruby-forum.com/t/ruby-on-rails-developer-opportunity-melbourne-permanent-excellent-career-path/139045)

<div class="topic-metadata">

**Author:** [@PCRS](https://www.ruby-forum.com/u/PCRS)\
**Replies:** 2\
**Last updated:** [May 30, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-opportunity-melbourne-permanent-excellent-career-path/139045 "2008-05-30T16:43:51Z")

</div>

Permanent Rails Developer in Melbourne This is a rare opportunity for a skilled and ambitious Ruby on Rails developer to join a rapidly growing national consulting firm specialising in Business Intelligence services (…

---

## [Rails debug](https://www.ruby-forum.com/t/rails-debug/139037)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [May 30, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/rails-debug/139037 "2008-05-30T16:24:42Z")

</div>

Hi guys, Now I own rails application for my website. But when some changes happens, the debug way will be bramble. Is there any IDE or method release it? I mean if you would like to debug the java program, you can se…

---

## [Somewhat OT: trying to git cozy with git](https://www.ruby-forum.com/t/somewhat-ot-trying-to-git-cozy-with-git/138992)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 5\
**Last updated:** [May 30, 2008, 4:19pm UTC](https://www.ruby-forum.com/t/somewhat-ot-trying-to-git-cozy-with-git/138992 "2008-05-30T16:19:12Z")

</div>

I’ve been using Subversion since I started doing Rails. I wouldn’t say I like it, but it is “comfortable” at this point. Now that the Rails core team seems to be pushing the Rails community in the direction of Git as…

---

## [Trouble installing plugins with script/plugin install](https://www.ruby-forum.com/t/trouble-installing-plugins-with-script-plugin-install/139014)

<div class="topic-metadata">

**Author:** [@bdeverea](https://www.ruby-forum.com/u/bdeverea)\
**Replies:** 4\
**Last updated:** [May 30, 2008, 3:37pm UTC](https://www.ruby-forum.com/t/trouble-installing-plugins-with-script-plugin-install/139014 "2008-05-30T15:37:17Z")

</div>

Greetings! I have come across a strange issue when trying to install any plugins into my rails project. When I run the ‘script/plugin install’ command nothing happens. I am just presented with a blank command prompt …

---

## [Creating calendar view for all the year, plugin?](https://www.ruby-forum.com/t/creating-calendar-view-for-all-the-year-plugin/139060)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 0\
**Last updated:** [May 30, 2008, 3:28pm UTC](https://www.ruby-forum.com/t/creating-calendar-view-for-all-the-year-plugin/139060 "2008-05-30T15:28:21Z")

</div>

Hi, I want to create a project planning tool where I can follow things like: Specification start/end date Implementation start/end date Testing start/end date So I want that info to be displayed in a calendar that sh…

---

## [Overwrite active\_record find?](https://www.ruby-forum.com/t/overwrite-active-record-find/138962)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 6\
**Last updated:** [May 30, 2008, 3:09pm UTC](https://www.ruby-forum.com/t/overwrite-active-record-find/138962 "2008-05-30T15:09:32Z")

</div>

Hey! i need to overwrite active record find to synchronize database access i’ve tried the following: def self.find(\*args) begin @@semaphore.synchronize { super(args) } resc…

---

## [Strange bug using runt with rails](https://www.ruby-forum.com/t/strange-bug-using-runt-with-rails/129381)

<div class="topic-metadata">

**Author:** [@blacknight](https://www.ruby-forum.com/u/blacknight)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 1:57pm UTC](https://www.ruby-forum.com/t/strange-bug-using-runt-with-rails/129381 "2008-05-30T13:57:30Z")

</div>

Hi all, I’m trying to include the ‘runt’ gem (http://runt.rubyforge.org/) in my Rails project. I’ve tried a few ways of doing this. I’ve tried installing runt using ‘gem install runt’ and then trying to do “require…

---

## [How to deal with observe\_field in partials?](https://www.ruby-forum.com/t/how-to-deal-with-observe-field-in-partials/139038)

<div class="topic-metadata">

**Author:** [@enduro](https://www.ruby-forum.com/u/enduro)\
**Replies:** 4\
**Last updated:** [May 30, 2008, 12:09pm UTC](https://www.ruby-forum.com/t/how-to-deal-with-observe-field-in-partials/139038 "2008-05-30T12:09:40Z")

</div>

Hiyas I’m having a little problem with a observe\_field in a partial “bokings/room\_list”: \<%= select\_tag “room\_#{room.id}grownups", options\_for\_select(\[0, 1, 2\], room.grownups.length) %\> \<%= observe\_field "room#{room…

---

## [Active scaffold with attibute in join table](https://www.ruby-forum.com/t/active-scaffold-with-attibute-in-join-table/139044)

<div class="topic-metadata">

**Author:** [@menestra](https://www.ruby-forum.com/u/menestra)\
**Replies:** 0\
**Last updated:** [May 30, 2008, 12:04pm UTC](https://www.ruby-forum.com/t/active-scaffold-with-attibute-in-join-table/139044 "2008-05-30T12:04:35Z")

</div>

hi, I’ve a many to many relationship: class Operation \< ActiveRecord::Base has\_and\_belongs\_to\_many :roles end class Role \< ActiveRecord::Base has\_and\_belongs\_to\_many :operations end Roles table contains the users…

---

## [Params not parsed correctly from url from observe\_field, (only occurs on new server environment)](https://www.ruby-forum.com/t/params-not-parsed-correctly-from-url-from-observe-field-only-occurs-on-new-server-environment/139042)

<div class="topic-metadata">

**Author:** [@rooster](https://www.ruby-forum.com/u/rooster)\
**Replies:** 0\
**Last updated:** [May 30, 2008, 11:46am UTC](https://www.ruby-forum.com/t/params-not-parsed-correctly-from-url-from-observe-field-only-occurs-on-new-server-environment/139042 "2008-05-30T11:46:45Z")

</div>

Greetings :slight\_smile: Anyone see anything obvious or know of any occurrences of this kind of issue. In the process of testing deployment to a new hosting environment we found this issue. this operation works on c…

---

## [Best way to nest model validations](https://www.ruby-forum.com/t/best-way-to-nest-model-validations/139040)

<div class="topic-metadata">

**Author:** [@Kieran\_P](https://www.ruby-forum.com/u/Kieran_P)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 11:38am UTC](https://www.ruby-forum.com/t/best-way-to-nest-model-validations/139040 "2008-05-30T11:38:22Z")

</div>

Hey everyone, Whats the best way to nest model validations so multple errors relating to the same field appear one by one, rather than all at once? I was talking with some people on IRC the other day, but two of the …

---

## [ActionMailer](https://www.ruby-forum.com/t/actionmailer/139034)

<div class="topic-metadata">

**Author:** [@wawa88](https://www.ruby-forum.com/u/wawa88)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 11:22am UTC](https://www.ruby-forum.com/t/actionmailer/139034 "2008-05-30T11:22:30Z")

</div>

Actually these code for receiving attachment is not working if email.has\_attachments? for attachment in email.attachments page.attachments.create({ :file =\> attachment, :description =\> email.subject }) end So i ch…

---

## [RoR / Subversion IDE (Who made changes to which section)](https://www.ruby-forum.com/t/ror-subversion-ide-who-made-changes-to-which-section/139035)

<div class="topic-metadata">

**Author:** [@flyupload](https://www.ruby-forum.com/u/flyupload)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 11:18am UTC](https://www.ruby-forum.com/t/ror-subversion-ide-who-made-changes-to-which-section/139035 "2008-05-30T11:18:57Z")

</div>

Hey Guys, I’m working with a team of 4 here in a fortune 500 company in RoR. I use TextMate at home, I’ve used Aptana IDE and VIM as well. Back end systems are Ubuntu 8.10 and subversion. Any tips of a good visual …

---

## [Multiple MySQL Users Per App?](https://www.ruby-forum.com/t/multiple-mysql-users-per-app/139027)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 2\
**Last updated:** [May 30, 2008, 11:17am UTC](https://www.ruby-forum.com/t/multiple-mysql-users-per-app/139027 "2008-05-30T11:17:11Z")

</div>

I am not fond of Rails’ reliance on a single database user in its db config setup. I’d really like to be able to use multiple user definitions for connections in my applications. Based on separation of concerns and pr…

---

## [Validations and STI](https://www.ruby-forum.com/t/validations-and-sti/139029)

<div class="topic-metadata">

**Author:** [@jwigal](https://www.ruby-forum.com/u/jwigal)\
**Replies:** 0\
**Last updated:** [May 30, 2008, 6:50am UTC](https://www.ruby-forum.com/t/validations-and-sti/139029 "2008-05-30T06:50:07Z")

</div>

The functionality with callbacks and STI does not seem to be working as expected. Here is a scenario and what I’ve done. Suggestion welcome. assume you have parent.rb class Parent \< ActiveRecord::Base validates\_uniqu…

---

## [This Week in Ruby (May 29, 2008)](https://www.ruby-forum.com/t/this-week-in-ruby-may-29-2008/139026)

<div class="topic-metadata">

**Author:** [@visitor1981](https://www.ruby-forum.com/u/visitor1981)\
**Replies:** 0\
**Last updated:** [May 30, 2008, 6:34am UTC](https://www.ruby-forum.com/t/this-week-in-ruby-may-29-2008/139026 "2008-05-30T06:34:54Z")

</div>

Hi all, here you can find the 9th edition of “This Week in Ruby”: Cheers, Antonio http://antoniocangiano.com - Zen and the Art of Programming http://stacktrace.it | http://math-blog.com | http://twitter.com/acan…

---

## [Searching through HABTM](https://www.ruby-forum.com/t/searching-through-habtm/138825)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 8\
**Last updated:** [May 30, 2008, 6:34am UTC](https://www.ruby-forum.com/t/searching-through-habtm/138825 "2008-05-30T06:34:19Z")

</div>

Hey, I have a model “story” that habtm genres (model - genre, table - genres, join\_table genres\_stories). How do I look for a story of a certain genre in a find condition? JB

---

## [Fixtures](https://www.ruby-forum.com/t/fixtures/139025)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 6:17am UTC](https://www.ruby-forum.com/t/fixtures/139025 "2008-05-30T06:17:56Z")

</div>

Hello All, does someone knows a link to tutorial on fixtures and yaml Regards, Joel

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

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