# Rails

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

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

---

## [Newbie implementing one to many many to one relationship](https://www.ruby-forum.com/t/newbie-implementing-one-to-many-many-to-one-relationship/182927)

<div class="topic-metadata">

**Author:** [@mondegren](https://www.ruby-forum.com/u/mondegren)\
**Replies:** 0\
**Last updated:** [February 4, 2010, 9:49pm UTC](https://www.ruby-forum.com/t/newbie-implementing-one-to-many-many-to-one-relationship/182927 "2010-02-04T21:49:56Z")

</div>

I am attempting to tie a Project to Projectparts to Parts and I believe the relationship should be one-to-many, then many-to-one. My goal is to build the Parts table so that this table can grow and the Parts descrip…

---

## [Suggestions on how to support user-customizable views and forms?](https://www.ruby-forum.com/t/suggestions-on-how-to-support-user-customizable-views-and-forms/182923)

<div class="topic-metadata">

**Author:** [@JeffV](https://www.ruby-forum.com/u/JeffV)\
**Replies:** 0\
**Last updated:** [February 4, 2010, 9:13pm UTC](https://www.ruby-forum.com/t/suggestions-on-how-to-support-user-customizable-views-and-forms/182923 "2010-02-04T21:13:38Z")

</div>

I’ve searched the archives and googled and can’t find much on this. I need to allow an app admin the ability to define the layout of various views (and eventually various forms). The admin should be able to specify ea…

---

## [Suggestions on how to support user-customizable views and forms?](https://www.ruby-forum.com/t/suggestions-on-how-to-support-user-customizable-views-and-forms/182922)

<div class="topic-metadata">

**Author:** [@JeffV](https://www.ruby-forum.com/u/JeffV)\
**Replies:** 0\
**Last updated:** [February 4, 2010, 9:07pm UTC](https://www.ruby-forum.com/t/suggestions-on-how-to-support-user-customizable-views-and-forms/182922 "2010-02-04T21:07:47Z")

</div>

I’ve searched the archives and googled and can’t find much on this. I need to allow an app admin to be able to define the layout of various views (and eventually various forms). The admin should be able to specify a r…

---

## [Administrative task in Rails](https://www.ruby-forum.com/t/administrative-task-in-rails/182364)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 7\
**Last updated:** [February 4, 2010, 8:49pm UTC](https://www.ruby-forum.com/t/administrative-task-in-rails/182364 "2010-02-04T20:49:38Z")

</div>

I have an administrative task that I need to run once a day: I need to iterate through each user in the User table in the database, do some calculation involving some other models, and update each user record in the …

---

## [Checking column in table to see if value exists?](https://www.ruby-forum.com/t/checking-column-in-table-to-see-if-value-exists/182915)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 3\
**Last updated:** [February 4, 2010, 8:42pm UTC](https://www.ruby-forum.com/t/checking-column-in-table-to-see-if-value-exists/182915 "2010-02-04T20:42:20Z")

</div>

Hey all, What if I want to check a column in a table to see if a value exists and if it doesn’t, then update the existing record with the specified value and if it does exist increment by 1 from the previous increment…

---

## [VPS Hosting for Rails Apps](https://www.ruby-forum.com/t/vps-hosting-for-rails-apps/182919)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 3\
**Last updated:** [February 4, 2010, 8:38pm UTC](https://www.ruby-forum.com/t/vps-hosting-for-rails-apps/182919 "2010-02-04T20:38:17Z")

</div>

Hi, I’ve been playing around with Rails for a while now and have created several apps on my local (ubuntu) machine. I would now like to look into hosting solutions for these apps, however my current host only offers…

---

## [Preload test data from factory\_girl](https://www.ruby-forum.com/t/preload-test-data-from-factory-girl/182872)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 2\
**Last updated:** [February 4, 2010, 7:55pm UTC](https://www.ruby-forum.com/t/preload-test-data-from-factory-girl/182872 "2010-02-04T19:55:00Z")

</div>

Is there a way to preload common data made by factory\_girl to speed up tests instead of recreating these common data at the beginning of every test. For example, I want to have 10 users premade at the beginning of ev…

---

## [Has\_many with 3 models](https://www.ruby-forum.com/t/has-many-with-3-models/182867)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 3\
**Last updated:** [February 4, 2010, 7:52pm UTC](https://www.ruby-forum.com/t/has-many-with-3-models/182867 "2010-02-04T19:52:05Z")

</div>

Hi, I have the following 3 models. User , Relationship\_type, and Link. User has\_many :relationship\_types Relationship\_type belongs\_to :users has\_many :links Link belongs\_to :relationship\_type The Link model…

---

## [Resumable Upload in Ruby on Rails](https://www.ruby-forum.com/t/resumable-upload-in-ruby-on-rails/182914)

<div class="topic-metadata">

**Author:** [@adeel\_bm](https://www.ruby-forum.com/u/adeel_bm)\
**Replies:** 0\
**Last updated:** [February 4, 2010, 7:16pm UTC](https://www.ruby-forum.com/t/resumable-upload-in-ruby-on-rails/182914 "2010-02-04T19:16:32Z")

</div>

Hi, I have been searching for a way for resumable file upload in RoR. In conclusion, I found out other than Java Applet no client-side-and-cross-platform agent can access the file system in such a way that to request…

---

## [Testing response for named routes in integration tests](https://www.ruby-forum.com/t/testing-response-for-named-routes-in-integration-tests/182902)

<div class="topic-metadata">

**Author:** [@asetzler](https://www.ruby-forum.com/u/asetzler)\
**Replies:** 3\
**Last updated:** [February 4, 2010, 6:33pm UTC](https://www.ruby-forum.com/t/testing-response-for-named-routes-in-integration-tests/182902 "2010-02-04T18:33:08Z")

</div>

In integration tests, you can test the response of the server given a url\_for\_options hash, like so: get(:action, :param1 =\> “one”, :param2 =\> “two”, …) assert\_response :success However, this doesn’t work with a name…

---

## [Fastes database server for](https://www.ruby-forum.com/t/fastes-database-server-for/182896)

<div class="topic-metadata">

**Author:** [@pubclub](https://www.ruby-forum.com/u/pubclub)\
**Replies:** 6\
**Last updated:** [February 4, 2010, 6:09pm UTC](https://www.ruby-forum.com/t/fastes-database-server-for/182896 "2010-02-04T18:09:39Z")

</div>

Hi, I’m currently building a small rails application that needs to store web traffic information. Similar to google analytics and clicky. (but simpler) It needs to store refer domains and visitors. Integration goes t…

---

## [Customize active record attribute display name in error message](https://www.ruby-forum.com/t/customize-active-record-attribute-display-name-in-error-message/176190)

<div class="topic-metadata">

**Author:** [@drewB](https://www.ruby-forum.com/u/drewB)\
**Replies:** 13\
**Last updated:** [February 4, 2010, 3:27pm UTC](https://www.ruby-forum.com/t/customize-active-record-attribute-display-name-in-error-message/176190 "2010-02-04T15:27:03Z")

</div>

Is there an easy way to customize the display name of the attributed used in a validation error message. For example, let’s say I have an active record with the attribute :msg that is validated for presence. If is do…

---

## [Effigy for views?](https://www.ruby-forum.com/t/effigy-for-views/182900)

<div class="topic-metadata">

**Author:** [@marnen](https://www.ruby-forum.com/u/marnen)\
**Replies:** 0\
**Last updated:** [February 4, 2010, 3:15pm UTC](https://www.ruby-forum.com/t/effigy-for-views/182900 "2010-02-04T15:15:15Z")

</div>

Hey there! Has anyone been using Effigy ( GitHub - jferris/effigy: Ruby views without a templating language ) with Rails? It looks very interesting and I think I’m going to play with it, but I just wanted to know if …

---

## [View configuration](https://www.ruby-forum.com/t/view-configuration/182897)

<div class="topic-metadata">

**Author:** [@beny18241](https://www.ruby-forum.com/u/beny18241)\
**Replies:** 4\
**Last updated:** [February 4, 2010, 3:08pm UTC](https://www.ruby-forum.com/t/view-configuration/182897 "2010-02-04T15:08:38Z")

</div>

Hi, I have a list of things in my application (let it be list with something to borrow). I wanted to change in css and view something. I wanted to see row with has one field empty (let us say it will be given back d…

---

## [Very simple Globalize1 view translation compatibility layer](https://www.ruby-forum.com/t/very-simple-globalize1-view-translation-compatibility-layer/182898)

<div class="topic-metadata">

**Author:** [@malesca](https://www.ruby-forum.com/u/malesca)\
**Replies:** 0\
**Last updated:** [February 4, 2010, 2:35pm UTC](https://www.ruby-forum.com/t/very-simple-globalize1-view-translation-compatibility-layer/182898 "2010-02-04T14:35:24Z")

</div>

Here: Globalize1 view translation compatibility layer for Rails i18n. · GitHub Makes String#t and String#/ work mostly like they do in Globalize1, without having Globalize1 installed. Useful if you’re moving to Rails …

---

## [No such file to load -- ferret](https://www.ruby-forum.com/t/no-such-file-to-load-ferret/180637)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 3\
**Last updated:** [February 4, 2010, 2:21pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-ferret/180637 "2010-02-04T14:21:41Z")

</div>

Hi there, I’m just trying to deploy my very 1st app to my vhost, and i’m getting an error on the phusion passenger page: no such file to load – ferret now everything worked fine in development. DO i need to reinsta…

---

## [Calling remote url application from controller](https://www.ruby-forum.com/t/calling-remote-url-application-from-controller/182875)

<div class="topic-metadata">

**Author:** [@tiwaripk](https://www.ruby-forum.com/u/tiwaripk)\
**Replies:** 7\
**Last updated:** [February 4, 2010, 12:54pm UTC](https://www.ruby-forum.com/t/calling-remote-url-application-from-controller/182875 "2010-02-04T12:54:22Z")

</div>

I have two rails application. On clicking a link on Application 1’s index.html.rb page I wish to do some processing like retreiving info about the selected record from DB. and then make a call to a different rails app…

---

## [Encrypt a user password using "Authlogic"](https://www.ruby-forum.com/t/encrypt-a-user-password-using-authlogic/182887)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 2\
**Last updated:** [February 4, 2010, 12:49pm UTC](https://www.ruby-forum.com/t/encrypt-a-user-password-using-authlogic/182887 "2010-02-04T12:49:21Z")

</div>

Hi, I have a csv file which have the user detail. I want to migrate this information into the “users” table. My application use “Authlogic” for user aunthentication so I have to encrypt the password during migration.…

---

## [Running scripts in rails](https://www.ruby-forum.com/t/running-scripts-in-rails/182893)

<div class="topic-metadata">

**Author:** [@cgsfree](https://www.ruby-forum.com/u/cgsfree)\
**Replies:** 1\
**Last updated:** [February 4, 2010, 12:42pm UTC](https://www.ruby-forum.com/t/running-scripts-in-rails/182893 "2010-02-04T12:42:08Z")

</div>

Hi there. I’ve got a Rails 2.2.2 app running with a monkey patch, (for enable/disable tls in actionmailer) this patch executes perfectly, but not in scripts in production ENV This is the monkey patch in environment.r…

---

## [Design Advice](https://www.ruby-forum.com/t/design-advice/182843)

<div class="topic-metadata">

**Author:** [@jooma2](https://www.ruby-forum.com/u/jooma2)\
**Replies:** 4\
**Last updated:** [February 4, 2010, 10:56am UTC](https://www.ruby-forum.com/t/design-advice/182843 "2010-02-04T10:56:38Z")

</div>

Trying to think of the cleanest way to implement this. I’m writing out the Schema for an internal application which involves Sales people requesting Production Orders from Production People. If someone’s just a sales …

---

## [Rails Edge: gem bundle error](https://www.ruby-forum.com/t/rails-edge-gem-bundle-error/182865)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [February 4, 2010, 3:46am UTC](https://www.ruby-forum.com/t/rails-edge-gem-bundle-error/182865 "2010-02-04T03:46:49Z")

</div>

Hi. Having installed Ruby 1.9 from source, I decided to have a look at Rails3 aka Rails edge from git. Therefore, I followed wycats instructions (http://weblog.rubyonrails.org/2010/1/1/getting-a-new-app- running-on-e…

---

## [Rails and Merb session key and secret](https://www.ruby-forum.com/t/rails-and-merb-session-key-and-secret/182661)

<div class="topic-metadata">

**Author:** [@NYNYNY](https://www.ruby-forum.com/u/NYNYNY)\
**Replies:** 4\
**Last updated:** [February 4, 2010, 3:00am UTC](https://www.ruby-forum.com/t/rails-and-merb-session-key-and-secret/182661 "2010-02-04T03:00:00Z")

</div>

Hi, I have two apps, one in Rails, and one in Merb. Both use cookie based session store, and are in the same domain. I set the session key and secret to be exactly the same in both apps, but they don’t seem to get th…

---

## [Best way to generate static pages](https://www.ruby-forum.com/t/best-way-to-generate-static-pages/182820)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 8\
**Last updated:** [February 4, 2010, 2:57am UTC](https://www.ruby-forum.com/t/best-way-to-generate-static-pages/182820 "2010-02-04T02:57:04Z")

</div>

hi, guys I tried using Thoughtbot’s High-Voltage to generate static pages in my app. For some reason, I can’t seem to make it work cause it keeps redirecting to one of my search pages. Anyway, I can’t seem to find mo…

---

## [Plugin help](https://www.ruby-forum.com/t/plugin-help/182862)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 3\
**Last updated:** [February 4, 2010, 2:08am UTC](https://www.ruby-forum.com/t/plugin-help/182862 "2010-02-04T02:08:30Z")

</div>

I am trying to do an active record find method. When I call it from the console it says method\_missing. Ideas? init.rb require ‘find\_by\_like’ ActiveRecord::Base.send(:include, CH::FIND::LIKE find\_by\_like.rb modul…

---

## [Missing controller actions from plugin](https://www.ruby-forum.com/t/missing-controller-actions-from-plugin/182864)

<div class="topic-metadata">

**Author:** [@Jedrin](https://www.ruby-forum.com/u/Jedrin)\
**Replies:** 0\
**Last updated:** [February 4, 2010, 12:31am UTC](https://www.ruby-forum.com/t/missing-controller-actions-from-plugin/182864 "2010-02-04T00:31:20Z")

</div>

I am having a problem in that the url /map/del\_selected\_geo give me an error Unknown action No action responded to del\_selected\_geo. Actions: get\_links and index but if I go into console it seems to be there: ctl = …

---

## [Initial insert of data](https://www.ruby-forum.com/t/initial-insert-of-data/182860)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 2\
**Last updated:** [February 4, 2010, 12:07am UTC](https://www.ruby-forum.com/t/initial-insert-of-data/182860 "2010-02-04T00:07:54Z")

</div>

hi, i need to insert various records (system records) into various tables after the initial login/creation of a new user. what would be the best way of accomplishing that since i need to insert as well the user\_id in…

---

## [Add multiple objects at once](https://www.ruby-forum.com/t/add-multiple-objects-at-once/182857)

<div class="topic-metadata">

**Author:** [@babbu452002](https://www.ruby-forum.com/u/babbu452002)\
**Replies:** 1\
**Last updated:** [February 3, 2010, 10:41pm UTC](https://www.ruby-forum.com/t/add-multiple-objects-at-once/182857 "2010-02-03T22:41:34Z")

</div>

Hi, I am new to Ruby and rails in general. As of now, I just have a create method in my controller which creates only one user. I want to add multiple users at once in a views. For example, I should be able to have 5…

---

## [Need shopping cart for social Rails app - Spree vs substruct vs roll my own](https://www.ruby-forum.com/t/need-shopping-cart-for-social-rails-app-spree-vs-substruct-vs-roll-my-own/182748)

<div class="topic-metadata">

**Author:** [@openmind](https://www.ruby-forum.com/u/openmind)\
**Replies:** 1\
**Last updated:** [February 3, 2010, 10:30pm UTC](https://www.ruby-forum.com/t/need-shopping-cart-for-social-rails-app-spree-vs-substruct-vs-roll-my-own/182748 "2010-02-03T22:30:09Z")

</div>

Hi all, I’m building what could best be described as a variant of Threadless.com. Basically, it’s a social app that requires some non- trivial social capabilities, combined with a shopping area for making purchases o…

---

## [Simple captcha image not displaying](https://www.ruby-forum.com/t/simple-captcha-image-not-displaying/182503)

<div class="topic-metadata">

**Author:** [@christine16](https://www.ruby-forum.com/u/christine16)\
**Replies:** 4\
**Last updated:** [February 3, 2010, 10:26pm UTC](https://www.ruby-forum.com/t/simple-captcha-image-not-displaying/182503 "2010-02-03T22:26:51Z")

</div>

Attached is an image of my problem but here goes. Installed RoR to run Raillist. I installed it per instructions and everything seems to be working great except I can’t get my captcha images to show I am not sure wha…

---

## [Role of options={}?](https://www.ruby-forum.com/t/role-of-options/182852)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 4\
**Last updated:** [February 3, 2010, 10:20pm UTC](https://www.ruby-forum.com/t/role-of-options/182852 "2010-02-03T22:20:12Z")

</div>

Hey all, Can’t find a good explanation of options={}. Specifically I’m not sure of its role in this given line of code: helper file: def render\_show\_actions(resource, actions, options={}) commands = actions.map do |…

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

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