# Rails

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

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

---

## [Account verification through E-mail](https://www.ruby-forum.com/t/account-verification-through-e-mail/155377)

<div class="topic-metadata">

**Author:** [@indu](https://www.ruby-forum.com/u/indu)\
**Replies:** 1\
**Last updated:** [December 11, 2008, 6:50am UTC](https://www.ruby-forum.com/t/account-verification-through-e-mail/155377 "2008-12-11T06:50:59Z")

</div>

Hello everyone Please give suggestion about how to implement an email verification system? By this I mean, a user subscribes(sign up) receives an email with a link and has to follow that link to change the status of…

---

## [Rails noob confusion - HTML Form Post to Rails Controller?](https://www.ruby-forum.com/t/rails-noob-confusion-html-form-post-to-rails-controller/155196)

<div class="topic-metadata">

**Author:** [@Jferg](https://www.ruby-forum.com/u/Jferg)\
**Replies:** 3\
**Last updated:** [December 11, 2008, 6:47am UTC](https://www.ruby-forum.com/t/rails-noob-confusion-html-form-post-to-rails-controller/155196 "2008-12-11T06:47:42Z")

</div>

I have recently been learning and trying to develop some application parts using Rails. One issue I may have is that one of the potential clients will want to have one of their external web pages POST to the Rails co…

---

## [Observe\_field and disptcher problem](https://www.ruby-forum.com/t/observe-field-and-disptcher-problem/155317)

<div class="topic-metadata">

**Author:** [@gpierce](https://www.ruby-forum.com/u/gpierce)\
**Replies:** 1\
**Last updated:** [December 11, 2008, 6:01am UTC](https://www.ruby-forum.com/t/observe-field-and-disptcher-problem/155317 "2008-12-11T06:01:58Z")

</div>

Hello everyone, I am trying to make live-search list with observe\_field and I still have the problem with invoking the proper action. Take a look at the following code: index.html.erb: \<%= text\_field\_tag “search” %\>…

---

## [Session not getting destroyed on Logout](https://www.ruby-forum.com/t/session-not-getting-destroyed-on-logout/155354)

<div class="topic-metadata">

**Author:** [@jack](https://www.ruby-forum.com/u/jack)\
**Replies:** 5\
**Last updated:** [December 11, 2008, 5:38am UTC](https://www.ruby-forum.com/t/session-not-getting-destroyed-on-logout/155354 "2008-12-11T05:38:22Z")

</div>

Hi, I’m trying to destroy session when user clicks logout in rails…Here is the code: def logout reset\_session redirect\_to CASClient::Frameworks::Rails::Filter.client.logout\_url (request.referer, url\_for (:controll…

---

## [Installation frustation!](https://www.ruby-forum.com/t/installation-frustation/155362)

<div class="topic-metadata">

**Author:** [@daveh0](https://www.ruby-forum.com/u/daveh0)\
**Replies:** 0\
**Last updated:** [December 11, 2008, 1:29am UTC](https://www.ruby-forum.com/t/installation-frustation/155362 "2008-12-11T01:29:12Z")

</div>

i just tried downloading instantrails and it didn’t work! i was told to go to ruby forge and download a zip file but there was no zip file just an exe. file. it didn’t work, any suggestions where i can find a site tha…

---

## [Sort\_by not working](https://www.ruby-forum.com/t/sort-by-not-working/155353)

<div class="topic-metadata">

**Author:** [@SurviveStyle5](https://www.ruby-forum.com/u/SurviveStyle5)\
**Replies:** 2\
**Last updated:** [December 10, 2008, 11:24pm UTC](https://www.ruby-forum.com/t/sort-by-not-working/155353 "2008-12-10T23:24:05Z")

</div>

I’m having a weird issue where if say… someobject.items.sort\_by {|item| item.key } #or someobject.items.sort\_by &:key #then someobject.items.each do |item| #somestuff end #somestuff is not in sorted order. if i …

---

## [What does the --git option do?](https://www.ruby-forum.com/t/what-does-the-git-option-do/155347)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 1\
**Last updated:** [December 10, 2008, 10:24pm UTC](https://www.ruby-forum.com/t/what-does-the-git-option-do/155347 "2008-12-10T22:24:50Z")

</div>

in starting a new project, i decided to try using the --git option to see what would happen… i figured it might just make up a new project and put the whole thing under git control… unfortunately, all i got was: fat…

---

## [Update table with ActiveRecord](https://www.ruby-forum.com/t/update-table-with-activerecord/155349)

<div class="topic-metadata">

**Author:** [@unni123](https://www.ruby-forum.com/u/unni123)\
**Replies:** 1\
**Last updated:** [December 10, 2008, 10:09pm UTC](https://www.ruby-forum.com/t/update-table-with-activerecord/155349 "2008-12-10T22:09:31Z")

</div>

How do i do an “update posts set home=1” with ActiveRecord?

---

## [Rhodes - a microframework for building native mobile device applications](https://www.ruby-forum.com/t/rhodes-a-microframework-for-building-native-mobile-device-applications/155344)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 0\
**Last updated:** [December 10, 2008, 8:28pm UTC](https://www.ruby-forum.com/t/rhodes-a-microframework-for-building-native-mobile-device-applications/155344 "2008-12-10T20:28:26Z")

</div>

The Rhodes framework (available at rhomobile / Tau · GitHub) is an open source Ruby-based platform for building locally executing, device- optimized mobile applications. It is similar in concept to MVC frameworks such…

---

## [How to make a copy of a collection in the update controller method](https://www.ruby-forum.com/t/how-to-make-a-copy-of-a-collection-in-the-update-controller-method/155068)

<div class="topic-metadata">

**Author:** [@jim](https://www.ruby-forum.com/u/jim)\
**Replies:** 2\
**Last updated:** [December 10, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/how-to-make-a-copy-of-a-collection-in-the-update-controller-method/155068 "2008-12-10T20:02:02Z")

</div>

I can’t figure this out. Imagine a Ticket object and this object has\_many LineItems Now, my ticket edit form will allow user to modify Ticket attributes and add/modify/delete LineItems at will. So the edit action sen…

---

## [\[SOLVED thanks Frederick\] was Re: newbie stumped - when form validates, normally return is fine, but](https://www.ruby-forum.com/t/solved-thanks-frederick-was-re-newbie-stumped-when-form-validates-normally-return-is-fine-but/155337)

<div class="topic-metadata">

**Author:** [@rick](https://www.ruby-forum.com/u/rick)\
**Replies:** 1\
**Last updated:** [December 10, 2008, 7:15pm UTC](https://www.ruby-forum.com/t/solved-thanks-frederick-was-re-newbie-stumped-when-form-validates-normally-return-is-fine-but/155337 "2008-12-10T19:15:33Z")

</div>

Thanks Frederick. Your explanation was perfect! (Now I’ll work on figuring out how to handle the problem creating the checkbox manually, but you got me on the right path.) (Seriously, send my a paypal link or else I’l…

---

## [Subclassing vs mixins, which one should be used?](https://www.ruby-forum.com/t/subclassing-vs-mixins-which-one-should-be-used/155270)

<div class="topic-metadata">

**Author:** [@bushymark](https://www.ruby-forum.com/u/bushymark)\
**Replies:** 7\
**Last updated:** [December 10, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/subclassing-vs-mixins-which-one-should-be-used/155270 "2008-12-10T19:10:51Z")

</div>

Hey all, I have two models in my rails project that share a lot of traits. They each have the same 4 properties, and now I need to add 2-3 methods to each one that will be the same. In the spirit of DRY I am looking f…

---

## [Shopping cart (Newbie)](https://www.ruby-forum.com/t/shopping-cart-newbie/155340)

<div class="topic-metadata">

**Author:** [@ernie](https://www.ruby-forum.com/u/ernie)\
**Replies:** 0\
**Last updated:** [December 10, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/shopping-cart-newbie/155340 "2008-12-10T19:06:42Z")

</div>

I have a shopping cart project that I am putting together. I am able to combine items and get the correct price, however the quantity does not show up as to how many of the same item is being bought. Here is my code. …

---

## [Linking to new types of files from a rails app](https://www.ruby-forum.com/t/linking-to-new-types-of-files-from-a-rails-app/155336)

<div class="topic-metadata">

**Author:** [@joshualevy](https://www.ruby-forum.com/u/joshualevy)\
**Replies:** 0\
**Last updated:** [December 10, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/linking-to-new-types-of-files-from-a-rails-app/155336 "2008-12-10T18:33:50Z")

</div>

I’m developing a RoR app that uses a custom file type. I’m using file\_column plugin to upload the files into my rails application, and that part works great. However I then need to render these files. I have an app…

---

## [Will\_Paginate, with muliple same type collection](https://www.ruby-forum.com/t/will-paginate-with-muliple-same-type-collection/155332)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 1\
**Last updated:** [December 10, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/will-paginate-with-muliple-same-type-collection/155332 "2008-12-10T18:22:41Z")

</div>

Hi guys: i have a question about Will\_paginate . i have mutilple same type collections. for example . items\_1 = Post.find(:all , :conditions =\>{…}) # different condtions to get the items\_1 items\_2 = Post.find(:all,…

---

## [\[ANN\] The Ruport Book completely free after New Years](https://www.ruby-forum.com/t/ann-the-ruport-book-completely-free-after-new-years/196860)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [December 10, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/ann-the-ruport-book-completely-free-after-new-years/196860 "2008-12-10T18:02:08Z")

</div>

Hi folks, It’s no secret that self-publishing a book and putting it under a creative commons license while providing an HTML version for free, and not marketing the paid version to anyone and giving 25% of your reven…

---

## [Importing / Parsing Large Excel Files?](https://www.ruby-forum.com/t/importing-parsing-large-excel-files/151108)

<div class="topic-metadata">

**Author:** [@ANSS](https://www.ruby-forum.com/u/ANSS)\
**Replies:** 5\
**Last updated:** [December 10, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/importing-parsing-large-excel-files/151108 "2008-12-10T17:57:27Z")

</div>

Hello, I’m running into a project where a client has large Excel files (60.000+ records per file) and he needs an application to import them into a database to use this data for useful operations (reporting, calculat…

---

## [Saving data from the output window to a text file](https://www.ruby-forum.com/t/saving-data-from-the-output-window-to-a-text-file/155318)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 10, 2008, 5:54pm UTC](https://www.ruby-forum.com/t/saving-data-from-the-output-window-to-a-text-file/155318 "2008-12-10T17:54:30Z")

</div>

Hi group, I’m a complete novice who is having lots of fun discovering Ruby, Ruby on Rails / Watir. Good bits of software. I wanted to record the info in the output window, into a text file. I wanted to do this in R…

---

## [How do you create one session cookie for multiple subdomains](https://www.ruby-forum.com/t/how-do-you-create-one-session-cookie-for-multiple-subdomains/140926)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 5\
**Last updated:** [December 10, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/how-do-you-create-one-session-cookie-for-multiple-subdomains/140926 "2008-12-10T17:32:02Z")

</div>

I am using the restful authentication plugin and am always prompted to login if a different subdomain is accessed. I have found a couple rails “solutions”, but none of them seem to work: development.rb ActionControl…

---

## [Newbie stumped - when form validates, normally return is fine, but when I select a certain checkbox,](https://www.ruby-forum.com/t/newbie-stumped-when-form-validates-normally-return-is-fine-but-when-i-select-a-certain-checkbox/155246)

<div class="topic-metadata">

**Author:** [@rick](https://www.ruby-forum.com/u/rick)\
**Replies:** 6\
**Last updated:** [December 10, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/newbie-stumped-when-form-validates-normally-return-is-fine-but-when-i-select-a-certain-checkbox/155246 "2008-12-10T16:56:54Z")

</div>

I’m really stumped here. I’m new to Rails and I’m sure I’m doing something stupid but what’s going on seems like voodoo or something. When you click on “new match” the controller makes a call to set up two new objects…

---

## [Ar\_mailer: emails NOT stored in database](https://www.ruby-forum.com/t/ar-mailer-emails-not-stored-in-database/155322)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 0\
**Last updated:** [December 10, 2008, 4:22pm UTC](https://www.ruby-forum.com/t/ar-mailer-emails-not-stored-in-database/155322 "2008-12-10T16:22:27Z")

</div>

Hi there, I use the gem “ar\_mailer”, but it doesn’t store the emails in the database. Has anyone an idea: why this could be the case? or how I could find out where the problem lies? (-\> Rails doesn’t throw me any e…

---

## [Tag clouds](https://www.ruby-forum.com/t/tag-clouds/155211)

<div class="topic-metadata">

**Author:** [@annalissa](https://www.ruby-forum.com/u/annalissa)\
**Replies:** 6\
**Last updated:** [December 10, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/tag-clouds/155211 "2008-12-10T16:17:27Z")

</div>

I was working through the simply rails book, i have completed up to chapter 10, now i want to add tag clouds to the welcome page ? how to do it ? I have installed acts\_as\_taggable\_on\_steroids plugin from here http:…

---

## [RAILS\_ENV changes to test after init](https://www.ruby-forum.com/t/rails-env-changes-to-test-after-init/155313)

<div class="topic-metadata">

**Author:** [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Replies:** 1\
**Last updated:** [December 10, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/rails-env-changes-to-test-after-init/155313 "2008-12-10T15:57:59Z")

</div>

I think RAILS\_ENV is getting set incorrectly, but I don’t know exactly how to find out where. At the bottom of Rails::Initializer.run do |config| in environment.rb, RAILS\_ENV is the correct value (staging, development…

---

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

<div class="topic-metadata">

**Author:** [@sshingler](https://www.ruby-forum.com/u/sshingler)\
**Replies:** 1\
**Last updated:** [December 10, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/mongrel-death/154020 "2008-12-10T15:42:37Z")

</div>

Mongrel on Windows: Our internal app keeps dying with a seg fault. Is there a way to catch this event with another app/Mongrel service, or something… to push a msg to the client browser? We need some way to notify th…

---

## [Wrong number of arguments (0 for 1) error.... Help!](https://www.ruby-forum.com/t/wrong-number-of-arguments-0-for-1-error-help/155142)

<div class="topic-metadata">

**Author:** [@den1jay](https://www.ruby-forum.com/u/den1jay)\
**Replies:** 25\
**Last updated:** [December 10, 2008, 3:05pm UTC](https://www.ruby-forum.com/t/wrong-number-of-arguments-0-for-1-error-help/155142 "2008-12-10T15:05:00Z")

</div>

I am using Rails 2.0.2 with mysql database I am getting this error when running a query with Find\_by\_sql: “wrong number of arguments (0 for 1)” Here are my queries: @authors = Author.find\_by\_sql\[“SELECT \* FROM author…

---

## [How to change template rendering order?](https://www.ruby-forum.com/t/how-to-change-template-rendering-order/155312)

<div class="topic-metadata">

**Author:** [@yitzhakbg](https://www.ruby-forum.com/u/yitzhakbg)\
**Replies:** 0\
**Last updated:** [December 10, 2008, 2:58pm UTC](https://www.ruby-forum.com/t/how-to-change-template-rendering-order/155312 "2008-12-10T14:58:38Z")

</div>

I need to have html.erb and html.haml templates living side by side in the same directories. How does one configure Rails at initialization to prefer rendering one type over the other when both types are present?

---

## [Doing Subselect query in Rails... Syntax problem](https://www.ruby-forum.com/t/doing-subselect-query-in-rails-syntax-problem/155233)

<div class="topic-metadata">

**Author:** [@den1jay](https://www.ruby-forum.com/u/den1jay)\
**Replies:** 11\
**Last updated:** [December 10, 2008, 2:20pm UTC](https://www.ruby-forum.com/t/doing-subselect-query-in-rails-syntax-problem/155233 "2008-12-10T14:20:36Z")

</div>

I have to use subselect for this query. find\_all\_by\_name and joins will not work. Please I need help with getting the correct syntax for doing subselect the rails way. The query works fine in mysql. I can’t find the…

---

## [Include? characters javascript validation](https://www.ruby-forum.com/t/include-characters-javascript-validation/155310)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [December 10, 2008, 1:48pm UTC](https://www.ruby-forum.com/t/include-characters-javascript-validation/155310 "2008-12-10T13:48:36Z")

</div>

I am trying to write my own javascript validation and am looking for some help with writing a function that checks to see if a string contains invalid characters. I have gotten it to work for spaces: username.include…

---

## [How to get informative blanks in date\_select?](https://www.ruby-forum.com/t/how-to-get-informative-blanks-in-date-select/155311)

<div class="topic-metadata">

**Author:** [@Martijn\_Vos](https://www.ruby-forum.com/u/Martijn_Vos)\
**Replies:** 0\
**Last updated:** [December 10, 2008, 1:43pm UTC](https://www.ruby-forum.com/t/how-to-get-informative-blanks-in-date-select/155311 "2008-12-10T13:43:53Z")

</div>

I want something really simple: I want a date\_select that has blanks (:include\_blanks works fine so far), but having an empty value in the select box on the webpage is ugly, so I want something more informative there,…

---

## [Link\_to\_remote: return value from action into string?](https://www.ruby-forum.com/t/link-to-remote-return-value-from-action-into-string/155080)

<div class="topic-metadata">

**Author:** [@mrpete](https://www.ruby-forum.com/u/mrpete)\
**Replies:** 2\
**Last updated:** [December 10, 2008, 1:26pm UTC](https://www.ruby-forum.com/t/link-to-remote-return-value-from-action-into-string/155080 "2008-12-10T13:26:29Z")

</div>

Is the only way to get a “return value” from the action called through a div tag via the :update =\> ‘my\_div’ entry? I want the value returned to be put into a string that I can manipulate in my :complete =\> ‘my\_comple…

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

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