# Rails

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

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

---

## [Paypal issue](https://www.ruby-forum.com/t/paypal-issue/176917)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 1\
**Last updated:** [October 8, 2009, 8:56am UTC](https://www.ruby-forum.com/t/paypal-issue/176917 "2009-10-08T08:56:32Z")

</div>

Hi All, I’m using paypal for transaction in my site, it is working properly for the scenario of sending money from one person to another person but if I want to send money from one person to multiple persons with mult…

---

## [Removing extranious html](https://www.ruby-forum.com/t/removing-extranious-html/176916)

<div class="topic-metadata">

**Author:** [@morgan](https://www.ruby-forum.com/u/morgan)\
**Replies:** 2\
**Last updated:** [October 8, 2009, 7:21am UTC](https://www.ruby-forum.com/t/removing-extranious-html/176916 "2009-10-08T07:21:29Z")

</div>

I can’t seem to find a way to do this… i have a bunch of html files that i just need to remove from the \<!DOCTYPE to the tag on the top then i need to remove from to on the bottom. i looked at gsub and i’m learnin…

---

## [Best way to share a plugin between different Rails application](https://www.ruby-forum.com/t/best-way-to-share-a-plugin-between-different-rails-application/176909)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 1\
**Last updated:** [October 8, 2009, 12:14am UTC](https://www.ruby-forum.com/t/best-way-to-share-a-plugin-between-different-rails-application/176909 "2009-10-08T00:14:12Z")

</div>

Hello list, Ok, so this issue might be a topic for a design pattern that has already been discussed a lot around the Rails community, but the information I found is too disperse, and I would like some specific advice…

---

## [Rails and SQLITE](https://www.ruby-forum.com/t/rails-and-sqlite/176870)

<div class="topic-metadata">

**Author:** [@Hirak](https://www.ruby-forum.com/u/Hirak)\
**Replies:** 5\
**Last updated:** [October 7, 2009, 11:47pm UTC](https://www.ruby-forum.com/t/rails-and-sqlite/176870 "2009-10-07T23:47:16Z")

</div>

Hi, I am new to sqlite3. Is there any good tutorial where I can learn how to use sqlite3 databases with Rails. Thanks Hirak

---

## [RESTful XML requests, how to?](https://www.ruby-forum.com/t/restful-xml-requests-how-to/176908)

<div class="topic-metadata">

**Author:** [@eltercero](https://www.ruby-forum.com/u/eltercero)\
**Replies:** 0\
**Last updated:** [October 7, 2009, 11:37pm UTC](https://www.ruby-forum.com/t/restful-xml-requests-how-to/176908 "2009-10-07T23:37:43Z")

</div>

Hi there, I’m reading a lot of REST for adding web services to my web app, but I’m pretty newbie to all this an I have some doubts. I need my app to admit xml requests, but all I have read about REST it gets just stri…

---

## [Nested form](https://www.ruby-forum.com/t/nested-form/176906)

<div class="topic-metadata">

**Author:** [@djtal](https://www.ruby-forum.com/u/djtal)\
**Replies:** 0\
**Last updated:** [October 7, 2009, 11:22pm UTC](https://www.ruby-forum.com/t/nested-form/176906 "2009-10-07T23:22:04Z")

</div>

Hello, I’ve got a problem with the creation of a nested form for this situation I’ve got 3 models as follow Game -\> has\_many :authorships Authorship -\> belong\_to :author -\> belong\_to :game Author belong\_to :au…

---

## [How to display results from 2 views](https://www.ruby-forum.com/t/how-to-display-results-from-2-views/176896)

<div class="topic-metadata">

**Author:** [@josihovo](https://www.ruby-forum.com/u/josihovo)\
**Replies:** 2\
**Last updated:** [October 7, 2009, 10:06pm UTC](https://www.ruby-forum.com/t/how-to-display-results-from-2-views/176896 "2009-10-07T22:06:31Z")

</div>

Plz Help… I just started studying Ruby so plz don't mind if my question is too novice for this forumm. I have made 2 simple database tables clients and servers and used scaffold to generate controller and views fo…

---

## [Help: awesome\_nested\_set](https://www.ruby-forum.com/t/help-awesome-nested-set/176811)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 10\
**Last updated:** [October 7, 2009, 9:43pm UTC](https://www.ruby-forum.com/t/help-awesome-nested-set/176811 "2009-10-07T21:43:04Z")

</div>

hi, how can i select & build a recursive xml-response of all roots (PLURAL) ?meaning not only 1st-level-children, but all level… eg FaqCategory.find(:all, :conditions =\> \[‘parent\_id IS NULL’\]).ALL.full\_set but for…

---

## [During upgrade, schema\_migrations table not populated](https://www.ruby-forum.com/t/during-upgrade-schema-migrations-table-not-populated/176902)

<div class="topic-metadata">

**Author:** [@terrii](https://www.ruby-forum.com/u/terrii)\
**Replies:** 0\
**Last updated:** [October 7, 2009, 9:34pm UTC](https://www.ruby-forum.com/t/during-upgrade-schema-migrations-table-not-populated/176902 "2009-10-07T21:34:58Z")

</div>

We upgraded our app from Rails 1.2 to 2.3. There were no outstanding database migrations, i.e. the database was up-to-date during the upgrade/deployment process. The schema\_migrations table was created, but it was …

---

## [Routes: \_path vs. \_url](https://www.ruby-forum.com/t/routes-path-vs-url/176899)

<div class="topic-metadata">

**Author:** [@zakscott](https://www.ruby-forum.com/u/zakscott)\
**Replies:** 1\
**Last updated:** [October 7, 2009, 9:22pm UTC](https://www.ruby-forum.com/t/routes-path-vs-url/176899 "2009-10-07T21:22:36Z")

</div>

Routes offers you the ability to use \_path or \_url as a way to make links/redirect/etc throughout your site. However, I’m just wondering when you should use \_path and when you should use \_url. Is there a preference to…

---

## [Multiple Domains Different Layouts](https://www.ruby-forum.com/t/multiple-domains-different-layouts/176894)

<div class="topic-metadata">

**Author:** [@Sean\_McGilvray](https://www.ruby-forum.com/u/Sean_McGilvray)\
**Replies:** 1\
**Last updated:** [October 7, 2009, 7:44pm UTC](https://www.ruby-forum.com/t/multiple-domains-different-layouts/176894 "2009-10-07T19:44:16Z")

</div>

Hey everyone, How do I do a before\_filter @request.env\[‘HOST’\] = “somesite.com” and tell it to display a different layout based on the requested domain? Thanks, Sean McGilvray

---

## [Image Resizing](https://www.ruby-forum.com/t/image-resizing/176831)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 2\
**Last updated:** [October 7, 2009, 7:38pm UTC](https://www.ruby-forum.com/t/image-resizing/176831 "2009-10-07T19:38:25Z")

</div>

I have a need for the capability to re-size images. I have no need to do anything other than re-size images. Having searched the posts in this group, it seems that the conventional solution is to use ImageMagick/Min…

---

## [Spec testing controllers](https://www.ruby-forum.com/t/spec-testing-controllers/176685)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 3\
**Last updated:** [October 7, 2009, 7:21pm UTC](https://www.ruby-forum.com/t/spec-testing-controllers/176685 "2009-10-07T19:21:29Z")

</div>

I just started using rspec and mocha to test all of my controllers. Before I was using factory girl to test do my testing, but all those database hits really take a long time. However i’m finding i’m spending way more…

---

## [RMagick problem on Windows](https://www.ruby-forum.com/t/rmagick-problem-on-windows/176883)

<div class="topic-metadata">

**Author:** [@sgurbat](https://www.ruby-forum.com/u/sgurbat)\
**Replies:** 2\
**Last updated:** [October 7, 2009, 6:57pm UTC](https://www.ruby-forum.com/t/rmagick-problem-on-windows/176883 "2009-10-07T18:57:49Z")

</div>

Hi all, for first sorry for my english. I’ve a little problem with RMagick on Windows Vista. I’ve decided to use the “Paperclip” plugin an it works fine, than I’ve decided to install RMagick in order to create image …

---

## [How to debug unit (and other) tests?](https://www.ruby-forum.com/t/how-to-debug-unit-and-other-tests/176882)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 5\
**Last updated:** [October 7, 2009, 6:46pm UTC](https://www.ruby-forum.com/t/how-to-debug-unit-and-other-tests/176882 "2009-10-07T18:46:52Z")

</div>

I’m sorry if this sounds like a totally newbie question, but… Are there good tips and resources for debugging unit tests? Currently, I just fire up script/console using the “test” environment and just poke around rand…

---

## [What in the world might this be?](https://www.ruby-forum.com/t/what-in-the-world-might-this-be/176880)

<div class="topic-metadata">

**Author:** [@RVince](https://www.ruby-forum.com/u/RVince)\
**Replies:** 1\
**Last updated:** [October 7, 2009, 6:43pm UTC](https://www.ruby-forum.com/t/what-in-the-world-might-this-be/176880 "2009-10-07T18:43:54Z")

</div>

I am using the autocomplete plugin succesfully in a Rails 2.3.2 application. However, when I run in firebug, when it first renders, I get the following error, below. Can anyone tell me what on earth might be the cause…

---

## [Audio/video file read](https://www.ruby-forum.com/t/audio-video-file-read/176871)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 8\
**Last updated:** [October 7, 2009, 6:41pm UTC](https://www.ruby-forum.com/t/audio-video-file-read/176871 "2009-10-07T18:41:36Z")

</div>

Hi All, I want to read an audio/video file using rails. please suggest me how can i achieve it!! Thanks, Saurabh

---

## [Suggestions on best JavaScript library for 2D drawing](https://www.ruby-forum.com/t/suggestions-on-best-javascript-library-for-2d-drawing/176891)

<div class="topic-metadata">

**Author:** [@ESLitwin](https://www.ruby-forum.com/u/ESLitwin)\
**Replies:** 0\
**Last updated:** [October 7, 2009, 6:35pm UTC](https://www.ruby-forum.com/t/suggestions-on-best-javascript-library-for-2d-drawing/176891 "2009-10-07T18:35:10Z")

</div>

I need to develop a flow charting like feature for a new application. (i.e. Drawing/sizing simple 2D shapes like squares or circles, connecting them with straight or curved lines and being able to drag and drop the sh…

---

## [Unique indexes](https://www.ruby-forum.com/t/unique-indexes/176881)

<div class="topic-metadata">

**Author:** [@RVince](https://www.ruby-forum.com/u/RVince)\
**Replies:** 3\
**Last updated:** [October 7, 2009, 6:29pm UTC](https://www.ruby-forum.com/t/unique-indexes/176881 "2009-10-07T18:29:18Z")

</div>

I have a unique index on Channelnote.note. In my controller, I go to save the Channelnote. But, if the note portion already exists, it naturally throws an error. How can I alleviate this, so that it only saves if the …

---

## [Rails Authentication Tutorial](https://www.ruby-forum.com/t/rails-authentication-tutorial/176055)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 13\
**Last updated:** [October 7, 2009, 6:18pm UTC](https://www.ruby-forum.com/t/rails-authentication-tutorial/176055 "2009-10-07T18:18:45Z")

</div>

Does anyone know a good authentication tutorial they can suggest? I’ve tried several restful authentication ones and an authlogic one on RailsCast. But with each one I try, something seems to be missing in the tutoria…

---

## [Output validations errors form causing type error?](https://www.ruby-forum.com/t/output-validations-errors-form-causing-type-error/176887)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 7, 2009, 5:26pm UTC](https://www.ruby-forum.com/t/output-validations-errors-form-causing-type-error/176887 "2009-10-07T17:26:02Z")

</div>

Hi, I was wondering if it is possible to output validation errors in a nested form? I suppose this should be possible, but I am experiencing an error message that I can’t track down. The error I get is the following …

---

## [Access params in before\_validation?](https://www.ruby-forum.com/t/access-params-in-before-validation/163719)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 7\
**Last updated:** [October 7, 2009, 4:00pm UTC](https://www.ruby-forum.com/t/access-params-in-before-validation/163719 "2009-10-07T16:00:34Z")

</div>

Hey people, does anyone know if it’s possible to access params inside the before\_validation function?

---

## [How do i use a loop to fill an array?](https://www.ruby-forum.com/t/how-do-i-use-a-loop-to-fill-an-array/176832)

<div class="topic-metadata">

**Author:** [@batmandawg](https://www.ruby-forum.com/u/batmandawg)\
**Replies:** 2\
**Last updated:** [October 7, 2009, 2:18pm UTC](https://www.ruby-forum.com/t/how-do-i-use-a-loop-to-fill-an-array/176832 "2009-10-07T14:18:06Z")

</div>

i am trying to use a loop to fill an array with numbers from 0 through 25, but i have no idea how to do it. Can someone please help? thank you

---

## [Sessions and rich join tables](https://www.ruby-forum.com/t/sessions-and-rich-join-tables/176854)

<div class="topic-metadata">

**Author:** [@sajeev86](https://www.ruby-forum.com/u/sajeev86)\
**Replies:** 1\
**Last updated:** [October 7, 2009, 1:04pm UTC](https://www.ruby-forum.com/t/sessions-and-rich-join-tables/176854 "2009-10-07T13:04:19Z")

</div>

I’m trying to make a simple quiz app, but I’m confused as to how to work with sessions. I have User table, Questions table. And I need to store the responses of each questions by each user, so for example, user\_id 2 a…

---

## [Empty validation error messages?](https://www.ruby-forum.com/t/empty-validation-error-messages/176875)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 1\
**Last updated:** [October 7, 2009, 12:47pm UTC](https://www.ruby-forum.com/t/empty-validation-error-messages/176875 "2009-10-07T12:47:26Z")

</div>

Hello, I’m have a form and the error messages are not being displayed properly I got a remote\_form\_for and am trying to show errors like I always do: \<%= error\_messages\_for @user%\> but the output is: 4 errors prohib…

---

## ["Overriding" association build methods](https://www.ruby-forum.com/t/overriding-association-build-methods/176856)

<div class="topic-metadata">

**Author:** [@tristan](https://www.ruby-forum.com/u/tristan)\
**Replies:** 2\
**Last updated:** [October 7, 2009, 10:47am UTC](https://www.ruby-forum.com/t/overriding-association-build-methods/176856 "2009-10-07T10:47:21Z")

</div>

Hey everyone I have (in a nutshell) two models: Customer and Order. Customer has\_many Orders and Order belongs\_to Customer. The Order model contains fields such as name, address and phone that mirror the associated C…

---

## [Updated Ruby midi Music composing Software scripts](https://www.ruby-forum.com/t/updated-ruby-midi-music-composing-software-scripts/176865)

<div class="topic-metadata">

**Author:** [@GabrielG1976](https://www.ruby-forum.com/u/GabrielG1976)\
**Replies:** 0\
**Last updated:** [October 7, 2009, 7:49am UTC](https://www.ruby-forum.com/t/updated-ruby-midi-music-composing-software-scripts/176865 "2009-10-07T07:49:24Z")

</div>

Hello everyone, I have finally got around to updating my ruby music project on Github I added a link from my blog to it if your interested in helping out or sharing your ideas… Hoping to have the Midi chart generat…

---

## [Attachment\_fu generates wrong public\_filename](https://www.ruby-forum.com/t/attachment-fu-generates-wrong-public-filename/176858)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 0\
**Last updated:** [October 7, 2009, 6:03am UTC](https://www.ruby-forum.com/t/attachment-fu-generates-wrong-public-filename/176858 "2009-10-07T06:03:04Z")

</div>

Hi, attachment\_fu generates wrong public\_filename. pic.thumbnails =\> ProductPicture id: 12331, product\_id: nil, parent\_id: 12330, content\_type: “image/png”, filename: “b\_9788994035109\_mid.png”, thumbnail: “mid”, s…

---

## [Problem with RJS, params and Internet Explorer](https://www.ruby-forum.com/t/problem-with-rjs-params-and-internet-explorer/176808)

<div class="topic-metadata">

**Author:** [@alexeispirit](https://www.ruby-forum.com/u/alexeispirit)\
**Replies:** 8\
**Last updated:** [October 7, 2009, 5:55am UTC](https://www.ruby-forum.com/t/problem-with-rjs-params-and-internet-explorer/176808 "2009-10-07T05:55:07Z")

</div>

Hi, I have some RJS code to update my select fields. It perfectly works on Firefox, but IE don’t want to send params to controller. Here is the code in view: \<%= select(“incident”,“service\_group\_id”, @service\_groups,…

---

## [Routes configuration](https://www.ruby-forum.com/t/routes-configuration/176733)

<div class="topic-metadata">

**Author:** [@murraj](https://www.ruby-forum.com/u/murraj)\
**Replies:** 2\
**Last updated:** [October 7, 2009, 5:44am UTC](https://www.ruby-forum.com/t/routes-configuration/176733 "2009-10-07T05:44:07Z")

</div>

Hello all, I need a suggestion in routes configuration. My requirement is to get all the parameters after the username in a URL, as a one string. That is, consider my url is http://example.com/raj/123/456/789/101 He…

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

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