# Rails

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

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

---

## [Session modify user updated\_at](https://www.ruby-forum.com/t/session-modify-user-updated-at/170544)

<div class="topic-metadata">

**Author:** [@Sean\_McGilvray](https://www.ruby-forum.com/u/Sean_McGilvray)\
**Replies:** 4\
**Last updated:** [June 19, 2009, 1:22am UTC](https://www.ruby-forum.com/t/session-modify-user-updated-at/170544 "2009-06-19T01:22:03Z")

</div>

I have a system that uses sessions for users to display their personalized site. I want to modify the updated\_at field in the database when ever their personal account is viewed. Any ideas? Thank you, Sean McGilvra…

---

## [Fixed Sized Columns in TABLE on screen](https://www.ruby-forum.com/t/fixed-sized-columns-in-table-on-screen/170560)

<div class="topic-metadata">

**Author:** [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Replies:** 4\
**Last updated:** [June 19, 2009, 12:49am UTC](https://www.ruby-forum.com/t/fixed-sized-columns-in-table-on-screen/170560 "2009-06-19T00:49:18Z")

</div>

Hi, I am attempting to do the following: Have a table with width = 100px Have 4 columns with width = 20px, 30px, 10px, 40px Have the content within the rows word wrapped as per the size of their respective columns - …

---

## [JOBS - NYC area](https://www.ruby-forum.com/t/jobs-nyc-area/170555)

<div class="topic-metadata">

**Author:** [@frs](https://www.ruby-forum.com/u/frs)\
**Replies:** 0\
**Last updated:** [June 18, 2009, 9:43pm UTC](https://www.ruby-forum.com/t/jobs-nyc-area/170555 "2009-06-18T21:43:31Z")

</div>

Looking for lead programmer or programming team for Rails site development starting in July.

---

## [Is there RoR Debugger..?](https://www.ruby-forum.com/t/is-there-ror-debugger/170220)

<div class="topic-metadata">

**Author:** [@sheru](https://www.ruby-forum.com/u/sheru)\
**Replies:** 2\
**Last updated:** [June 18, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/is-there-ror-debugger/170220 "2009-06-18T19:35:28Z")

</div>

Hi, Thank you all for your great response time and again. Again I am back to the forum… As I am learner for Ruby On Rails & quite interested to go for the RoR. There are couple of issues to me regarding the Ruby on R…

---

## [Link to stylesheet from HTML email?](https://www.ruby-forum.com/t/link-to-stylesheet-from-html-email/170472)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 11\
**Last updated:** [June 18, 2009, 7:24pm UTC](https://www.ruby-forum.com/t/link-to-stylesheet-from-html-email/170472 "2009-06-18T19:24:26Z")

</div>

I am using actionMailer to send out an HTML email. This is working fine. I need to style it though… Is there a way to link to a remote stylesheet I have in my public/ stylesheets Dir? Thanks, Elliott

---

## [Checkbox color](https://www.ruby-forum.com/t/checkbox-color/170415)

<div class="topic-metadata">

**Author:** [@mikael](https://www.ruby-forum.com/u/mikael)\
**Replies:** 1\
**Last updated:** [June 18, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/checkbox-color/170415 "2009-06-18T19:15:39Z")

</div>

Hi! Anyone who knows any good way to change a checkbox color, like iCal checkboxes. If there is a gem or somthing like that. Thanks.

---

## [A quick primer on sharding for Ruby on Rails - http://bit.ly/15k7Te](https://www.ruby-forum.com/t/a-quick-primer-on-sharding-for-ruby-on-rails-http-bit-ly-15k7te/170547)

<div class="topic-metadata">

**Author:** [@LJMecca](https://www.ruby-forum.com/u/LJMecca)\
**Replies:** 0\
**Last updated:** [June 18, 2009, 7:09pm UTC](https://www.ruby-forum.com/t/a-quick-primer-on-sharding-for-ruby-on-rails-http-bit-ly-15k7te/170547 "2009-06-18T19:09:47Z")

</div>

Sharding is usually the final strategy to reach for when scaling a Ruby on Rails application: caching, offloading, and data segmentation usually come before (they’re usually easier). Here’s info on Ruby on Rails appl…

---

## [:loaded not called in test environment](https://www.ruby-forum.com/t/loaded-not-called-in-test-environment/170480)

<div class="topic-metadata">

**Author:** [@russianbandit](https://www.ruby-forum.com/u/russianbandit)\
**Replies:** 1\
**Last updated:** [June 18, 2009, 7:07pm UTC](https://www.ruby-forum.com/t/loaded-not-called-in-test-environment/170480 "2009-06-18T19:07:36Z")

</div>

I have a remote\_form\_for with :loading and :loaded specified like so: \<% remote\_form\_for @some\_object, :loading =\> “document.body.style.cursor = ‘wait’”, :loaded =\> “document.body.style.cursor = ‘default’” do |f| %\> …

---

## [AR - custom error handling](https://www.ruby-forum.com/t/ar-custom-error-handling/170543)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [June 18, 2009, 6:59pm UTC](https://www.ruby-forum.com/t/ar-custom-error-handling/170543 "2009-06-18T18:59:46Z")

</div>

I have this code in a controller: respond\_to do |format| if @currency.save flash\[:notice\] = 'Currency was successfully created.' format.html { redirect\_to(@currency) } format.xml { render :xml =\> @currenc…

---

## [Problem with full\_original\_filename](https://www.ruby-forum.com/t/problem-with-full-original-filename/170296)

<div class="topic-metadata">

**Author:** [@sultan](https://www.ruby-forum.com/u/sultan)\
**Replies:** 7\
**Last updated:** [June 18, 2009, 6:27pm UTC](https://www.ruby-forum.com/t/problem-with-full-original-filename/170296 "2009-06-18T18:27:30Z")

</div>

Problem with full\_original\_filename. I am upgrading from rails 1.1.6 to 2.3.2. View has: \<%= file\_column\_field ‘gallery’, ‘filename’, :size =\> 100 %\> Controller has: upload\_dir = params\[:gallery\]\[:filename\].full\_ori…

---

## [Project-Voldemort ruby client library](https://www.ruby-forum.com/t/project-voldemort-ruby-client-library/170506)

<div class="topic-metadata">

**Author:** [@thaold](https://www.ruby-forum.com/u/thaold)\
**Replies:** 2\
**Last updated:** [June 18, 2009, 6:16pm UTC](https://www.ruby-forum.com/t/project-voldemort-ruby-client-library/170506 "2009-06-18T18:16:57Z")

</div>

Hi, Is there a ruby client lib for project voldemort (http://project- voldemort.com/), or anyone working on one? Thanks

---

## [Odd error with file\_column and relative\_path](https://www.ruby-forum.com/t/odd-error-with-file-column-and-relative-path/170502)

<div class="topic-metadata">

**Author:** [@Per\_Fagrell](https://www.ruby-forum.com/u/Per_Fagrell)\
**Replies:** 2\
**Last updated:** [June 18, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/odd-error-with-file-column-and-relative-path/170502 "2009-06-18T18:01:45Z")

</div>

Hello! I’m trying to get image uploads to work with file\_column, and thought I almost had it when I stumbled on a really strange error I can’t figure out. No other post here seems to deal with it either. The create a…

---

## [Routing, use parts of entered url as id / perma](https://www.ruby-forum.com/t/routing-use-parts-of-entered-url-as-id-perma/170505)

<div class="topic-metadata">

**Author:** [@ZoolWay](https://www.ruby-forum.com/u/ZoolWay)\
**Replies:** 3\
**Last updated:** [June 18, 2009, 5:59pm UTC](https://www.ruby-forum.com/t/routing-use-parts-of-entered-url-as-id-perma/170505 "2009-06-18T17:59:59Z")

</div>

Hello, I just started ruby on rails a week ago and know cannot find any information which helps me for my desired routing. At the moment I cannot image that this should be too hard. I’d like to use urls like the foll…

---

## [Rails Metal app executed multiple times if Content-Type not html in Firefox?](https://www.ruby-forum.com/t/rails-metal-app-executed-multiple-times-if-content-type-not-html-in-firefox/170536)

<div class="topic-metadata">

**Author:** [@Kabuto](https://www.ruby-forum.com/u/Kabuto)\
**Replies:** 1\
**Last updated:** [June 18, 2009, 5:50pm UTC](https://www.ruby-forum.com/t/rails-metal-app-executed-multiple-times-if-content-type-not-html-in-firefox/170536 "2009-06-18T17:50:34Z")

</div>

Hi, I’m having a weird problem with an Rails Metal app. I’m returning an image with Content-Type image/gif. Whenever I call this app in Firefox it get’s executed three times with just one request. Using curl on the s…

---

## [Unexpected 2.3.2 spew](https://www.ruby-forum.com/t/unexpected-2-3-2-spew/170511)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 2\
**Last updated:** [June 18, 2009, 5:23pm UTC](https://www.ruby-forum.com/t/unexpected-2-3-2-spew/170511 "2009-06-18T17:23:43Z")

</div>

A 2.3.2 test case that spews: /home/adam/ror/2.3.2/vendor/rails/activerecord/lib/active\_record/base.rb:2189:in dup': can't dup NilClass (TypeError) from /home/adam/ror/2.3.2/vendor/rails/activerecord/lib/active\_record/…

---

## [Plz provide code for (Drop down questions shouldn't have a N](https://www.ruby-forum.com/t/plz-provide-code-for-drop-down-questions-shouldnt-have-a-n/169559)

<div class="topic-metadata">

**Author:** [@prashanth](https://www.ruby-forum.com/u/prashanth)\
**Replies:** 9\
**Last updated:** [June 18, 2009, 5:10pm UTC](https://www.ruby-forum.com/t/plz-provide-code-for-drop-down-questions-shouldnt-have-a-n/169559 "2009-06-18T17:10:44Z")

</div>

Hi , Am very New to Rails…i Hav the following issue …Plz tell way using ruby on rail s code me to resolve the below .Plz Provide the code for this issue. issue:- Drop down questions shouldn’t have a None option- sho…

---

## [Routing Error](https://www.ruby-forum.com/t/routing-error/170471)

<div class="topic-metadata">

**Author:** [@knappe](https://www.ruby-forum.com/u/knappe)\
**Replies:** 4\
**Last updated:** [June 18, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/routing-error/170471 "2009-06-18T16:43:49Z")

</div>

I have a problem with my routing. When a user performs an illegal checkout action (end time \< start time) it should route back to to the ‘checkout’ action. However, it is instead going to the ‘edit’ action. ‘rake ro…

---

## [Exe](https://www.ruby-forum.com/t/exe/170524)

<div class="topic-metadata">

**Author:** [@sushrut](https://www.ruby-forum.com/u/sushrut)\
**Replies:** 0\
**Last updated:** [June 18, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/exe/170524 "2009-06-18T15:11:13Z")

</div>

How i create .exe file of my application.

---

## [Validates\_uniqueness\_of fails on STI in Rails 2.3.2](https://www.ruby-forum.com/t/validates-uniqueness-of-fails-on-sti-in-rails-2-3-2/170419)

<div class="topic-metadata">

**Author:** [@joachimgross](https://www.ruby-forum.com/u/joachimgross)\
**Replies:** 2\
**Last updated:** [June 18, 2009, 1:53pm UTC](https://www.ruby-forum.com/t/validates-uniqueness-of-fails-on-sti-in-rails-2-3-2/170419 "2009-06-18T13:53:41Z")

</div>

I’ve got something like this: class Position \< ActiveRecord::Base end class CartItem \< Position validates\_uniqueness\_of :product\_id end When I try to save CartItem I get this error: ArgumentError: wrong number of …

---

## [Missing test helpers](https://www.ruby-forum.com/t/missing-test-helpers/170497)

<div class="topic-metadata">

**Author:** [@p\_W](https://www.ruby-forum.com/u/p_W)\
**Replies:** 2\
**Last updated:** [June 18, 2009, 12:37pm UTC](https://www.ruby-forum.com/t/missing-test-helpers/170497 "2009-06-18T12:37:29Z")

</div>

I seem to be missing a test helper I thought was standard…\`assert\_session\_has’, any ideas?

---

## [Regex help](https://www.ruby-forum.com/t/regex-help/170494)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 5\
**Last updated:** [June 18, 2009, 12:34pm UTC](https://www.ruby-forum.com/t/regex-help/170494 "2009-06-18T12:34:42Z")

</div>

Is there any regualar expressions,which Should not allow blank space as the first character for my Department Name field. any helps on this… Thanks

---

## [Best way to access audio downloads / audio listen statistics](https://www.ruby-forum.com/t/best-way-to-access-audio-downloads-audio-listen-statistics/170489)

<div class="topic-metadata">

**Author:** [@e\_deleflie](https://www.ruby-forum.com/u/e_deleflie)\
**Replies:** 1\
**Last updated:** [June 18, 2009, 12:25pm UTC](https://www.ruby-forum.com/t/best-way-to-access-audio-downloads-audio-listen-statistics/170489 "2009-06-18T12:25:23Z")

</div>

All, I’ve got a rails application that allows people to publish audio files. The files are stored on Amazon S3. I would like to publish statistics on the number of listens … and have those statistics close to real t…

---

## [Display a string properly in View](https://www.ruby-forum.com/t/display-a-string-properly-in-view/170508)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 5\
**Last updated:** [June 18, 2009, 12:00pm UTC](https://www.ruby-forum.com/t/display-a-string-properly-in-view/170508 "2009-06-18T12:00:53Z")

</div>

Dear all I have problem in print the string in View. @event = Event.first puts @event.event\_detail dreq\_reqno dreq\_status dreq\_create\_time 09P0917228 0 18 Jun 2009 16:32 09P5075748 0 18…

---

## [How to check if a record lock is in place](https://www.ruby-forum.com/t/how-to-check-if-a-record-lock-is-in-place/170490)

<div class="topic-metadata">

**Author:** [@Developer\_In\_London](https://www.ruby-forum.com/u/Developer_In_London)\
**Replies:** 1\
**Last updated:** [June 18, 2009, 9:14am UTC](https://www.ruby-forum.com/t/how-to-check-if-a-record-lock-is-in-place/170490 "2009-06-18T09:14:31Z")

</div>

does anyone know how i can check if a record has a lock in place before I attempt to lock the record? Eg \<-- check here if the specific record is already locked. if not locked MyModel.lock! else skip to the next mod…

---

## [How to change quantity to cart?](https://www.ruby-forum.com/t/how-to-change-quantity-to-cart/170412)

<div class="topic-metadata">

**Author:** [@Mike75](https://www.ruby-forum.com/u/Mike75)\
**Replies:** 2\
**Last updated:** [June 18, 2009, 2:35am UTC](https://www.ruby-forum.com/t/how-to-change-quantity-to-cart/170412 "2009-06-18T02:35:55Z")

</div>

hi all… I’ve been studying ROR using the agile development ROR book. and I’m stuck at the shopping cart. what I am trying to do is that, from the book, the ‘add\_to\_cart’ button doesn’t take the quantity from the user…

---

## [Basing Drop Down from Check Box](https://www.ruby-forum.com/t/basing-drop-down-from-check-box/170469)

<div class="topic-metadata">

**Author:** [@rachel](https://www.ruby-forum.com/u/rachel)\
**Replies:** 2\
**Last updated:** [June 18, 2009, 1:54am UTC](https://www.ruby-forum.com/t/basing-drop-down-from-check-box/170469 "2009-06-18T01:54:59Z")

</div>

Hello All, I am very new to Web D. (in general) and Ruby on Rails and have been stumped on this for awhile. In my view I have a check box of which I need to grab a primary key value when checked. The primary key val…

---

## [Link\_to problem](https://www.ruby-forum.com/t/link-to-problem/170478)

<div class="topic-metadata">

**Author:** [@serb18](https://www.ruby-forum.com/u/serb18)\
**Replies:** 0\
**Last updated:** [June 18, 2009, 1:00am UTC](https://www.ruby-forum.com/t/link-to-problem/170478 "2009-06-18T01:00:11Z")

</div>

Hi, having a problem with link\_to. My rail app is running in a sub directory and when i use link\_to for a file it does work, because link\_to does not place the subdirectory path in the url, but if i go to another page …

---

## [Cap deploy with no password](https://www.ruby-forum.com/t/cap-deploy-with-no-password/170398)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 9\
**Last updated:** [June 17, 2009, 11:21pm UTC](https://www.ruby-forum.com/t/cap-deploy-with-no-password/170398 "2009-06-17T23:21:04Z")

</div>

Each time I use cap deploy I have to type in the password for the user I assigned to do cap deploy. This is getting kind of annoying, so I’m wondering how I can do this without having to type in the password each time…

---

## [Urgent ! Need Web Services Help](https://www.ruby-forum.com/t/urgent-need-web-services-help/170413)

<div class="topic-metadata">

**Author:** [@hamidraza](https://www.ruby-forum.com/u/hamidraza)\
**Replies:** 6\
**Last updated:** [June 17, 2009, 9:59pm UTC](https://www.ruby-forum.com/t/urgent-need-web-services-help/170413 "2009-06-17T21:59:50Z")

</div>

I want to develop web services using ruby on rails , how can i , any help ?

---

## ["What to Expect in Rails 3.0": O'Reilly Webcast Available on YouTube -- http://bit.ly/172R82](https://www.ruby-forum.com/t/what-to-expect-in-rails-3-0-oreilly-webcast-available-on-youtube-http-bit-ly-172r82/170465)

<div class="topic-metadata">

**Author:** [@LJMecca](https://www.ruby-forum.com/u/LJMecca)\
**Replies:** 0\
**Last updated:** [June 17, 2009, 9:19pm UTC](https://www.ruby-forum.com/t/what-to-expect-in-rails-3-0-oreilly-webcast-available-on-youtube-http-bit-ly-172r82/170465 "2009-06-17T21:19:40Z")

</div>

Just an FYI in case you missed it in May – Yehuda K.'s webcast on what to expect in Rails 3 is available on YouTube: - YouTube

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

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