# Rails

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

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

---

## [\[ANN\] Lone Star Ruby Conference 2008 - Registration Now Open](https://www.ruby-forum.com/t/ann-lone-star-ruby-conference-2008-registration-now-open/141957)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 2, 2008, 1:30am UTC](https://www.ruby-forum.com/t/ann-lone-star-ruby-conference-2008-registration-now-open/141957 "2008-07-02T01:30:21Z")

</div>

Greetings The Lone Star Ruby Conference, held in Austin, TX on September 4-6, is NOW OPEN for registration. This year we have an amazing line-up of speakers, in addition to Matz, the author of Ruby. We have even ad…

---

## [Cache Streamed Data](https://www.ruby-forum.com/t/cache-streamed-data/141829)

<div class="topic-metadata">

**Author:** [@Mike\_Deck](https://www.ruby-forum.com/u/Mike_Deck)\
**Replies:** 2\
**Last updated:** [July 2, 2008, 12:01am UTC](https://www.ruby-forum.com/t/cache-streamed-data/141829 "2008-07-02T00:01:27Z")

</div>

I’m writing an app that does a lot of data visualization using RMagick. Most of the pages in my app are pretty basic with a few textual descriptions of the data and then a bunch of img tags linking to other actions t…

---

## [Validation limit values](https://www.ruby-forum.com/t/validation-limit-values/141948)

<div class="topic-metadata">

**Author:** [@billv](https://www.ruby-forum.com/u/billv)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/validation-limit-values/141948 "2008-07-01T23:56:10Z")

</div>

Hi, Is there a way to set the validate\_numericality\_of limit to a variable passed in from the controller? I have this model: class Vision \< ActiveRecord::Base belongs\_to :employee belongs\_to :users validates\_numer…

---

## [Problem with remote\_function and firefox 3](https://www.ruby-forum.com/t/problem-with-remote-function-and-firefox-3/141947)

<div class="topic-metadata">

**Author:** [@walksalong](https://www.ruby-forum.com/u/walksalong)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/problem-with-remote-function-and-firefox-3/141947 "2008-07-01T23:56:10Z")

</div>

Anyone else having problems with remote\_function and firefox 3? It doesn’t seem to make the AJAX call and firebug doesn’t offer any info. Doesn’t reach the controller. Works ok in Firefox 2. Thanks \<% remote\_function…

---

## [Http method for link\_to\_remote](https://www.ruby-forum.com/t/http-method-for-link-to-remote/141946)

<div class="topic-metadata">

**Author:** [@markmt](https://www.ruby-forum.com/u/markmt)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/http-method-for-link-to-remote/141946 "2008-07-01T23:55:00Z")

</div>

Hi, I have two nested resources in routes.rb - map.resources :subscriptions do |subscription| subscription.resources :users end and I’m using link\_to\_remote to create a new “user” as follows - \<%= link\_to\_remote “N…

---

## [Problem with RedCloth](https://www.ruby-forum.com/t/problem-with-redcloth/141938)

<div class="topic-metadata">

**Author:** [@html-kurs](https://www.ruby-forum.com/u/html-kurs)\
**Replies:** 2\
**Last updated:** [July 1, 2008, 11:21pm UTC](https://www.ruby-forum.com/t/problem-with-redcloth/141938 "2008-07-01T23:21:37Z")

</div>

Hi, I want to run railscasts to see how Ryan did the code. So I downloaded the code from GitHub - ryanb/railscasts-episodes: NOT MAINTAINED. See README.. I need to install RedCloth. It seems to be required for railsca…

---

## [Looking for UPS or FedEx api to calculate shipping rates](https://www.ruby-forum.com/t/looking-for-ups-or-fedex-api-to-calculate-shipping-rates/141921)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 11\
**Last updated:** [July 1, 2008, 11:07pm UTC](https://www.ruby-forum.com/t/looking-for-ups-or-fedex-api-to-calculate-shipping-rates/141921 "2008-07-01T23:07:46Z")

</div>

I found one for fedex, but it seems to be geared for com+ objects on an IIS server, and the only one that I have found for UPS is for the US only. Does anyone know of any others? Thanks

---

## [Redirect\_to not working](https://www.ruby-forum.com/t/redirect-to-not-working/141918)

<div class="topic-metadata">

**Author:** [@nateleavitt](https://www.ruby-forum.com/u/nateleavitt)\
**Replies:** 8\
**Last updated:** [July 1, 2008, 10:14pm UTC](https://www.ruby-forum.com/t/redirect-to-not-working/141918 "2008-07-01T22:14:43Z")

</div>

Hi… I have a basic authentication system. I have a RESTful resource called session with the following code when logging in: def new end def create user = User.authenticate(params\[:username\], params\[:password\]) res…

---

## [Models without primary key; n-ary associations](https://www.ruby-forum.com/t/models-without-primary-key-n-ary-associations/136216)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 12\
**Last updated:** [July 1, 2008, 9:33pm UTC](https://www.ruby-forum.com/t/models-without-primary-key-n-ary-associations/136216 "2008-07-01T21:33:35Z")

</div>

Today for the second time in a short while I’ve come upon a case where I’d like to have a “model” without a primary key. Instances of such a model wouldn’t have an identity above the unique combination of (part of) th…

---

## [Installing a Plugin from a Local Directory](https://www.ruby-forum.com/t/installing-a-plugin-from-a-local-directory/141930)

<div class="topic-metadata">

**Author:** [@Joe\_K](https://www.ruby-forum.com/u/Joe_K)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 9:25pm UTC](https://www.ruby-forum.com/t/installing-a-plugin-from-a-local-directory/141930 "2008-07-01T21:25:23Z")

</div>

I am working on writing a simple plugin basically just to understand how to do it. My whole project is in svn and I did a script/generate plugin. I added a module in lib and a .js that needs to be moved to public. I h…

---

## [Rake question](https://www.ruby-forum.com/t/rake-question/141923)

<div class="topic-metadata">

**Author:** [@pkoebbe](https://www.ruby-forum.com/u/pkoebbe)\
**Replies:** 5\
**Last updated:** [July 1, 2008, 9:09pm UTC](https://www.ruby-forum.com/t/rake-question/141923 "2008-07-01T21:09:25Z")

</div>

I’ve searched this group and google, but have not found the answer to my question. If there is a post about it somewhere, I’d greatly appreciate a link. I also started to dig into the rake code, but, frankly, didn’t u…

---

## [Oneclick installer -- which rails version?](https://www.ruby-forum.com/t/oneclick-installer-which-rails-version/141911)

<div class="topic-metadata">

**Author:** [@lazylester](https://www.ruby-forum.com/u/lazylester)\
**Replies:** 1\
**Last updated:** [July 1, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/oneclick-installer-which-rails-version/141911 "2008-07-01T20:12:05Z")

</div>

I’m trying to match my development environment to the host which is unfortunately significantly out-of-date (thanks, GoDaddy!) I can’t find anywhere the list of which Rails versions are included in the oneclick instal…

---

## [Sorting columns in my view](https://www.ruby-forum.com/t/sorting-columns-in-my-view/136131)

<div class="topic-metadata">

**Author:** [@jtoly](https://www.ruby-forum.com/u/jtoly)\
**Replies:** 3\
**Last updated:** [July 1, 2008, 8:09pm UTC](https://www.ruby-forum.com/t/sorting-columns-in-my-view/136131 "2008-07-01T20:09:04Z")

</div>

What’s the current method for having column headings that when you click on them, sort your view according to that column heading? I used the sortable\_columns plug in in the past, but it seems a force-fit for Rails 2…

---

## [Unsigned column](https://www.ruby-forum.com/t/unsigned-column/91472)

<div class="topic-metadata">

**Author:** [@Julien\_Ammous](https://www.ruby-forum.com/u/Julien_Ammous)\
**Replies:** 3\
**Last updated:** [July 1, 2008, 8:05pm UTC](https://www.ruby-forum.com/t/unsigned-column/91472 "2008-07-01T20:05:01Z")

</div>

Hi, I can’t manage to get an unsigned int column with activerecord migration, I am using this definition: create\_table :emails, :use\_big\_id =\> true do |t| t.column “destination”, :string, :limit =\> 60, :null =\> false …

---

## [Issue with Memcache session store setup..Rails 2.1](https://www.ruby-forum.com/t/issue-with-memcache-session-store-setup-rails-2-1/140119)

<div class="topic-metadata">

**Author:** [@mrkohrea](https://www.ruby-forum.com/u/mrkohrea)\
**Replies:** 2\
**Last updated:** [July 1, 2008, 7:13pm UTC](https://www.ruby-forum.com/t/issue-with-memcache-session-store-setup-rails-2-1/140119 "2008-07-01T19:13:39Z")

</div>

Hello All- I’ve been using the memcache session store sucessfully since rails 2.0, but after starting a new app with v 2.1 I’m getting the following error at each page request: loading from application: home\_controll…

---

## [Mocking global variables in rspec](https://www.ruby-forum.com/t/mocking-global-variables-in-rspec/141910)

<div class="topic-metadata">

**Author:** [@Reggie\_on\_rails](https://www.ruby-forum.com/u/Reggie_on_rails)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 6:10pm UTC](https://www.ruby-forum.com/t/mocking-global-variables-in-rspec/141910 "2008-07-01T18:10:06Z")

</div>

What’s the best way to mock global variables in rspec? For the model group I would like database interaction. For the controller group I would like to mock the behavior. However it’s failing in the ExampleGroup and d…

---

## [Acts\_as\_audited on ActiveResource](https://www.ruby-forum.com/t/acts-as-audited-on-activeresource/141908)

<div class="topic-metadata">

**Author:** [@chirantan](https://www.ruby-forum.com/u/chirantan)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/acts-as-audited-on-activeresource/141908 "2008-07-01T17:50:45Z")

</div>

I came across this awesome plugin used for auditing models. This is an ActiveRecord extension. However I was wondering if I could tweak it a little to make it work for ActiveResource. In case you haven’t heard about a…

---

## [Category Listing](https://www.ruby-forum.com/t/category-listing/141844)

<div class="topic-metadata">

**Author:** [@Camel](https://www.ruby-forum.com/u/Camel)\
**Replies:** 2\
**Last updated:** [July 1, 2008, 5:27pm UTC](https://www.ruby-forum.com/t/category-listing/141844 "2008-07-01T17:27:17Z")

</div>

Hi there. I’m relatively new to Ruby on Rails, although not to programming in general. I’m attempting to make a sort of classified ad system. I’d like to have a list of my categories with the number of ads in that c…

---

## [Option for categories](https://www.ruby-forum.com/t/option-for-categories/141887)

<div class="topic-metadata">

**Author:** [@torso](https://www.ruby-forum.com/u/torso)\
**Replies:** 2\
**Last updated:** [July 1, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/option-for-categories/141887 "2008-07-01T17:24:22Z")

</div>

Hi I need to do options for categories in view in controller i have action def new\_to\_do @categories = Category.find(:all) end new\_to\_do template contains Category: \<%=options\_from\_collection\_for\_select @categor…

---

## [What is the use of 'abstract\_method'?](https://www.ruby-forum.com/t/what-is-the-use-of-abstract-method/141882)

<div class="topic-metadata">

**Author:** [@rahulonrails](https://www.ruby-forum.com/u/rahulonrails)\
**Replies:** 2\
**Last updated:** [July 1, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/what-is-the-use-of-abstract-method/141882 "2008-07-01T16:54:55Z")

</div>

What is the use of ‘abstract\_method’ in rails? –Rahul

---

## [Help with TinyMCE](https://www.ruby-forum.com/t/help-with-tinymce/83901)

<div class="topic-metadata">

**Author:** [@kim](https://www.ruby-forum.com/u/kim)\
**Replies:** 10\
**Last updated:** [July 1, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/help-with-tinymce/83901 "2008-07-01T16:52:27Z")

</div>

Does anyone have experiance using TinyMCE in ROR? I am creating a CMS type of system. I need text areas that users can add formatted text and links. I installed TinyMCE and it works beautifully when a user is creating…

---

## [Rails Controller](https://www.ruby-forum.com/t/rails-controller/141899)

<div class="topic-metadata">

**Author:** [@sumantacaptain](https://www.ruby-forum.com/u/sumantacaptain)\
**Replies:** 2\
**Last updated:** [July 1, 2008, 4:51pm UTC](https://www.ruby-forum.com/t/rails-controller/141899 "2008-07-01T16:51:59Z")

</div>

i know ruby on rails little bit(but i have to connect mysql with ruby so plz give the details procedure) Plz give me some details abt rails controller… & its contained folders(app,log,public,script,test, temp…) I wan…

---

## [Serving Up Images Rather Than Webpages](https://www.ruby-forum.com/t/serving-up-images-rather-than-webpages/141842)

<div class="topic-metadata">

**Author:** [@lastps](https://www.ruby-forum.com/u/lastps)\
**Replies:** 2\
**Last updated:** [July 1, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/serving-up-images-rather-than-webpages/141842 "2008-07-01T16:50:14Z")

</div>

Paypal allows me to upload an image to customize their payment page. It’s looking for something like: http://mysite.com/my\_image.gif How do I get rails to serve up an image when paypal goes to this address? I made a…

---

## [All your specs r belong to us](https://www.ruby-forum.com/t/all-your-specs-r-belong-to-us/140797)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 16\
**Last updated:** [July 1, 2008, 4:34pm UTC](https://www.ruby-forum.com/t/all-your-specs-r-belong-to-us/140797 "2008-07-01T16:34:21Z")

</div>

I have a confession to make. I still only “dabble” at doing tests for my Rails apps. Well, more than dabble, but not full blown TDD. A year ago, rspec seemed to be taking over the planet with a tsunami of “rails spa…

---

## [Passing Parameter from View to Controller](https://www.ruby-forum.com/t/passing-parameter-from-view-to-controller/141896)

<div class="topic-metadata">

**Author:** [@McLobster](https://www.ruby-forum.com/u/McLobster)\
**Replies:** 12\
**Last updated:** [July 1, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/passing-parameter-from-view-to-controller/141896 "2008-07-01T16:32:35Z")

</div>

Hey there! I have a dropdown list ready to go on my rails app. It calls my action. My action works. Everythings good. Except I can’t figure out for the life of me how to pass the value selected in the dropdown list a…

---

## [ERROR: could not find gem auth\_generator-2.0.5.gem locally or in a repository](https://www.ruby-forum.com/t/error-could-not-find-gem-auth-generator-2-0-5-gem-locally-or-in-a-repository/141788)

<div class="topic-metadata">

**Author:** [@christoph](https://www.ruby-forum.com/u/christoph)\
**Replies:** 1\
**Last updated:** [July 1, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/error-could-not-find-gem-auth-generator-2-0-5-gem-locally-or-in-a-repository/141788 "2008-07-01T15:59:06Z")

</div>

Hi community, I found a very interesting plugin called “auth\_generator” and wanted to install it. So I downloaded the provided gem auth\_generator-2.0.5.gem from the website and did this: $ sudo gem install auth\_gener…

---

## [Callback error with Attachment\_fu](https://www.ruby-forum.com/t/callback-error-with-attachment-fu/141840)

<div class="topic-metadata">

**Author:** [@birdwatcher](https://www.ruby-forum.com/u/birdwatcher)\
**Replies:** 3\
**Last updated:** [July 1, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/callback-error-with-attachment-fu/141840 "2008-07-01T15:46:09Z")

</div>

Hi - I have been using attachment\_fu w/o issue - but updated my rails and now get a callback error. Has anyone encountered this? Or solved it easily? Info: Rails 2.1.0 Error: “undefined method \`callbacks\_for’ for #B…

---

## [How to lock a row and all its associated rows](https://www.ruby-forum.com/t/how-to-lock-a-row-and-all-its-associated-rows/141877)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 2\
**Last updated:** [July 1, 2008, 3:25pm UTC](https://www.ruby-forum.com/t/how-to-lock-a-row-and-all-its-associated-rows/141877 "2008-07-01T15:25:01Z")

</div>

Hi, I have a profile table, module table and book table. A profile has many modules, a module has many books. Module belongs to profile and book belongs to module. When a user accesses a profile, the profile and the …

---

## [Scaffold usage](https://www.ruby-forum.com/t/scaffold-usage/141836)

<div class="topic-metadata">

**Author:** [@lnramirez](https://www.ruby-forum.com/u/lnramirez)\
**Replies:** 3\
**Last updated:** [July 1, 2008, 2:42pm UTC](https://www.ruby-forum.com/t/scaffold-usage/141836 "2008-07-01T14:42:44Z")

</div>

is there anyway that scaffold would read the database and I don’t have to specify any of the columns? it is really frustraiting specially when you’ve got a lotta cols and tables! I’d like to use rails for an enterpris…

---

## [Switching to production - OCIError (ORA-12154: TNS:could not resolve the connect identifier specifi](https://www.ruby-forum.com/t/switching-to-production-ocierror-ora-12154-tns-could-not-resolve-the-connect-identifier-specifi/141467)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 4\
**Last updated:** [July 1, 2008, 2:25pm UTC](https://www.ruby-forum.com/t/switching-to-production-ocierror-ora-12154-tns-could-not-resolve-the-connect-identifier-specifi/141467 "2008-07-01T14:25:06Z")

</div>

Hi all. Ruby version: ruby 1.8.6 (2007-09-24 patchlevel 111) \[i386-mswin32\] Rails version: rails 1.2.3 I finished my first RoR application (Rails and Oracle, using the oci adapter). I am pretty close to production in…

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

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