# Rails

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

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

---

## [How to retrive user data while authentication through openid](https://www.ruby-forum.com/t/how-to-retrive-user-data-while-authentication-through-openid/104294)

<div class="topic-metadata">

**Author:** [@asit](https://www.ruby-forum.com/u/asit)\
**Replies:** 1\
**Last updated:** [May 16, 2007, 4:19pm UTC](https://www.ruby-forum.com/t/how-to-retrive-user-data-while-authentication-through-openid/104294 "2007-05-16T16:19:35Z")

</div>

Hi, If anyone have any idea regarding How to retrive user data while authentication through openid Please Reply With Regards Asit

---

## [Is there a to\_rss for respond\_to blocks in 1.2](https://www.ruby-forum.com/t/is-there-a-to-rss-for-respond-to-blocks-in-1-2/92760)

<div class="topic-metadata">

**Author:** [@jon](https://www.ruby-forum.com/u/jon)\
**Replies:** 4\
**Last updated:** [May 16, 2007, 3:53pm UTC](https://www.ruby-forum.com/t/is-there-a-to-rss-for-respond-to-blocks-in-1-2/92760 "2007-05-16T15:53:27Z")

</div>

Hi, I am looking to create an rss feed using rails 1.2, is there a way to easily do this by using somthing like format.rss { render :rss =\> @blogs.to\_rss } cheers

---

## [Ruby On Rails bachelor thesis](https://www.ruby-forum.com/t/ruby-on-rails-bachelor-thesis/104291)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 16, 2007, 2:20pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-bachelor-thesis/104291 "2007-05-16T14:20:16Z")

</div>

Dear Sir/Madam, my name is Michel Barbosa and I’m a bachelor student at the Erasmus Universiteit Rotterdam in the Netherlands. In order to graduate for the study ‘Informatics & Economics’ I have to write a bachelor th…

---

## [WhiteListHelper plugin not passing any tests](https://www.ruby-forum.com/t/whitelisthelper-plugin-not-passing-any-tests/104288)

<div class="topic-metadata">

**Author:** [@liquid](https://www.ruby-forum.com/u/liquid)\
**Replies:** 1\
**Last updated:** [May 16, 2007, 1:52pm UTC](https://www.ruby-forum.com/t/whitelisthelper-plugin-not-passing-any-tests/104288 "2007-05-16T13:52:11Z")

</div>

Hi I’m wondering if anyone has the white\_list plugin by Rick passing tests. It seems to be working but a lot of the tests call for something like assert\_equal white\_list( text ), text but the HTML attributes seem t…

---

## [Has\_one, has\_many, habtm?](https://www.ruby-forum.com/t/has-one-has-many-habtm/104262)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 4\
**Last updated:** [May 16, 2007, 1:29pm UTC](https://www.ruby-forum.com/t/has-one-has-many-habtm/104262 "2007-05-16T13:29:07Z")

</div>

Let’s suppose I’m designing an app for defining and storing information about Widgets. Widgets have a number of properties. They have a color, a shape, a size, a weight, a texture, etc. Each of these properties is cho…

---

## [Text to dates](https://www.ruby-forum.com/t/text-to-dates/104208)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 2\
**Last updated:** [May 16, 2007, 12:22pm UTC](https://www.ruby-forum.com/t/text-to-dates/104208 "2007-05-16T12:22:56Z")

</div>

Does anyone have any standard functions they use to input and create dates and times from a text field? A bit like the Add Event on Basecamp’s calendar… http://www.37signals.com/svn/archives2/the\_long\_road\_to\_simple\_c…

---

## [Production Env Issue: Ubuntu Mongrel Apache proxy Capistrano](https://www.ruby-forum.com/t/production-env-issue-ubuntu-mongrel-apache-proxy-capistrano/104170)

<div class="topic-metadata">

**Author:** [@navneetaron](https://www.ruby-forum.com/u/navneetaron)\
**Replies:** 3\
**Last updated:** [May 16, 2007, 11:30am UTC](https://www.ruby-forum.com/t/production-env-issue-ubuntu-mongrel-apache-proxy-capistrano/104170 "2007-05-16T11:30:44Z")

</div>

Hi Everyone, Context: I am building a ruby on rails app. After I successfully built and tested it in development environment, I used Capistrano to deploy it to a different machine with pretty much same configuration.…

---

## [Rake Namespaces - How to keep them separate?](https://www.ruby-forum.com/t/rake-namespaces-how-to-keep-them-separate/104284)

<div class="topic-metadata">

**Author:** [@dawillis](https://www.ruby-forum.com/u/dawillis)\
**Replies:** 0\
**Last updated:** [May 16, 2007, 11:22am UTC](https://www.ruby-forum.com/t/rake-namespaces-how-to-keep-them-separate/104284 "2007-05-16T11:22:57Z")

</div>

Good morning, In our app we have a number of custom Rake tasks living in lib/tasks. Each has a different namespace, but if I do this (yes, I know, global variables bad): namespace :spider\_uk\_foo do @ss = Scraper.new …

---

## [Has\_many :through =\>?](https://www.ruby-forum.com/t/has-many-through/104282)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 0\
**Last updated:** [May 16, 2007, 11:06am UTC](https://www.ruby-forum.com/t/has-many-through/104282 "2007-05-16T11:06:00Z")

</div>

I am having trouble setting up a relationship using the through option. Say you have the follow: A company has many company branches and facilities. A user must belong to either a company branch or a facility. I just…

---

## [Keeping track of gems](https://www.ruby-forum.com/t/keeping-track-of-gems/104266)

<div class="topic-metadata">

**Author:** [@Tim\_U](https://www.ruby-forum.com/u/Tim_U)\
**Replies:** 4\
**Last updated:** [May 16, 2007, 9:52am UTC](https://www.ruby-forum.com/t/keeping-track-of-gems/104266 "2007-05-16T09:52:04Z")

</div>

Is there a tool to keep track of gems and the deploy them to servers? I have lots of gems installed but I only need a subset of them on the production machines. It’s a bit of a mess but here is the situation. I d…

---

## [Restful cart routing problems](https://www.ruby-forum.com/t/restful-cart-routing-problems/104279)

<div class="topic-metadata">

**Author:** [@3nd3r](https://www.ruby-forum.com/u/3nd3r)\
**Replies:** 0\
**Last updated:** [May 16, 2007, 9:34am UTC](https://www.ruby-forum.com/t/restful-cart-routing-problems/104279 "2007-05-16T09:34:44Z")

</div>

I want to have a cart with urls like this it “should map { :controller =\> ‘cart’, :action =\> ‘index’ } to /cart” do route\_for(:controller =\> “cart”, :action =\> “index”).should == “/cart” end it “should map { :contr…

---

## [How to insert a collection of records into another table](https://www.ruby-forum.com/t/how-to-insert-a-collection-of-records-into-another-table/104278)

<div class="topic-metadata">

**Author:** [@madhan](https://www.ruby-forum.com/u/madhan)\
**Replies:** 0\
**Last updated:** [May 16, 2007, 9:13am UTC](https://www.ruby-forum.com/t/how-to-insert-a-collection-of-records-into-another-table/104278 "2007-05-16T09:13:36Z")

</div>

hi all, i have a collection of data, how can i insert to a database table.

---

## [Passing hashes in a :collection](https://www.ruby-forum.com/t/passing-hashes-in-a-collection/104275)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 16, 2007, 8:45am UTC](https://www.ruby-forum.com/t/passing-hashes-in-a-collection/104275 "2007-05-16T08:45:35Z")

</div>

I am trying to pass an array of hashes to a partial via a :collection. render :partial =\> ‘property’, :collection =\> @enriched\_properties where @enriched\_properties is an array of hashes: :property =\> property # a pro…

---

## [Simple Database Problem](https://www.ruby-forum.com/t/simple-database-problem/104274)

<div class="topic-metadata">

**Author:** [@The\_iGuy](https://www.ruby-forum.com/u/The_iGuy)\
**Replies:** 0\
**Last updated:** [May 16, 2007, 8:23am UTC](https://www.ruby-forum.com/t/simple-database-problem/104274 "2007-05-16T08:23:33Z")

</div>

I have a question about auto generated primary keys. For example rails’ session table in MySQL uses an int(11) with auto\_increment. If the application is used a lot wouldn’t the id key run out of keys eventually? How …

---

## [Mailer unit test bug](https://www.ruby-forum.com/t/mailer-unit-test-bug/104272)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [May 16, 2007, 8:03am UTC](https://www.ruby-forum.com/t/mailer-unit-test-bug/104272 "2007-05-16T08:03:43Z")

</div>

how can it fail , Loaded suite test/unit/user\_notifier\_test Started F Finished in 0.491143 seconds. Failure: test\_get\_new\_contact\_in\_my\_network(UserNotifierTest) \[test/unit/user\_notifier\_test.rb:29\]: \<“Date: Wed…

---

## [How do I create a table for my model?](https://www.ruby-forum.com/t/how-do-i-create-a-table-for-my-model/104136)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 7\
**Last updated:** [May 16, 2007, 7:17am UTC](https://www.ruby-forum.com/t/how-do-i-create-a-table-for-my-model/104136 "2007-05-16T07:17:30Z")

</div>

I’m not sure what is meant by “create a table for the model” because the database has a table…they mean a different table? \[thufir@localhost dummy\]$ \[thufir@localhost dummy\]$ \[thufir@localhost dummy\]$ ruby script/gen…

---

## [Problem with render :partial ... :collection](https://www.ruby-forum.com/t/problem-with-render-partial-collection/104220)

<div class="topic-metadata">

**Author:** [@laurent](https://www.ruby-forum.com/u/laurent)\
**Replies:** 2\
**Last updated:** [May 16, 2007, 7:11am UTC](https://www.ruby-forum.com/t/problem-with-render-partial-collection/104220 "2007-05-16T07:11:29Z")

</div>

Hello, I 'm currently developing a fully ajaxified Portal with RoR for a client. In the page, i have an In Place Editing Area : Clicking on the area (div), replace it with a content coming from a Partial (i’ve exten…

---

## [\[ANN\] rails\_analyzer\_tools 1.4.0 Released](https://www.ruby-forum.com/t/ann-rails-analyzer-tools-1-4-0-released/122600)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [May 16, 2007, 6:03am UTC](https://www.ruby-forum.com/t/ann-rails-analyzer-tools-1-4-0-released/122600 "2007-05-16T06:03:24Z")

</div>

rails\_analyzer\_tools version 1.4.0 has been released! http://seattlerb.rubyforge.org/rails\_analyzer\_tools Rails Analyzer Tools contains Bench, a simple web page benchmarker, Crawler, a tool for beating up on web sites…

---

## [How Can I Setup FckEditor and Image upload on rails?](https://www.ruby-forum.com/t/how-can-i-setup-fckeditor-and-image-upload-on-rails/104234)

<div class="topic-metadata">

**Author:** [@Lucas\_Carvalho](https://www.ruby-forum.com/u/Lucas_Carvalho)\
**Replies:** 1\
**Last updated:** [May 16, 2007, 4:59am UTC](https://www.ruby-forum.com/t/how-can-i-setup-fckeditor-and-image-upload-on-rails/104234 "2007-05-16T04:59:21Z")

</div>

Did anyone already use fckeditor with image upload support on rails? I am trying to do it and reading a lot tutorial, but all of them are incomplete. – Lucas Carvalho

---

## [How to generate scaffold\_resource for a singular resource?](https://www.ruby-forum.com/t/how-to-generate-scaffold-resource-for-a-singular-resource/104265)

<div class="topic-metadata">

**Author:** [@nelson](https://www.ruby-forum.com/u/nelson)\
**Replies:** 0\
**Last updated:** [May 16, 2007, 4:35am UTC](https://www.ruby-forum.com/t/how-to-generate-scaffold-resource-for-a-singular-resource/104265 "2007-05-16T04:35:39Z")

</div>

‘ruby script/generate scaffold\_resource model’ will generate a controller called ‘models\_controller’, but is there an option to the command that would generate a singular resource controller (just ‘model\_controller’) …

---

## [Limit on eager loaded association?](https://www.ruby-forum.com/t/limit-on-eager-loaded-association/104256)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 4\
**Last updated:** [May 16, 2007, 2:56am UTC](https://www.ruby-forum.com/t/limit-on-eager-loaded-association/104256 "2007-05-16T02:56:11Z")

</div>

If I use :include to eager load a has\_many association, can I limit the number returned on that has\_many association. I know I can limit the amount of records returned, but how do I limit how many are returned on its …

---

## [Has\_many - edit the association](https://www.ruby-forum.com/t/has-many-edit-the-association/103979)

<div class="topic-metadata">

**Author:** [@stephanwehner](https://www.ruby-forum.com/u/stephanwehner)\
**Replies:** 7\
**Last updated:** [May 16, 2007, 2:23am UTC](https://www.ruby-forum.com/t/has-many-edit-the-association/103979 "2007-05-16T02:23:09Z")

</div>

I have a has\_and\_belongs\_to\_many relationship, let’s say class Student \< ActiveRecord::Base has\_and\_belongs\_to\_many :courses end class Course \< ActiveRecord::Base has\_and\_belongs\_to\_many :students end Now I have a…

---

## [Debugger](https://www.ruby-forum.com/t/debugger/104014)

<div class="topic-metadata">

**Author:** [@adi](https://www.ruby-forum.com/u/adi)\
**Replies:** 3\
**Last updated:** [May 16, 2007, 2:16am UTC](https://www.ruby-forum.com/t/debugger/104014 "2007-05-16T02:16:09Z")

</div>

Hello, I have started to make an application, and now it’s very big and starts to appear problems in javascirpt code. I can’t use ie debugger because i have contents of page loaded by ajax and they didn’t apear when …

---

## [Handling Validation Errors in Ajax Forms](https://www.ruby-forum.com/t/handling-validation-errors-in-ajax-forms/104257)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 16, 2007, 12:04am UTC](https://www.ruby-forum.com/t/handling-validation-errors-in-ajax-forms/104257 "2007-05-16T00:04:58Z")

</div>

How do you handle validation errors on Ajax (remote) forms? Do you render a different action when an error happens (such as error, therefore everything is handled by error.rjs) or do you simply let the view decide if …

---

## [RoR: To Scale or Not to Scale](https://www.ruby-forum.com/t/ror-to-scale-or-not-to-scale/104255)

<div class="topic-metadata">

**Author:** [@GeekSessions](https://www.ruby-forum.com/u/GeekSessions)\
**Replies:** 0\
**Last updated:** [May 15, 2007, 11:52pm UTC](https://www.ruby-forum.com/t/ror-to-scale-or-not-to-scale/104255 "2007-05-15T23:52:57Z")

</div>

Hey all, For those of you in or near San Francisco, I’m co-organizing an event next Tuesday called “Ruby on Rails: To Scale or Not to Scale.” We’re bringing in a panel from Twitter, Pivotal, Joyent, and Sun, for an e…

---

## [Trouble with "require" and FastCGI](https://www.ruby-forum.com/t/trouble-with-require-and-fastcgi/104254)

<div class="topic-metadata">

**Author:** [@kdonn](https://www.ruby-forum.com/u/kdonn)\
**Replies:** 0\
**Last updated:** [May 15, 2007, 11:48pm UTC](https://www.ruby-forum.com/t/trouble-with-require-and-fastcgi/104254 "2007-05-15T23:48:57Z")

</div>

I didn’t mention in the subject that I’m using Firebird because I’m hoping non-Firebird developers will read this since there only seem to be about four people using Rails with Firebird. First what works for me - Win…

---

## [Way to mark record as main?](https://www.ruby-forum.com/t/way-to-mark-record-as-main/104248)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 4\
**Last updated:** [May 15, 2007, 11:42pm UTC](https://www.ruby-forum.com/t/way-to-mark-record-as-main/104248 "2007-05-15T23:42:56Z")

</div>

I was curious if there was a built in feature in ActiveRecord or a plugin, but I basically have a database for phone numbers. I want a user to be able to make a phone number as main. There can only be one phone number…

---

## [Undefined method \`size' for Time:Class](https://www.ruby-forum.com/t/undefined-method-size-for-time-class/104184)

<div class="topic-metadata">

**Author:** [@ptremblett](https://www.ruby-forum.com/u/ptremblett)\
**Replies:** 2\
**Last updated:** [May 15, 2007, 11:35pm UTC](https://www.ruby-forum.com/t/undefined-method-size-for-time-class/104184 "2007-05-15T23:35:56Z")

</div>

Hi I am running rails 1.2.3 and am getting - NoMethodError in Chapter3Controller#get\_time undefined method \`size’ for Time:Class RAILS\_ROOT: script/…/config/… - I do this in my controller -CODE- def get\_time sle…

---

## [Show autocomplete (scriptaculous)](https://www.ruby-forum.com/t/show-autocomplete-scriptaculous/104251)

<div class="topic-metadata">

**Author:** [@cfingerh](https://www.ruby-forum.com/u/cfingerh)\
**Replies:** 0\
**Last updated:** [May 15, 2007, 11:19pm UTC](https://www.ruby-forum.com/t/show-autocomplete-scriptaculous/104251 "2007-05-15T23:19:54Z")

</div>

I’m using scriptaculous to generate in a autocomplete field var user\_name\_auto\_completer = new Ajax.Autocompleter(‘user\_name’, ‘user\_name\_auto\_complete’, ‘/users/auto\_complete\_for\_user\_name’, {}) It’s wokring OK. But …

---

## [How do I create a collection](https://www.ruby-forum.com/t/how-do-i-create-a-collection/104252)

<div class="topic-metadata">

**Author:** [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Replies:** 3\
**Last updated:** [May 15, 2007, 11:16pm UTC](https://www.ruby-forum.com/t/how-do-i-create-a-collection/104252 "2007-05-15T23:16:54Z")

</div>

Hopefully this isn’t a dumb question. I would like to create a drop down list using collection\_select, but I would like the collection to be generate statically, and not from a database call. If I do create the colle…

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

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