# Rails

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

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

---

## [Big file uploads and number of records created](https://www.ruby-forum.com/t/big-file-uploads-and-number-of-records-created/128999)

<div class="topic-metadata">

**Author:** [@fesplugas](https://www.ruby-forum.com/u/fesplugas)\
**Replies:** 0\
**Last updated:** [February 13, 2008, 12:50pm UTC](https://www.ruby-forum.com/t/big-file-uploads-and-number-of-records-created/128999 "2008-02-13T12:50:01Z")

</div>

I’ve an application which uploads files between 50 and 100 Megs. On development everything works as expected. File is uploaded, file is processed and finally uploaded to AmazonS3. On production the application works w…

---

## [RSpec Performance](https://www.ruby-forum.com/t/rspec-performance/128813)

<div class="topic-metadata">

**Author:** [@Rafael\_B](https://www.ruby-forum.com/u/Rafael_B)\
**Replies:** 6\
**Last updated:** [February 13, 2008, 11:42am UTC](https://www.ruby-forum.com/t/rspec-performance/128813 "2008-02-13T11:42:07Z")

</div>

I’m a windowx xp user and a simples “rake spec” consisting of 1 spec with 1 exaple takes about 3-4 seconds to run on a Intel Q6600 with almost no load. Is this right? Is there a way to make it faster? Every screencas…

---

## [Trouble updating partial from collection](https://www.ruby-forum.com/t/trouble-updating-partial-from-collection/128986)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 6\
**Last updated:** [February 13, 2008, 11:31am UTC](https://www.ruby-forum.com/t/trouble-updating-partial-from-collection/128986 "2008-02-13T11:31:11Z")

</div>

I have a view where I render a partial over a collection. Each instance of the partial includes a with an id specific to that instance. Inside the partial, there is a select tag for “year”. I’m trying to change som…

---

## [Loop skip to next entry](https://www.ruby-forum.com/t/loop-skip-to-next-entry/128993)

<div class="topic-metadata">

**Author:** [@KTU](https://www.ruby-forum.com/u/KTU)\
**Replies:** 1\
**Last updated:** [February 13, 2008, 11:30am UTC](https://www.ruby-forum.com/t/loop-skip-to-next-entry/128993 "2008-02-13T11:30:22Z")

</div>

whats the syntax for next item jump on the loop \<% @ldap\_entries.each do |entry| %\> \<% if entry\[:mail\] == ‘’ %\> \<% next %\> does not seem to work ?

---

## [ExtJs in ROR](https://www.ruby-forum.com/t/extjs-in-ror/128977)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 1\
**Last updated:** [February 13, 2008, 11:26am UTC](https://www.ruby-forum.com/t/extjs-in-ror/128977 "2008-02-13T11:26:59Z")

</div>

Hi, Is anyone using ExtJs for ROR application? If yes, please give a solution for my problem. I am trying to add a GridPanel in TabPanel. It is now showing any error but Grid fields are not displayed in the tab. Any…

---

## [Rails Messaging (INBOX) system](https://www.ruby-forum.com/t/rails-messaging-inbox-system/128897)

<div class="topic-metadata">

**Author:** [@hungryrubian](https://www.ruby-forum.com/u/hungryrubian)\
**Replies:** 3\
**Last updated:** [February 13, 2008, 11:18am UTC](https://www.ruby-forum.com/t/rails-messaging-inbox-system/128897 "2008-02-13T11:18:52Z")

</div>

Hi All… I need to implement messaging system in one of my rails applications(To say simply it must be similar to orkut messaging system). Even if i am having a rough idea on how to implement it, i need any one your g…

---

## [ROR Learning with Dating /Classified Site Development](https://www.ruby-forum.com/t/ror-learning-with-dating-classified-site-development/126890)

<div class="topic-metadata">

**Author:** [@softmind](https://www.ruby-forum.com/u/softmind)\
**Replies:** 6\
**Last updated:** [February 13, 2008, 11:11am UTC](https://www.ruby-forum.com/t/ror-learning-with-dating-classified-site-development/126890 "2008-02-13T11:11:04Z")

</div>

Hi, I am falling in love more and more with RoR. I am looking for a Book/Tutorial which teaches me creating an excellent WebSite for dating and Classified. I am coming from .net community and now willing to grow more…

---

## [Hash key value pairs](https://www.ruby-forum.com/t/hash-key-value-pairs/128947)

<div class="topic-metadata">

**Author:** [@KTU](https://www.ruby-forum.com/u/KTU)\
**Replies:** 8\
**Last updated:** [February 13, 2008, 10:57am UTC](https://www.ruby-forum.com/t/hash-key-value-pairs/128947 "2008-02-13T10:57:47Z")

</div>

Hi It seems to me that you cant append to hash. I am trying to find a way to dynamically create key value pairs. Example some\_hash = {“name” =\> “tom”, “uid”=“100”, “mail” = “tom.dot.com” } Now I have function which …

---

## [How popular is Ruby on Rails?](https://www.ruby-forum.com/t/how-popular-is-ruby-on-rails/128882)

<div class="topic-metadata">

**Author:** [@tom](https://www.ruby-forum.com/u/tom)\
**Replies:** 9\
**Last updated:** [February 13, 2008, 10:55am UTC](https://www.ruby-forum.com/t/how-popular-is-ruby-on-rails/128882 "2008-02-13T10:55:41Z")

</div>

How popular is Ruby on Rails vs other Web Frameworks (Django, Symfony, Spring,…) ? I found a link on the subject : http://www.therightsoft.com/softwaretechnologies/webframeworks …but I’m am looking for further resour…

---

## [How to run methods of an ActiveResource object?](https://www.ruby-forum.com/t/how-to-run-methods-of-an-activeresource-object/128991)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 0\
**Last updated:** [February 13, 2008, 10:47am UTC](https://www.ruby-forum.com/t/how-to-run-methods-of-an-activeresource-object/128991 "2008-02-13T10:47:21Z")

</div>

How do you run the methods of an active resource (rest) object? ie. if i have new = Person.find(2) # make REST call can i just run? : new.do\_something or is it more complex than that to run the methods? how does…

---

## [Structuring larger RoR projects/systems](https://www.ruby-forum.com/t/structuring-larger-ror-projects-systems/128565)

<div class="topic-metadata">

**Author:** [@jarikoister](https://www.ruby-forum.com/u/jarikoister)\
**Replies:** 3\
**Last updated:** [February 13, 2008, 10:30am UTC](https://www.ruby-forum.com/t/structuring-larger-ror-projects-systems/128565 "2008-02-13T10:30:06Z")

</div>

Hi, I am considering using RoR for a quite sizable project involving 10-15 developers. I am very experience with other technologies such as Java and C++, and I would know how to structure a system so that different d…

---

## [Error while connecting sql server 2000](https://www.ruby-forum.com/t/error-while-connecting-sql-server-2000/128988)

<div class="topic-metadata">

**Author:** [@mjayakumar2k6](https://www.ruby-forum.com/u/mjayakumar2k6)\
**Replies:** 0\
**Last updated:** [February 13, 2008, 10:01am UTC](https://www.ruby-forum.com/t/error-while-connecting-sql-server-2000/128988 "2008-02-13T10:01:10Z")

</div>

hi, i have done steps following. http://wiki.rubyonrails.org/rails/pages/HowtoConnectToMicrosoftSQLServer i got this error. DBI::InterfaceError in EmployeesController#index Unable to load driver ‘ADO’

---

## [Find all models that do not have any associated models](https://www.ruby-forum.com/t/find-all-models-that-do-not-have-any-associated-models/128956)

<div class="topic-metadata">

**Author:** [@jasonmorrison](https://www.ruby-forum.com/u/jasonmorrison)\
**Replies:** 2\
**Last updated:** [February 13, 2008, 9:53am UTC](https://www.ruby-forum.com/t/find-all-models-that-do-not-have-any-associated-models/128956 "2008-02-13T09:53:03Z")

</div>

Recipes has many flavors Flavor belongs\_to Recipe How would I find and list all recipes that do not have any associated flavors? I am running a nightly report that is looking for all recipes which are missing flavor…

---

## [File Uploading using Rails](https://www.ruby-forum.com/t/file-uploading-using-rails/128921)

<div class="topic-metadata">

**Author:** [@mcmohd](https://www.ruby-forum.com/u/mcmohd)\
**Replies:** 2\
**Last updated:** [February 13, 2008, 8:09am UTC](https://www.ruby-forum.com/t/file-uploading-using-rails/128921 "2008-02-13T08:09:29Z")

</div>

Here is one tutorial for the beginners to understand how to upload a file using Rails. If you like this tutorial then please send me your feedback. Thanks Mohtashim

---

## [AJAX on Rails Tutorials](https://www.ruby-forum.com/t/ajax-on-rails-tutorials/128982)

<div class="topic-metadata">

**Author:** [@mcmohd](https://www.ruby-forum.com/u/mcmohd)\
**Replies:** 0\
**Last updated:** [February 13, 2008, 8:06am UTC](https://www.ruby-forum.com/t/ajax-on-rails-tutorials/128982 "2008-02-13T08:06:37Z")

</div>

Hi, Here is a quick tutorial on AJAX on Rails. Please share with others if you like this tutorial. Thanks Mohtashim

---

## [Adding some more javascript to run](https://www.ruby-forum.com/t/adding-some-more-javascript-to-run/128979)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 13, 2008, 8:06am UTC](https://www.ruby-forum.com/t/adding-some-more-javascript-to-run/128979 "2008-02-13T08:06:34Z")

</div>

Hi, I have a form where I’m adding multiple items. So I have an “Add New Item” link to the page. Here’s how I define it in the controller’s helper … def add\_item\_link(name) link\_to\_function name do …

---

## [How to expire cached category browse paginated pages](https://www.ruby-forum.com/t/how-to-expire-cached-category-browse-paginated-pages/128980)

<div class="topic-metadata">

**Author:** [@yaxm](https://www.ruby-forum.com/u/yaxm)\
**Replies:** 0\
**Last updated:** [February 13, 2008, 7:43am UTC](https://www.ruby-forum.com/t/how-to-expire-cached-category-browse-paginated-pages/128980 "2008-02-13T07:43:08Z")

</div>

Hi, I have a set of categories. Each category has a set of products. A user can browse by categories. The product listing by category provides pagination. so I am using rails’ fragment cache to cache results like …

---

## [Different kinds of Users (roles) should I use inheritance?](https://www.ruby-forum.com/t/different-kinds-of-users-roles-should-i-use-inheritance/128978)

<div class="topic-metadata">

**Author:** [@jhnsntmthy](https://www.ruby-forum.com/u/jhnsntmthy)\
**Replies:** 0\
**Last updated:** [February 13, 2008, 7:10am UTC](https://www.ruby-forum.com/t/different-kinds-of-users-roles-should-i-use-inheritance/128978 "2008-02-13T07:10:48Z")

</div>

Hi, in my application I have 3 different kinds of Users Patients Therapists Admins For the sake of it, Admins are not important here, what is important is that a Patient belongs\_to a Therapist, and likewise a Therap…

---

## [Should there be trouble w/has\_many\_polymorphs in a plugin?](https://www.ruby-forum.com/t/should-there-be-trouble-w-has-many-polymorphs-in-a-plugin/128745)

<div class="topic-metadata">

**Author:** [@mlopke](https://www.ruby-forum.com/u/mlopke)\
**Replies:** 3\
**Last updated:** [February 13, 2008, 5:44am UTC](https://www.ruby-forum.com/t/should-there-be-trouble-w-has-many-polymorphs-in-a-plugin/128745 "2008-02-13T05:44:59Z")

</div>

Folks, As much as I like generators, I’d greatly prefer to just throw my has\_many\_polymorphs tagging and commenting engines into projects as plugins. However, after transplanting my tag.rb and tagging.rb files into t…

---

## [ROR for migration project?](https://www.ruby-forum.com/t/ror-for-migration-project/128886)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 1\
**Last updated:** [February 13, 2008, 5:04am UTC](https://www.ruby-forum.com/t/ror-for-migration-project/128886 "2008-02-13T05:04:59Z")

</div>

Customer wants to migrate their existing client-server application to web application. The web application needs to use the legacy database used by the client server application. Can we use legacy database in ROR? An…

---

## [Weird on rails message](https://www.ruby-forum.com/t/weird-on-rails-message/128960)

<div class="topic-metadata">

**Author:** [@dutch](https://www.ruby-forum.com/u/dutch)\
**Replies:** 5\
**Last updated:** [February 13, 2008, 4:50am UTC](https://www.ruby-forum.com/t/weird-on-rails-message/128960 "2008-02-13T04:50:03Z")

</div>

I’m a newbie trying to get started. Running os 10.5. Installed rails 2.0, i think, but i’m getting a weird error message when i click “about your environment” Here it is. Any help would be great Errno::ENOENT in Ra…

---

## [Link\_to :application=\>"app2", :controller=\>.., :action=\>](https://www.ruby-forum.com/t/link-to-application-app2-controller-action/128929)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 3\
**Last updated:** [February 13, 2008, 3:38am UTC](https://www.ruby-forum.com/t/link-to-application-app2-controller-action/128929 "2008-02-13T03:38:18Z")

</div>

Wouldn’t this be good?? : link\_to :application=\>“app2”, :controller=\>“app2controller”, :action=\>“action” or form\_tag :application=\>“app2”, :controller=\>“app2controller”, :action=\>“action” do … end I run many rail…

---

## [Ajax Render Problems on Update](https://www.ruby-forum.com/t/ajax-render-problems-on-update/128970)

<div class="topic-metadata">

**Author:** [@Glen](https://www.ruby-forum.com/u/Glen)\
**Replies:** 0\
**Last updated:** [February 13, 2008, 2:41am UTC](https://www.ruby-forum.com/t/ajax-render-problems-on-update/128970 "2008-02-13T02:41:03Z")

</div>

After submitting a post via an Ajax form the update on the div is rendered completely wrong. A simple reload of the page fixes the render but that is in no way acceptable. Does anyone have any idea what would be cau…

---

## [No CSS at all in IE , works perfectly in Firefox](https://www.ruby-forum.com/t/no-css-at-all-in-ie-works-perfectly-in-firefox/128942)

<div class="topic-metadata">

**Author:** [@liam](https://www.ruby-forum.com/u/liam)\
**Replies:** 10\
**Last updated:** [February 13, 2008, 2:40am UTC](https://www.ruby-forum.com/t/no-css-at-all-in-ie-works-perfectly-in-firefox/128942 "2008-02-13T02:40:34Z")

</div>

Newbie question - and obviously I am missing something!! Any help would be appreciated. I am basically doing Rails tutorials and have fully working - fully styled apps running in Firefox - however when I try and view …

---

## [Digital Camera Picture](https://www.ruby-forum.com/t/digital-camera-picture/128965)

<div class="topic-metadata">

**Author:** [@transinet\_transinet](https://www.ruby-forum.com/u/transinet_transinet)\
**Replies:** 0\
**Last updated:** [February 13, 2008, 1:52am UTC](https://www.ruby-forum.com/t/digital-camera-picture/128965 "2008-02-13T01:52:59Z")

</div>

Digital Camera Picture http://clocks.110mb.com/digital\_camera.html

---

## [Firefox loading raw HTML, instead of rendering the page as designed](https://www.ruby-forum.com/t/firefox-loading-raw-html-instead-of-rendering-the-page-as-designed/128925)

<div class="topic-metadata">

**Author:** [@LAB](https://www.ruby-forum.com/u/LAB)\
**Replies:** 2\
**Last updated:** [February 13, 2008, 1:51am UTC](https://www.ruby-forum.com/t/firefox-loading-raw-html-instead-of-rendering-the-page-as-designed/128925 "2008-02-13T01:51:49Z")

</div>

Using Rails 2.0.2, I have built a simple web app. Every time I use Firefox to load any page for that web app, it is extremely slow, and according to the log files, it completes the specified action in the controller,…

---

## [\-Registration Open for GoRuCo 2008-](https://www.ruby-forum.com/t/registration-open-for-goruco-2008/128962)

<div class="topic-metadata">

**Author:** [@HalterS\_Shari](https://www.ruby-forum.com/u/HalterS_Shari)\
**Replies:** 0\
**Last updated:** [February 13, 2008, 1:28am UTC](https://www.ruby-forum.com/t/registration-open-for-goruco-2008/128962 "2008-02-13T01:28:58Z")

</div>

Registration is now open for Gotham Ruby Conference \[GoRuCo\] 2008, a one-day, single-track technical conference, aimed at highly motivated programmers, in New York City and dedicated to everything Ruby. The conference…

---

## [Has\_one association against a non primary key](https://www.ruby-forum.com/t/has-one-association-against-a-non-primary-key/128355)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 2\
**Last updated:** [February 13, 2008, 1:08am UTC](https://www.ruby-forum.com/t/has-one-association-against-a-non-primary-key/128355 "2008-02-13T01:08:25Z")

</div>

Hey list, Any easy way to do a has\_one, belongs\_to based off a key that is NOT the ID field? I am working with a legacy table that has a grouping column in the table, I need to have a has\_one association off this gro…

---

## [Passing non-existing parameters](https://www.ruby-forum.com/t/passing-non-existing-parameters/128954)

<div class="topic-metadata">

**Author:** [@remcoh](https://www.ruby-forum.com/u/remcoh)\
**Replies:** 1\
**Last updated:** [February 13, 2008, 12:47am UTC](https://www.ruby-forum.com/t/passing-non-existing-parameters/128954 "2008-02-13T00:47:55Z")

</div>

perhaps an academic question: i have this: \<%= link\_to\_remote n, :url=\>people\_url({:div\_to\_update=\>“people\_container”,:organisation\_id=\>@organisation.id,:partial=\>“list\_row”,:page=\>n}),:method=\>:get %\> as you can se…

---

## [In views, can I use method into application?](https://www.ruby-forum.com/t/in-views-can-i-use-method-into-application/128953)

<div class="topic-metadata">

**Author:** [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Replies:** 1\
**Last updated:** [February 13, 2008, 12:45am UTC](https://www.ruby-forum.com/t/in-views-can-i-use-method-into-application/128953 "2008-02-13T00:45:34Z")

</div>

I defined a method ( def scan )into application, I want to use this method in views. but when I used, there is a error: undefined method \`scan’ for #ActionView::Base:0x4d91e40 So who can help me? Thanks!

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

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