# Rails

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

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

---

## [Restaurant Ordering](https://www.ruby-forum.com/t/restaurant-ordering/176410)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 1\
**Last updated:** [September 30, 2009, 10:51am UTC](https://www.ruby-forum.com/t/restaurant-ordering/176410 "2009-09-30T10:51:59Z")

</div>

Hi All, I have following requirement for restaurant oredering. 1\] whenever the Buyer order something from a restaurant, a restaurant should get notified either through the A\] PRINT OUT or B\] FAX. is it possible to p…

---

## [NoMethodError in Stories#show](https://www.ruby-forum.com/t/nomethoderror-in-stories-show/176397)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 5\
**Last updated:** [September 30, 2009, 10:42am UTC](https://www.ruby-forum.com/t/nomethoderror-in-stories-show/176397 "2009-09-30T10:42:38Z")

</div>

I’m a Rails newbie and am working my way through Simply Rails 2 by Patrick Lenz. Have run into a problem on page 207 of the book; this is the error I run into when I fire up my server and open up httpL//localhost:3000…

---

## [MOM - Message Oriented Middleware for Rails](https://www.ruby-forum.com/t/mom-message-oriented-middleware-for-rails/176422)

<div class="topic-metadata">

**Author:** [@rtacconi](https://www.ruby-forum.com/u/rtacconi)\
**Replies:** 0\
**Last updated:** [September 30, 2009, 10:42am UTC](https://www.ruby-forum.com/t/mom-message-oriented-middleware-for-rails/176422 "2009-09-30T10:42:37Z")

</div>

I would like to develop a monitoring system with Ruby and Rails. I will have the agents in the server and the monitoring system, with a poller that will notify the Rails application. I have tested ActiveMQ, with JRuby…

---

## [Nested Resources and Redirects](https://www.ruby-forum.com/t/nested-resources-and-redirects/176417)

<div class="topic-metadata">

**Author:** [@dustin](https://www.ruby-forum.com/u/dustin)\
**Replies:** 0\
**Last updated:** [September 30, 2009, 9:05am UTC](https://www.ruby-forum.com/t/nested-resources-and-redirects/176417 "2009-09-30T09:05:27Z")

</div>

If I am keeping my resources at no more than one level deep how do I redirect a user back to the appropriate controller? Let’s say I have Persons who can create Emails that have multiple Email Items. Persons \> Emails…

---

## [RailRoad problem](https://www.ruby-forum.com/t/railroad-problem/175591)

<div class="topic-metadata">

**Author:** [@little\_kostas](https://www.ruby-forum.com/u/little_kostas)\
**Replies:** 1\
**Last updated:** [September 30, 2009, 8:54am UTC](https://www.ruby-forum.com/t/railroad-problem/175591 "2009-09-30T08:54:19Z")

</div>

Hi guys! I am having a problem using railroad gem while running the command: railroad -C | neato -Tpng \> controllers.png i get this error: c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active\_support/ depen…

---

## [Ar\_sendmail is sending mail twice](https://www.ruby-forum.com/t/ar-sendmail-is-sending-mail-twice/176411)

<div class="topic-metadata">

**Author:** [@manish](https://www.ruby-forum.com/u/manish)\
**Replies:** 0\
**Last updated:** [September 30, 2009, 8:45am UTC](https://www.ruby-forum.com/t/ar-sendmail-is-sending-mail-twice/176411 "2009-09-30T08:45:05Z")

</div>

Hi all I am using ar\_sendmail for sending mail. Its working fine but sometimes it sends a mail twice to a single user. Why this happens ? Plz help me… :frowning:

---

## [Mongrel](https://www.ruby-forum.com/t/mongrel/176407)

<div class="topic-metadata">

**Author:** [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Replies:** 0\
**Last updated:** [September 30, 2009, 7:27am UTC](https://www.ruby-forum.com/t/mongrel/176407 "2009-09-30T07:27:05Z")

</div>

What’s wrong with Mongrel and Ruby 1.9.1?

---

## [Keeping failed validations on the /new URL](https://www.ruby-forum.com/t/keeping-failed-validations-on-the-new-url/176393)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 1\
**Last updated:** [September 30, 2009, 3:38am UTC](https://www.ruby-forum.com/t/keeping-failed-validations-on-the-new-url/176393 "2009-09-30T03:38:48Z")

</div>

When I follow the standard: if @object.save redirect\_to wherever else render :action =\> “new” end this changes the URL from /object/new to /object I want it to stay at /object/new thanks

---

## [Adding record in database table](https://www.ruby-forum.com/t/adding-record-in-database-table/176348)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 3\
**Last updated:** [September 30, 2009, 3:11am UTC](https://www.ruby-forum.com/t/adding-record-in-database-table/176348 "2009-09-30T03:11:51Z")

</div>

Hi, I have a question that Is it possible to add record into the database table without adding the model for that? E.g. I have a table customers. And I haven’t created a model for that. Can I add a record into that t…

---

## [Encode and Encrypt Email Addresses](https://www.ruby-forum.com/t/encode-and-encrypt-email-addresses/176303)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [September 30, 2009, 3:04am UTC](https://www.ruby-forum.com/t/encode-and-encrypt-email-addresses/176303 "2009-09-30T03:04:15Z")

</div>

I want to provide a link for users to unsubscribe to our newsletter. I don’t want the actual email address to show up in the url. So I would like it something like /unsubscribe/wx313asdf31. What is the simplest meth…

---

## [Apache2 proxy problem](https://www.ruby-forum.com/t/apache2-proxy-problem/176388)

<div class="topic-metadata">

**Author:** [@gorter9](https://www.ruby-forum.com/u/gorter9)\
**Replies:** 1\
**Last updated:** [September 30, 2009, 2:06am UTC](https://www.ruby-forum.com/t/apache2-proxy-problem/176388 "2009-09-30T02:06:12Z")

</div>

I installed a new VPS and everything works well except the virtualhosts on Apache2.2 I have done this before but for now i can’t find why it doesn’t work. This is my virtual host \<VirtualHost \*\> ServerName gerdagor…

---

## [Prerender AJAX](https://www.ruby-forum.com/t/prerender-ajax/176381)

<div class="topic-metadata">

**Author:** [@timend](https://www.ruby-forum.com/u/timend)\
**Replies:** 0\
**Last updated:** [September 29, 2009, 9:56pm UTC](https://www.ruby-forum.com/t/prerender-ajax/176381 "2009-09-29T21:56:50Z")

</div>

Hi, I’ve got several AJAX actions in my controller and another action, that displays links that could trigger the AJAX calls. I’m trying to implement the following: 1.) Usually if the user clicks the link on the page…

---

## [ActiveRecord 2.3.3 in\_or\_equals\_for\_ids exception](https://www.ruby-forum.com/t/activerecord-2-3-3-in-or-equals-for-ids-exception/176332)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 9:39pm UTC](https://www.ruby-forum.com/t/activerecord-2-3-3-in-or-equals-for-ids-exception/176332 "2009-09-29T21:39:17Z")

</div>

Hi, Oracle Database using ActiveRecord 2.3.3 is throwing an exception when performing a find call. OvaSchedule.find(:all, :include =\> \[:ova\_program\]) The root cause seems to be the following: in file: association\_pr…

---

## [PHP app on the same server as Rails app](https://www.ruby-forum.com/t/php-app-on-the-same-server-as-rails-app/176313)

<div class="topic-metadata">

**Author:** [@russianbandit](https://www.ruby-forum.com/u/russianbandit)\
**Replies:** 8\
**Last updated:** [September 29, 2009, 9:37pm UTC](https://www.ruby-forum.com/t/php-app-on-the-same-server-as-rails-app/176313 "2009-09-29T21:37:57Z")

</div>

Hi, I am trying to figure out how to best serve a PHP app on the same server as my Rails app. Basically, the PHP app is a 3rd party blog that I want to be able to access on the same server. The server is powered by m…

---

## [Report in DOC/Word](https://www.ruby-forum.com/t/report-in-doc-word/176355)

<div class="topic-metadata">

**Author:** [@Marcello\_P](https://www.ruby-forum.com/u/Marcello_P)\
**Replies:** 16\
**Last updated:** [September 29, 2009, 9:30pm UTC](https://www.ruby-forum.com/t/report-in-doc-word/176355 "2009-09-29T21:30:54Z")

</div>

Hello all, I need to create a report and export it to Word/DOC in my Rails App… The problem is that is must be .doc. Can’t be .docx (XML) or RTF and my app is in a Linux box. Somebody can help me with that ?? Than…

---

## [BBCode Parser](https://www.ruby-forum.com/t/bbcode-parser/176378)

<div class="topic-metadata">

**Author:** [@stephen](https://www.ruby-forum.com/u/stephen)\
**Replies:** 0\
**Last updated:** [September 29, 2009, 9:02pm UTC](https://www.ruby-forum.com/t/bbcode-parser/176378 "2009-09-29T21:02:59Z")

</div>

Hi all, I needed a robust bbcode parser - the existing ruby libaries have alot of issues with them so I ended up taking the c++ project from Sourceforge and wrote a small wrapper. So if anyone could use… http://ru…

---

## [Void value expression when accessing constant from view](https://www.ruby-forum.com/t/void-value-expression-when-accessing-constant-from-view/176360)

<div class="topic-metadata">

**Author:** [@Martijn\_Vos](https://www.ruby-forum.com/u/Martijn_Vos)\
**Replies:** 3\
**Last updated:** [September 29, 2009, 8:56pm UTC](https://www.ruby-forum.com/t/void-value-expression-when-accessing-constant-from-view/176360 "2009-09-29T20:56:25Z")

</div>

I’m working on a Rails app using version 2.3.4. I’ve got a big form somewhere that uses nested attributes, but I can’t seem to access the constants from the other class. Here’s basically what I’m doing: class User \< …

---

## [Truncate doesn't work with Snow Leopard](https://www.ruby-forum.com/t/truncate-doesnt-work-with-snow-leopard/176335)

<div class="topic-metadata">

**Author:** [@joey](https://www.ruby-forum.com/u/joey)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 8:22pm UTC](https://www.ruby-forum.com/t/truncate-doesnt-work-with-snow-leopard/176335 "2009-09-29T20:22:34Z")

</div>

Hi All I just upgrade to Snow Leopard, but find Truncate function cannot work with Snow Leopard. Does anybody have solution for this issue? Thanks. Joey

---

## [widgEditor submit problem](https://www.ruby-forum.com/t/widgeditor-submit-problem/176369)

<div class="topic-metadata">

**Author:** [@joro](https://www.ruby-forum.com/u/joro)\
**Replies:** 0\
**Last updated:** [September 29, 2009, 6:33pm UTC](https://www.ruby-forum.com/t/widgeditor-submit-problem/176369 "2009-09-29T18:33:05Z")

</div>

when I am using the widgEditor with model form so \<%= form\_for @person do |f| %\> … \<%= f.text\_area :content, :class=\>‘widgEditor’ %\> … \<%= f.submit “Submit” %\> when I submit the form it does not work because it tri…

---

## [What is the most efficient way to split a table into 2 groups?](https://www.ruby-forum.com/t/what-is-the-most-efficient-way-to-split-a-table-into-2-groups/176307)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 6\
**Last updated:** [September 29, 2009, 6:31pm UTC](https://www.ruby-forum.com/t/what-is-the-most-efficient-way-to-split-a-table-into-2-groups/176307 "2009-09-29T18:31:20Z")

</div>

I have the following: @lot = Lot.find(params\[:id\]) part\_nums = Part.all(:conditions =\> \[“id \<\> ?”, @lot.part.id\]) I guess I should mention that Lot :belongs\_to =\> :part I was looking at the log following the executi…

---

## [Rails 2.3.3 upgrade shows error](https://www.ruby-forum.com/t/rails-2-3-3-upgrade-shows-error/176340)

<div class="topic-metadata">

**Author:** [@san2821](https://www.ruby-forum.com/u/san2821)\
**Replies:** 10\
**Last updated:** [September 29, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/rails-2-3-3-upgrade-shows-error/176340 "2009-09-29T16:41:13Z")

</div>

You have a nil object when you didn’t expect it! You might have expected an instance of Array. The error occurred while evaluating nil.\<\< any ideas ? Application works fine with rails 2.1.0 Sandip – Ruby on Rails …

---

## [Gem or plugin?](https://www.ruby-forum.com/t/gem-or-plugin/176358)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 4\
**Last updated:** [September 29, 2009, 4:19pm UTC](https://www.ruby-forum.com/t/gem-or-plugin/176358 "2009-09-29T16:19:33Z")

</div>

I have never packaged any code for a Rails app before. I have read a fair amount about differences between Gems and Rails plugins, but I was wanting to get some other opinions. I have a small cms I have built. As far …

---

## [Uninitialized constant](https://www.ruby-forum.com/t/uninitialized-constant/174344)

<div class="topic-metadata">

**Author:** [@sushrut](https://www.ruby-forum.com/u/sushrut)\
**Replies:** 5\
**Last updated:** [September 29, 2009, 4:05pm UTC](https://www.ruby-forum.com/t/uninitialized-constant/174344 "2009-09-29T16:05:30Z")

</div>

API-\> hello\_message\_api.rb. class HelloMessageApi \< ActionWebService::API::Base api\_method :hello\_message, :expects =\> \[{:firstname=\>:string}, {:lastname=\>:string}\], :returns =\> \[:string\] end controller -\> class H…

---

## [How to validate presence of phone number or mobile phone](https://www.ruby-forum.com/t/how-to-validate-presence-of-phone-number-or-mobile-phone/197101)

<div class="topic-metadata">

**Author:** [@thriving](https://www.ruby-forum.com/u/thriving)\
**Replies:** 10\
**Last updated:** [September 29, 2009, 3:34pm UTC](https://www.ruby-forum.com/t/how-to-validate-presence-of-phone-number-or-mobile-phone/197101 "2009-09-29T15:34:44Z")

</div>

In my model of user.rb there are phone number and mobile number. i want to validate if phone number and mobile number are exist or not(not neccessary to do both). how to do that

---

## [Object has invalid ID after rollback](https://www.ruby-forum.com/t/object-has-invalid-id-after-rollback/176177)

<div class="topic-metadata">

**Author:** [@tnyplz](https://www.ruby-forum.com/u/tnyplz)\
**Replies:** 4\
**Last updated:** [September 29, 2009, 2:54pm UTC](https://www.ruby-forum.com/t/object-has-invalid-id-after-rollback/176177 "2009-09-29T14:54:39Z")

</div>

I suspect there is a standard way to handle this issue but I haven’t found it. In my controller create action I have a Transaction. Lets say I’m creating a user object here. def new User.transaction do @user = Use…

---

## [How to save data into database from xml](https://www.ruby-forum.com/t/how-to-save-data-into-database-from-xml/176354)

<div class="topic-metadata">

**Author:** [@preksha](https://www.ruby-forum.com/u/preksha)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 2:45pm UTC](https://www.ruby-forum.com/t/how-to-save-data-into-database-from-xml/176354 "2009-09-29T14:45:17Z")

</div>

Hi all, I am trying to parse data from rss feed using feed-normalizer which is work properly but now i want to save that data into the database which i am not able to do…so can any one please help me?? Thanks, Preks…

---

## [Where is my fragment cache?](https://www.ruby-forum.com/t/where-is-my-fragment-cache/176351)

<div class="topic-metadata">

**Author:** [@zaczheng](https://www.ruby-forum.com/u/zaczheng)\
**Replies:** 2\
**Last updated:** [September 29, 2009, 2:11pm UTC](https://www.ruby-forum.com/t/where-is-my-fragment-cache/176351 "2009-09-29T14:11:14Z")

</div>

I have been tearing my hair out trying to locate my fragment cache files. For some reason they have recently disappeared. Let me explain. I am using: Rails 2.3.4 Ruby 1.8.7 Ubuntu 9.04 I have set my cache to file\_s…

---

## [How to validate presence of phone number or mobile phone](https://www.ruby-forum.com/t/how-to-validate-presence-of-phone-number-or-mobile-phone/176277)

<div class="topic-metadata">

**Author:** [@thriving](https://www.ruby-forum.com/u/thriving)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 1:03pm UTC](https://www.ruby-forum.com/t/how-to-validate-presence-of-phone-number-or-mobile-phone/176277 "2009-09-29T13:03:20Z")

</div>

In my model of user.rb there are phone number and mobile number. i want to validate if phone number and mobile number are exist or not(not neccessary to do both). how to do that

---

## [Update counter cache for 2 models](https://www.ruby-forum.com/t/update-counter-cache-for-2-models/176341)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 5\
**Last updated:** [September 29, 2009, 1:02pm UTC](https://www.ruby-forum.com/t/update-counter-cache-for-2-models/176341 "2009-09-29T13:02:50Z")

</div>

Let’s say I have the following models: User, has\_many :messages, :topics Forum, has\_many :topics Topic, belongs\_to :user, has\_many :messages Message, belongs\_to :user, :topic How to tell both User and Topic, that a …

---

## [Best RoR hosting](https://www.ruby-forum.com/t/best-ror-hosting/176349)

<div class="topic-metadata">

**Author:** [@ialuronico](https://www.ruby-forum.com/u/ialuronico)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 12:57pm UTC](https://www.ruby-forum.com/t/best-ror-hosting/176349 "2009-09-29T12:57:32Z")

</div>

Hi everybody, I need some hint for running my RoR application. My need are: read/write filesystem for saving user docs ( so no heroku) Postgres thnks

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

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