# Rails

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

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

---

## [Rails 2.0.2 + RJS](https://www.ruby-forum.com/t/rails-2-0-2-rjs/126888)

<div class="topic-metadata">

**Author:** [@sweetpete](https://www.ruby-forum.com/u/sweetpete)\
**Replies:** 10\
**Last updated:** [March 14, 2008, 3:30am UTC](https://www.ruby-forum.com/t/rails-2-0-2-rjs/126888 "2008-03-14T03:30:19Z")

</div>

Hi I had ajax commenting on my app, which worked perfectly on Rails v1.2.6, but does not work the same in Rails 2.02. Basically the comment gets added, but the visual effects do not work (ie lines 2 + 3 of create.rjs…

---

## [Plugin for trading](https://www.ruby-forum.com/t/plugin-for-trading/131862)

<div class="topic-metadata">

**Author:** [@grayson](https://www.ruby-forum.com/u/grayson)\
**Replies:** 1\
**Last updated:** [March 14, 2008, 2:19am UTC](https://www.ruby-forum.com/t/plugin-for-trading/131862 "2008-03-14T02:19:57Z")

</div>

I’m always amazed at the variety of plugins that people develop, so I thought I’d ask. Does anyone know of a plugin or a sample app that does trading and/or auctions? Thanks, GP

---

## [Google Calendar](https://www.ruby-forum.com/t/google-calendar/131820)

<div class="topic-metadata">

**Author:** [@dipeshbatheja](https://www.ruby-forum.com/u/dipeshbatheja)\
**Replies:** 2\
**Last updated:** [March 14, 2008, 2:10am UTC](https://www.ruby-forum.com/t/google-calendar/131820 "2008-03-14T02:10:32Z")

</div>

Anyone aware of good calendar library in Ruby? I need to design a calendar similar to Google calendar. The idea is to have ability to add recurring or even infinite events as it is possible in Google calendar.

---

## [Multiple applications under Mongrel using routes](https://www.ruby-forum.com/t/multiple-applications-under-mongrel-using-routes/131877)

<div class="topic-metadata">

**Author:** [@yardboy](https://www.ruby-forum.com/u/yardboy)\
**Replies:** 0\
**Last updated:** [March 14, 2008, 2:02am UTC](https://www.ruby-forum.com/t/multiple-applications-under-mongrel-using-routes/131877 "2008-03-14T02:02:04Z")

</div>

My shared host limits the number of mongrel instances I can run, so I’d like to run multiple applications in one mongrel instance. For instance… testapps.domain.com/app1 actually ends up running application in /home/…

---

## [Problem with Complex Form Saving](https://www.ruby-forum.com/t/problem-with-complex-form-saving/131872)

<div class="topic-metadata">

**Author:** [@Philip\_N](https://www.ruby-forum.com/u/Philip_N)\
**Replies:** 2\
**Last updated:** [March 14, 2008, 1:31am UTC](https://www.ruby-forum.com/t/problem-with-complex-form-saving/131872 "2008-03-14T01:31:50Z")

</div>

I’m having a problem with a fairly complex form, with data from multiple models. I’ve trimmed down the code to the bare minimum … =========== START OF MODELS ============= class Order \< ActiveRecord::Base has\_many …

---

## [Apache + mongrel cluster: early unescaping of URI by Apache](https://www.ruby-forum.com/t/apache-mongrel-cluster-early-unescaping-of-uri-by-apache/130831)

<div class="topic-metadata">

**Author:** [@yuleven](https://www.ruby-forum.com/u/yuleven)\
**Replies:** 1\
**Last updated:** [March 14, 2008, 1:08am UTC](https://www.ruby-forum.com/t/apache-mongrel-cluster-early-unescaping-of-uri-by-apache/130831 "2008-03-14T01:08:59Z")

</div>

Hello all, I have run into a weird problem. I have the following route: map.show\_wiki\_page ‘wiki/show/:name/:version’, :action =\> ‘show’ , :version =\> nil, :requirements =\> {:version =\> /\\d+/, :name =\> /\[\\d \\w?!,(…

---

## [Ajax to search a database](https://www.ruby-forum.com/t/ajax-to-search-a-database/131830)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 3\
**Last updated:** [March 14, 2008, 12:31am UTC](https://www.ruby-forum.com/t/ajax-to-search-a-database/131830 "2008-03-14T00:31:27Z")

</div>

Hi all, I want to add some ajax to search my sqlite3 database, can anyone give me a link to a tutorial or give me somes tips. any help much appreciated

---

## [Can't seem to Compare MySQL Statement](https://www.ruby-forum.com/t/cant-seem-to-compare-mysql-statement/131866)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 4\
**Last updated:** [March 14, 2008, 12:16am UTC](https://www.ruby-forum.com/t/cant-seem-to-compare-mysql-statement/131866 "2008-03-14T00:16:49Z")

</div>

Hello, I am having a problem seeing if a SQL statement worked or not… I know I’m not really doing my SQL statement the proper ‘RoR’ way, but I don’t think that is the problem. My code is supposed to query the database …

---

## [Total newb questions - resources or tutorials?](https://www.ruby-forum.com/t/total-newb-questions-resources-or-tutorials/131822)

<div class="topic-metadata">

**Author:** [@fat\_al](https://www.ruby-forum.com/u/fat_al)\
**Replies:** 2\
**Last updated:** [March 14, 2008, 12:08am UTC](https://www.ruby-forum.com/t/total-newb-questions-resources-or-tutorials/131822 "2008-03-14T00:08:01Z")

</div>

I’ve been searching (the forum and the web) for a while without joy so I was hoping someone might be able to point me in the right direction. I am new to OOP and Ruby. I want to start writing some simple web apps and …

---

## [Forms](https://www.ruby-forum.com/t/forms/131851)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 2\
**Last updated:** [March 13, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/forms/131851 "2008-03-13T23:53:21Z")

</div>

Is there a way to trigger a submit of a form by a link outside of the form. For example: \<% form\_tag do %\> Name: \<%= text\_field\_tag :name, params\[:name\] %\> Password: \<%= password\_field\_tag …

---

## [Posting xml to create new record](https://www.ruby-forum.com/t/posting-xml-to-create-new-record/131852)

<div class="topic-metadata">

**Author:** [@justinj](https://www.ruby-forum.com/u/justinj)\
**Replies:** 2\
**Last updated:** [March 13, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/posting-xml-to-create-new-record/131852 "2008-03-13T23:37:22Z")

</div>

Hello, I noticed that with the latest version of Rails, scaffolding in the controller already has resourceful methods. Based on the comments in the code, it seems that all of this is built in, but I’m having some tr…

---

## [Test passes when run isolated, fails when run using "rake test"](https://www.ruby-forum.com/t/test-passes-when-run-isolated-fails-when-run-using-rake-test/131857)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 2\
**Last updated:** [March 13, 2008, 11:28pm UTC](https://www.ruby-forum.com/t/test-passes-when-run-isolated-fails-when-run-using-rake-test/131857 "2008-03-13T23:28:33Z")

</div>

Hi, I got very simple unit test (creates new object and checks if it’s successfuly saved) that passes when I run only the file, which contains this test, but fails when I run “rake test”. Any ideas what can be wrong? …

---

## [Verify E-mail Delivery](https://www.ruby-forum.com/t/verify-e-mail-delivery/131855)

<div class="topic-metadata">

**Author:** [@keaja](https://www.ruby-forum.com/u/keaja)\
**Replies:** 2\
**Last updated:** [March 13, 2008, 11:04pm UTC](https://www.ruby-forum.com/t/verify-e-mail-delivery/131855 "2008-03-13T23:04:09Z")

</div>

Are there any services or ways of verifying that an e-mail is reaching its recipient? I am using ActiveMailer and it works well but I may need to start ensuring that e-mails are delivered to the address specified.

---

## [Template being ignored when attaching pdf in e-mail](https://www.ruby-forum.com/t/template-being-ignored-when-attaching-pdf-in-e-mail/131860)

<div class="topic-metadata">

**Author:** [@keaja](https://www.ruby-forum.com/u/keaja)\
**Replies:** 0\
**Last updated:** [March 13, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/template-being-ignored-when-attaching-pdf-in-e-mail/131860 "2008-03-13T23:03:30Z")

</div>

The following code attaches my pdf with success. However, my e-mail template is not being rendered in the e-mail. Any idea’s why my template is ignored? require ‘pdf/writer’ class NotifierRequest \< ActionMailer::Base …

---

## [Where to put and how to use modules for models](https://www.ruby-forum.com/t/where-to-put-and-how-to-use-modules-for-models/131846)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 14\
**Last updated:** [March 13, 2008, 10:55pm UTC](https://www.ruby-forum.com/t/where-to-put-and-how-to-use-modules-for-models/131846 "2008-03-13T22:55:57Z")

</div>

I have written two helper methods that I wish to have these available in all of my models. I have placed them in a module called prep\_index\_string.rb which looks like this: module PrepIndexString This method prepare…

---

## [Argument error "wrong number of aguments (2 for 1)"](https://www.ruby-forum.com/t/argument-error-wrong-number-of-aguments-2-for-1/131722)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 3\
**Last updated:** [March 13, 2008, 10:37pm UTC](https://www.ruby-forum.com/t/argument-error-wrong-number-of-aguments-2-for-1/131722 "2008-03-13T22:37:36Z")

</div>

Hi, I am using rails 2.0.2 and when trying to edit table data the corresponding controller fires an argument error for the update method. I already tried to delete the plugins (except the globalize plugin) but nothin…

---

## [Convert find(:all) to hash with id as key](https://www.ruby-forum.com/t/convert-find-all-to-hash-with-id-as-key/131771)

<div class="topic-metadata">

**Author:** [@twifkak](https://www.ruby-forum.com/u/twifkak)\
**Replies:** 5\
**Last updated:** [March 13, 2008, 10:14pm UTC](https://www.ruby-forum.com/t/convert-find-all-to-hash-with-id-as-key/131771 "2008-03-13T22:14:36Z")

</div>

In one of my applications, I have a lot of queries that return just an id and a content column for each of the rows in the result. e.g. ±—±--------+ | id | content | ±—±--------+ | 35 + apple | | 79 + pear | …

---

## [RJS template dont-know-how](https://www.ruby-forum.com/t/rjs-template-dont-know-how/131794)

<div class="topic-metadata">

**Author:** [@sinm](https://www.ruby-forum.com/u/sinm)\
**Replies:** 9\
**Last updated:** [March 13, 2008, 9:59pm UTC](https://www.ruby-forum.com/t/rjs-template-dont-know-how/131794 "2008-03-13T21:59:17Z")

</div>

Hello! Get a problem out here. I need to update flash notice with every one remote request. Flash.now\[:notice\] does that trick but not for remoting methods. So I’ve applied some after\_filter (say clear\_notice\_on\_xhr)…

---

## [Typo capabilities integrated with my rails project](https://www.ruby-forum.com/t/typo-capabilities-integrated-with-my-rails-project/131853)

<div class="topic-metadata">

**Author:** [@grayson](https://www.ruby-forum.com/u/grayson)\
**Replies:** 0\
**Last updated:** [March 13, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/typo-capabilities-integrated-with-my-rails-project/131853 "2008-03-13T21:43:14Z")

</div>

Hello, I’m wondering what is the best way to integrate Typo into my rails project? I have the following special requirements: Only friends (as per http://agilewebdevelopment.com/plugins/has\_many\_friends) should be …

---

## [Reading files from dir](https://www.ruby-forum.com/t/reading-files-from-dir/72127)

<div class="topic-metadata">

**Author:** [@pie-social](https://www.ruby-forum.com/u/pie-social)\
**Replies:** 3\
**Last updated:** [March 13, 2008, 9:12pm UTC](https://www.ruby-forum.com/t/reading-files-from-dir/72127 "2008-03-13T21:12:20Z")

</div>

I have gif files in my public/images/posticons directory, I want to read their filenames without the extension to list the files as a set of radio buttons in the form: \[code\]\<%= radio\_button(“thread”, “posticon”, imgn…

---

## [People in ruby and rails](https://www.ruby-forum.com/t/people-in-ruby-and-rails/131842)

<div class="topic-metadata">

**Author:** [@betaband](https://www.ruby-forum.com/u/betaband)\
**Replies:** 9\
**Last updated:** [March 13, 2008, 9:05pm UTC](https://www.ruby-forum.com/t/people-in-ruby-and-rails/131842 "2008-03-13T21:05:27Z")

</div>

Hi. Soon i will be deciding between studying “pure” computer science, that is 5 years of unix, programming and the likes. But there are many other courses out there that are good. Obviously I will choose what i think …

---

## [A simple forum in rails](https://www.ruby-forum.com/t/a-simple-forum-in-rails/128817)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 14\
**Last updated:** [March 13, 2008, 8:31pm UTC](https://www.ruby-forum.com/t/a-simple-forum-in-rails/128817 "2008-03-13T20:31:26Z")

</div>

I’ve to make a simple forum for my app. The idea was to have: Forum -has many \< Forum\_subjects -has many\< posts Now I’ve made a form in which the user enters the subject and the first post, it was easy to add the sub…

---

## [AJAX slow - to\_json responsible?](https://www.ruby-forum.com/t/ajax-slow-to-json-responsible/131832)

<div class="topic-metadata">

**Author:** [@fero](https://www.ruby-forum.com/u/fero)\
**Replies:** 4\
**Last updated:** [March 13, 2008, 8:16pm UTC](https://www.ruby-forum.com/t/ajax-slow-to-json-responsible/131832 "2008-03-13T20:16:17Z")

</div>

Hello. I am building full-ajax back-end, which consits of many quite big partials. As the system grows up, performance is problem. After every click, partial is refreshed, if needed. I am now at 0.5 sec / request. I …

---

## [Memcache\_client fails Marshal.load of AR objects](https://www.ruby-forum.com/t/memcache-client-fails-marshal-load-of-ar-objects/131844)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 1\
**Last updated:** [March 13, 2008, 8:16pm UTC](https://www.ruby-forum.com/t/memcache-client-fails-marshal-load-of-ar-objects/131844 "2008-03-13T20:16:03Z")

</div>

wondering if anyone watching can make sense of this, I’m try to work the memcache\_client into my app, but every time it tries to read from memcache I get a Marshall error that the AR classes are not defined. But it’s…

---

## [Mail problem and rails 2.0.2](https://www.ruby-forum.com/t/mail-problem-and-rails-2-0-2/131850)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 0\
**Last updated:** [March 13, 2008, 8:10pm UTC](https://www.ruby-forum.com/t/mail-problem-and-rails-2-0-2/131850 "2008-03-13T20:10:11Z")

</div>

Hello, I have some code for sending mails. The same worked perfectly on a machine running rails version 1.2.5. Now i have moved the entire application to another system which is running rails 2.0.2 Whenever i try to …

---

## [Specifying user to run specific query through connection object](https://www.ruby-forum.com/t/specifying-user-to-run-specific-query-through-connection-object/131532)

<div class="topic-metadata">

**Author:** [@skt](https://www.ruby-forum.com/u/skt)\
**Replies:** 2\
**Last updated:** [March 13, 2008, 7:47pm UTC](https://www.ruby-forum.com/t/specifying-user-to-run-specific-query-through-connection-object/131532 "2008-03-13T19:47:26Z")

</div>

Hello Folks, I am trying to get my app up and running on a dedicated virtual server running on CentOS 5. I am using Ruby 1.8.5 and rails 1.2.3. I can access/update my MySql tables through normal interaction with the …

---

## [What is a superclass mismatch?](https://www.ruby-forum.com/t/what-is-a-superclass-mismatch/131843)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 2\
**Last updated:** [March 13, 2008, 7:38pm UTC](https://www.ruby-forum.com/t/what-is-a-superclass-mismatch/131843 "2008-03-13T19:38:01Z")

</div>

So I’ve created my first module by moving all of the administrative functions of my CMS under an ‘admin’ directory. Having done so, when I try and access my pages\_controller.rb file in admin, I get superclass mismatc…

---

## [How to relate models on field other than id](https://www.ruby-forum.com/t/how-to-relate-models-on-field-other-than-id/131840)

<div class="topic-metadata">

**Author:** [@charlie\_caroff](https://www.ruby-forum.com/u/charlie_caroff)\
**Replies:** 8\
**Last updated:** [March 13, 2008, 7:01pm UTC](https://www.ruby-forum.com/t/how-to-relate-models-on-field-other-than-id/131840 "2008-03-13T19:01:43Z")

</div>

Hi, The answer might be obvious, but I sure can’t find it. How do I related two tables in a model using a parent (the one side of a one-to-many relationship) field other than “id”, and a child (the many side of a one…

---

## [Swiss Payments](https://www.ruby-forum.com/t/swiss-payments/131841)

<div class="topic-metadata">

**Author:** [@Josh\_on\_Rails](https://www.ruby-forum.com/u/Josh_on_Rails)\
**Replies:** 1\
**Last updated:** [March 13, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/swiss-payments/131841 "2008-03-13T18:52:51Z")

</div>

Hello all – I’m looking for recommendations on payment processors that work in Switzerland. My client has a relationship with SaferPay, but that system appears somewhat tricky to integrate into a Rails app. Before I …

---

## [ActiveRecord :conditions syntax errors](https://www.ruby-forum.com/t/activerecord-conditions-syntax-errors/131835)

<div class="topic-metadata">

**Author:** [@jeremy](https://www.ruby-forum.com/u/jeremy)\
**Replies:** 2\
**Last updated:** [March 13, 2008, 6:42pm UTC](https://www.ruby-forum.com/t/activerecord-conditions-syntax-errors/131835 "2008-03-13T18:42:24Z")

</div>

Having trouble when I try to add a second condition to find. I’ve tried search and referencing ActiveRecord::Base, but not seeing a clear answer on my syntax. Working code: def cc\_class\_six @products = Product.find…

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

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