# Rails

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

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

---

## [Need a second set of eyes to help me](https://www.ruby-forum.com/t/need-a-second-set-of-eyes-to-help-me/91427)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 8\
**Last updated:** [April 9, 2007, 5:20am UTC](https://www.ruby-forum.com/t/need-a-second-set-of-eyes-to-help-me/91427 "2007-04-09T05:20:51Z")

</div>

I think I am going blind, because I cannot find what is wrong with the following. The bad thing is that I had it working, made couple of changes, reverted back to the original, now it doesn’t work. I have been trying…

---

## [Rubygems LoadError with Apache](https://www.ruby-forum.com/t/rubygems-loaderror-with-apache/91436)

<div class="topic-metadata">

**Author:** [@pacman](https://www.ruby-forum.com/u/pacman)\
**Replies:** 0\
**Last updated:** [April 9, 2007, 5:05am UTC](https://www.ruby-forum.com/t/rubygems-loaderror-with-apache/91436 "2007-04-09T05:05:49Z")

</div>

Hi, I tried to deploy Ruby with Apache on OS X, but i got this error just from clicking on the “About your applicationâ€™s environment” on the “Welcome aboard” rails page. =============================================…

---

## [Link\_to external site, without "http://" in url](https://www.ruby-forum.com/t/link-to-external-site-without-http-in-url/91408)

<div class="topic-metadata">

**Author:** [@thomma](https://www.ruby-forum.com/u/thomma)\
**Replies:** 2\
**Last updated:** [April 9, 2007, 3:54am UTC](https://www.ruby-forum.com/t/link-to-external-site-without-http-in-url/91408 "2007-04-09T03:54:45Z")

</div>

Hi I have a form where users enters their homepage-url. The problem is that some users don’t include the “http://” part of the url. So, when I use \<%= link\_to “external site”, @user.homepage\_url %\> and @user.homepag…

---

## [Attachment\_fu Update Problem - Broken Images](https://www.ruby-forum.com/t/attachment-fu-update-problem-broken-images/102745)

<div class="topic-metadata">

**Author:** [@hunter\_h](https://www.ruby-forum.com/u/hunter_h)\
**Replies:** 0\
**Last updated:** [April 8, 2007, 11:58pm UTC](https://www.ruby-forum.com/t/attachment-fu-update-problem-broken-images/102745 "2007-04-08T23:58:32Z")

</div>

Howdy, It looks like one of the recent updates to attachment\_fu has changed the way it names/stores files in the filesystem. I’m guessing it was this one: add default ID partitioning for attachments Anyway, my file…

---

## [Migration problem](https://www.ruby-forum.com/t/migration-problem/91409)

<div class="topic-metadata">

**Author:** [@wheresdave](https://www.ruby-forum.com/u/wheresdave)\
**Replies:** 3\
**Last updated:** [April 8, 2007, 11:25pm UTC](https://www.ruby-forum.com/t/migration-problem/91409 "2007-04-08T23:25:27Z")

</div>

Ok, going through the book Ruby on Rails Made Easy, and I made a mistake here. I forgot to add in two columns into my table. so i tried to add them back into the migration file and run it again, but after checking wit…

---

## [Rjs condition problem](https://www.ruby-forum.com/t/rjs-condition-problem/91389)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 3\
**Last updated:** [April 8, 2007, 10:50pm UTC](https://www.ruby-forum.com/t/rjs-condition-problem/91389 "2007-04-08T22:50:24Z")

</div>

I have a list that is being populated through an ajax response and if the number of items to be populated is zero, I would like to show a message informing the user that there is no items. Here is the portion of the r…

---

## [How-to: Hierarchical model object: Object with relation to i](https://www.ruby-forum.com/t/how-to-hierarchical-model-object-object-with-relation-to-i/91420)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 8, 2007, 10:29pm UTC](https://www.ruby-forum.com/t/how-to-hierarchical-model-object-object-with-relation-to-i/91420 "2007-04-08T22:29:23Z")

</div>

Hi all please advice me on the ‘proper’ way to handle the questions below. Any insight, best-practise or hint is very welcome. I use Ruby for a while, but Rails is new to me. ==Initial code: ===My DB contains: CREAT…

---

## [Number in hash key](https://www.ruby-forum.com/t/number-in-hash-key/91416)

<div class="topic-metadata">

**Author:** [@bitterbal](https://www.ruby-forum.com/u/bitterbal)\
**Replies:** 1\
**Last updated:** [April 8, 2007, 8:53pm UTC](https://www.ruby-forum.com/t/number-in-hash-key/91416 "2007-04-08T20:53:07Z")

</div>

How do I retrieve the valye if my hash key is a number. example: record from activerecord query #\<Mutation:0x33cefbc @attributes={“2003”=\>“0.00”, “2004”=\>“7281.62”, “week”=\>“01”, “2005”=\>“11847.90”, “2006”=\>“17813.10”…

---

## [Application.rhtml multiple render/include output from differ](https://www.ruby-forum.com/t/application-rhtml-multiple-render-include-output-from-differ/91411)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 8, 2007, 7:27pm UTC](https://www.ruby-forum.com/t/application-rhtml-multiple-render-include-output-from-differ/91411 "2007-04-08T19:27:58Z")

</div>

i have cms\_controller.rb and project\_controller.rb default layout is application.rhtml default route is to cms/showid/1 i also want to inlclude project/list2 (little table of my latest work) at application.rhtml even…

---

## [Attachment\_fu + S3 - re-save problem](https://www.ruby-forum.com/t/attachment-fu-s3-re-save-problem/91395)

<div class="topic-metadata">

**Author:** [@sness](https://www.ruby-forum.com/u/sness)\
**Replies:** 1\
**Last updated:** [April 8, 2007, 6:52pm UTC](https://www.ruby-forum.com/t/attachment-fu-s3-re-save-problem/91395 "2007-04-08T18:52:41Z")

</div>

Hi, I’m using attachment\_fu with S3 storage, and am running into a problem: When I first save the image to S3, it gets uploaded fine. When I try to change the image with: @image = Image.find\_by\_id(params\[:id\]) || …

---

## [Ajax problem - works once, but not again](https://www.ruby-forum.com/t/ajax-problem-works-once-but-not-again/91368)

<div class="topic-metadata">

**Author:** [@zavulon](https://www.ruby-forum.com/u/zavulon)\
**Replies:** 3\
**Last updated:** [April 8, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/ajax-problem-works-once-but-not-again/91368 "2007-04-08T16:26:43Z")

</div>

Hi all, I have a problem with render partial and all that good stuff. I have a link that updates a number (increment rating) when clicked in an Ajaxy-way, without need to refresh. Clicking it for the first time works …

---

## [Why are we so productive with Rails?](https://www.ruby-forum.com/t/why-are-we-so-productive-with-rails/91204)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 4\
**Last updated:** [April 8, 2007, 1:38pm UTC](https://www.ruby-forum.com/t/why-are-we-so-productive-with-rails/91204 "2007-04-08T13:38:15Z")

</div>

We’ve been using Rails here at 82ASK for over a year, and we love it. We’re much more productive in Rails than we were before we switched. I’ve been thinking recently about why, exactly, we’re so productive in Rails. …

---

## [Can i force a favicon.ico?](https://www.ruby-forum.com/t/can-i-force-a-favicon-ico/82127)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 8\
**Last updated:** [April 8, 2007, 1:23pm UTC](https://www.ruby-forum.com/t/can-i-force-a-favicon-ico/82127 "2007-04-08T13:23:29Z")

</div>

lo there all, i am running two websites on one server. Both use the same code and both domains point to the same public folder. I use different logos by using a session variable called session\[:domain\] that i find wit…

---

## [Acts\_as\_subversion spotted](https://www.ruby-forum.com/t/acts-as-subversion-spotted/91401)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 0\
**Last updated:** [April 8, 2007, 12:30pm UTC](https://www.ruby-forum.com/t/acts-as-subversion-spotted/91401 "2007-04-08T12:30:12Z")

</div>

Didn’t see this posted yet, so I thought I’d drum up some traffic for a new acts\_as\_subversion plugin: http://www.oneofthewolves.com/2007/04/02/acts-as-subversioned-01-released-on-rubyforge/ Haven’t looked at the code…

---

## [Attachment\_fu file upload optional in 'new' view?](https://www.ruby-forum.com/t/attachment-fu-file-upload-optional-in-new-view/91394)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 1\
**Last updated:** [April 8, 2007, 12:12pm UTC](https://www.ruby-forum.com/t/attachment-fu-file-upload-optional-in-new-view/91394 "2007-04-08T12:12:12Z")

</div>

In my ‘new’ view for an Item object, the user can upload a picture of the item. How can I make the upload optional (while creating the new item)? I’m using REST and this is a portion of what my controller looks like t…

---

## [\[OT\] New old-car website looking for beta testers](https://www.ruby-forum.com/t/ot-new-old-car-website-looking-for-beta-testers/91069)

<div class="topic-metadata">

**Author:** [@cwt137](https://www.ruby-forum.com/u/cwt137)\
**Replies:** 2\
**Last updated:** [April 8, 2007, 12:06pm UTC](https://www.ruby-forum.com/t/ot-new-old-car-website-looking-for-beta-testers/91069 "2007-04-08T12:06:11Z")

</div>

Apologies for the OT and arguably ADV post. I’m close to releasing my first full-scale rails app, and am looking for beta testers. The site is for people with old cars (cars over 20 years old), so if any of you fit in…

---

## [I'm looking for Ruby Developers](https://www.ruby-forum.com/t/im-looking-for-ruby-developers/91398)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 8, 2007, 11:35am UTC](https://www.ruby-forum.com/t/im-looking-for-ruby-developers/91398 "2007-04-08T11:35:09Z")

</div>

Hi to all Members of the Group! I am an ProjectManager from Ukraine. We are making a Social Network for Kyiv youth in Ukraine. We are looking for Developers on the Ruby on Rails Framework. We are a non-profit organiz…

---

## [Setting shourtcuts keys](https://www.ruby-forum.com/t/setting-shourtcuts-keys/91203)

<div class="topic-metadata">

**Author:** [@Edgar\_O](https://www.ruby-forum.com/u/Edgar_O)\
**Replies:** 2\
**Last updated:** [April 8, 2007, 10:09am UTC](https://www.ruby-forum.com/t/setting-shourtcuts-keys/91203 "2007-04-08T10:09:05Z")

</div>

Is there anyway that i could manage, the keys the user press?? I ask because i am doing an invoice system, and i want to make the datagrid more friendly. for example I want when the user press key up, the cursor go on…

---

## [Why would BlueCloth use an EscapeTable of MD5 hash values?](https://www.ruby-forum.com/t/why-would-bluecloth-use-an-escapetable-of-md5-hash-values/91396)

<div class="topic-metadata">

**Author:** [@Ruby.Me.Silly](https://www.ruby-forum.com/u/Ruby.Me.Silly)\
**Replies:** 0\
**Last updated:** [April 8, 2007, 7:33am UTC](https://www.ruby-forum.com/t/why-would-bluecloth-use-an-escapetable-of-md5-hash-values/91396 "2007-04-08T07:33:57Z")

</div>

I was looking at the source code to BlueCloth and came across the following lines of code: Table of MD5 sums for escaped characters EscapeTable = {} ‘\\\`\*\_{}#.!’.split(//).each {|char| hash = Digest::MD5::hexdigest( c…

---

## [\[ANN\] The MOle plugin](https://www.ruby-forum.com/t/ann-the-mole-plugin/91392)

<div class="topic-metadata">

**Author:** [@kitesurfer](https://www.ruby-forum.com/u/kitesurfer)\
**Replies:** 0\
**Last updated:** [April 8, 2007, 6:09am UTC](https://www.ruby-forum.com/t/ann-the-mole-plugin/91392 "2007-04-08T06:09:30Z")

</div>

Finding yourself tailing your production logs to find out what your customers are doing with your freshly deployed application and how it’s performing ? The MOle allows your to capture and record the exact user inter…

---

## [@request problem in functional tests](https://www.ruby-forum.com/t/request-problem-in-functional-tests/91388)

<div class="topic-metadata">

**Author:** [@crossblaim](https://www.ruby-forum.com/u/crossblaim)\
**Replies:** 2\
**Last updated:** [April 8, 2007, 5:25am UTC](https://www.ruby-forum.com/t/request-problem-in-functional-tests/91388 "2007-04-08T05:25:52Z")

</div>

hi, I’m using edge rails, ruby 1.8.6 on osx. if I write a method like: @request.session\[:user\] = 3 more than in one method the script just quits, I must use it once in the entire test file : it can be considerered …

---

## [Attachment\_fu File System Storage Change - Update?](https://www.ruby-forum.com/t/attachment-fu-file-system-storage-change-update/91277)

<div class="topic-metadata">

**Author:** [@hunter\_h](https://www.ruby-forum.com/u/hunter_h)\
**Replies:** 1\
**Last updated:** [April 8, 2007, 4:45am UTC](https://www.ruby-forum.com/t/attachment-fu-file-system-storage-change-update/91277 "2007-04-08T04:45:50Z")

</div>

Howdy, It looks like one of the recent updates to attachment\_fu has changed the way it names/stores files in the filesystem. I’m guessing it was this one: add default ID partitioning for attachments Anyway, my file…

---

## [Select html for habtm](https://www.ruby-forum.com/t/select-html-for-habtm/91386)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 0\
**Last updated:** [April 8, 2007, 2:47am UTC](https://www.ruby-forum.com/t/select-html-for-habtm/91386 "2007-04-08T02:47:44Z")

</div>

How does one use a for a habtm field? I’m having trouble getting it to work. Here’s my html: Project \<%= options\_from\_collection\_for\_select(@all\_projects, :id, :name, @selected\_projects) %\> …

---

## [Optional model relations](https://www.ruby-forum.com/t/optional-model-relations/91382)

<div class="topic-metadata">

**Author:** [@azazel](https://www.ruby-forum.com/u/azazel)\
**Replies:** 1\
**Last updated:** [April 8, 2007, 2:27am UTC](https://www.ruby-forum.com/t/optional-model-relations/91382 "2007-04-08T02:27:43Z")

</div>

I’m currently working on an application and have a bit of a problem with relations. The models Im working on right now are: User and Document User has many documents Documents always belong to one user The thing is,…

---

## [\[ANN\] Plugin packs at the plugin directory](https://www.ruby-forum.com/t/ann-plugin-packs-at-the-plugin-directory/91383)

<div class="topic-metadata">

**Author:** [@Benjamin\_C](https://www.ruby-forum.com/u/Benjamin_C)\
**Replies:** 0\
**Last updated:** [April 8, 2007, 2:26am UTC](https://www.ruby-forum.com/t/ann-plugin-packs-at-the-plugin-directory/91383 "2007-04-08T02:26:43Z")

</div>

Do you find yourself installing the same set of plugins again and again? Geoffrey Grosenbach, Luke R., and I have made your life a little easier (by creating RaPT, plugin packs, and the Rails plugin directory, respec…

---

## [\[ANN\] PluginAWeek: fixture\_references - Clean up your fixtur](https://www.ruby-forum.com/t/ann-pluginaweek-fixture-references-clean-up-your-fixtur/91381)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [April 8, 2007, 12:00am UTC](https://www.ruby-forum.com/t/ann-pluginaweek-fixture-references-clean-up-your-fixtur/91381 "2007-04-08T00:00:34Z")

</div>

Hey all, Just announcing a new plugin… fixture\_references - Adds support for referencing external fixtures (by name) from within a fixture definition. Example: departments.yml: \<% fixtures :employees id = 0 %\> p…

---

## [Functional test question](https://www.ruby-forum.com/t/functional-test-question/91378)

<div class="topic-metadata">

**Author:** [@jeet](https://www.ruby-forum.com/u/jeet)\
**Replies:** 2\
**Last updated:** [April 7, 2007, 11:46pm UTC](https://www.ruby-forum.com/t/functional-test-question/91378 "2007-04-07T23:46:33Z")

</div>

I have a view that passes two params hashes (:user and :school) to my controller action. In the functional test for the controller action, how do pass these two hashes? I tried the following that did not work get(:cr…

---

## [How to make a wap version?](https://www.ruby-forum.com/t/how-to-make-a-wap-version/91377)

<div class="topic-metadata">

**Author:** [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Replies:** 1\
**Last updated:** [April 7, 2007, 9:44pm UTC](https://www.ruby-forum.com/t/how-to-make-a-wap-version/91377 "2007-04-07T21:44:25Z")

</div>

Hi, How can I make a wap page with some data shown in a form. Form will have some links and the form has to be submitted to the server with some data picked up from the links. Now I can easily do this in rhtml using …

---

## [Cache sweeping and render\_component (my mistake or Rails bug](https://www.ruby-forum.com/t/cache-sweeping-and-render-component-my-mistake-or-rails-bug/68479)

<div class="topic-metadata">

**Author:** [@andrzej](https://www.ruby-forum.com/u/andrzej)\
**Replies:** 2\
**Last updated:** [April 7, 2007, 9:00pm UTC](https://www.ruby-forum.com/t/cache-sweeping-and-render-component-my-mistake-or-rails-bug/68479 "2007-04-07T21:00:22Z")

</div>

Hi I’m working on a program which relies on heavy cache sweeper usage. I’ve just bumped onto an odd problem. When using render\_component method in layouts or templates with cache sweeping turned on, Rails throws an e…

---

## [Undefined Method 'rewrite' when calling link\_to](https://www.ruby-forum.com/t/undefined-method-rewrite-when-calling-link-to/91352)

<div class="topic-metadata">

**Author:** [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Replies:** 1\
**Last updated:** [April 7, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/undefined-method-rewrite-when-calling-link-to/91352 "2007-04-07T19:24:34Z")

</div>

Whenever I try to pass an options hash to the link\_to method (or url\_for, or button\_to) I get this error: undefined method \`rewrite’ for \[\]:ActionController::Routing::PathSegment::Result The trace ends with /usr/loc…

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

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