# Rails

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

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

---

## [Ruby error with postgres](https://www.ruby-forum.com/t/ruby-error-with-postgres/109679)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 18, 2007, 10:25am UTC](https://www.ruby-forum.com/t/ruby-error-with-postgres/109679 "2007-07-18T10:25:59Z")

</div>

Im getting the following error while using postgres from ruby. Im new to ruby any help would be appreciated. c:/ruby/lib/ruby/1.8/readbytes.rb:21:in read': Invalid argument (Errno::EINVAL) from c:/ruby/lib/ruby/1.8/rea…

---

## [Displaying an existing web page within one of my rails pages](https://www.ruby-forum.com/t/displaying-an-existing-web-page-within-one-of-my-rails-pages/109649)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 4\
**Last updated:** [July 18, 2007, 10:10am UTC](https://www.ruby-forum.com/t/displaying-an-existing-web-page-within-one-of-my-rails-pages/109649 "2007-07-18T10:10:23Z")

</div>

Does anyone know how to, given the url, display another web page inside one of my own pages in rails? I want to basically show the whole page and then have my own extra stuff at the bottom, after it.

---

## [How to create "custom" fields in Model?](https://www.ruby-forum.com/t/how-to-create-custom-fields-in-model/109513)

<div class="topic-metadata">

**Author:** [@gneeot](https://www.ruby-forum.com/u/gneeot)\
**Replies:** 7\
**Last updated:** [July 18, 2007, 10:07am UTC](https://www.ruby-forum.com/t/how-to-create-custom-fields-in-model/109513 "2007-07-18T10:07:57Z")

</div>

How to create “custom” fields in Model? like sum, based on quantity and price. I guess it should be something like: def summ price \* quantity end Am I right? If so, How to use them in :conditions…

---

## [\[ANN\] widgetz.rb](https://www.ruby-forum.com/t/ann-widgetz-rb/109717)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 1\
**Last updated:** [July 18, 2007, 9:52am UTC](https://www.ruby-forum.com/t/ann-widgetz-rb/109717 "2007-07-18T09:52:56Z")

</div>

NAME widgetz.rb SYNOPSIS simple widgets for rails INSTALL gem install widgetz URIS http://rubyforge.org/projects/codeforpeople/ http://codeforpeople.com/lib/ruby/widgetz/ http://drawohara.tumblr.com/post/6060120 …

---

## [Upload with iframe or ajax?](https://www.ruby-forum.com/t/upload-with-iframe-or-ajax/109708)

<div class="topic-metadata">

**Author:** [@chamnap](https://www.ruby-forum.com/u/chamnap)\
**Replies:** 2\
**Last updated:** [July 18, 2007, 9:12am UTC](https://www.ruby-forum.com/t/upload-with-iframe-or-ajax/109708 "2007-07-18T09:12:49Z")

</div>

Hello, I really wonder whether I should upload with ajax or with iframe. I don’t know which way it should be the best of uploading file to the server? Please, give me some ideas… Thanks Chamnap

---

## [Getting field value from Child window (Dialog box) - Redbox?](https://www.ruby-forum.com/t/getting-field-value-from-child-window-dialog-box-redbox/109710)

<div class="topic-metadata">

**Author:** [@unnikrishnanes](https://www.ruby-forum.com/u/unnikrishnanes)\
**Replies:** 0\
**Last updated:** [July 18, 2007, 7:39am UTC](https://www.ruby-forum.com/t/getting-field-value-from-child-window-dialog-box-redbox/109710 "2007-07-18T07:39:49Z")

</div>

Hi All I have a page in which I have a text field followed by an ‘add’ button. When I click on the add button it should open another page or dialogbox( having its own template). When this dialogbox/page is active I sh…

---

## [Only sql logging is needed in production not other informati](https://www.ruby-forum.com/t/only-sql-logging-is-needed-in-production-not-other-informati/109707)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 0\
**Last updated:** [July 18, 2007, 6:29am UTC](https://www.ruby-forum.com/t/only-sql-logging-is-needed-in-production-not-other-informati/109707 "2007-07-18T06:29:39Z")

</div>

Hi, I know that I can enable sql logging in production by doing this: config.log\_level = :debug But this will also print information like app/views/home/\_homepage\_extra.rhtml:7:in \_run\_rhtml\_47app47views47home47\_h o…

---

## [Optimizing Rails Code](https://www.ruby-forum.com/t/optimizing-rails-code/109663)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 4\
**Last updated:** [July 18, 2007, 6:28am UTC](https://www.ruby-forum.com/t/optimizing-rails-code/109663 "2007-07-18T06:28:39Z")

</div>

Hello, I often find myself creating and retrieving ActiveRecord objects that barely get used, unaware of perhaps a better way of database interaction within Rails. Are there more efficient ways to do some of the foll…

---

## [New entries from foreign controller](https://www.ruby-forum.com/t/new-entries-from-foreign-controller/109702)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 18, 2007, 5:12am UTC](https://www.ruby-forum.com/t/new-entries-from-foreign-controller/109702 "2007-07-18T05:12:29Z")

</div>

I have a situation that I can’t seem to find an answer for. I have a view for a new “report” I want it to be possible for the user to input a company name and location if they aren’t already in the list of “known” va…

---

## [\_form.rhtml isn't being updated automatically](https://www.ruby-forum.com/t/form-rhtml-isnt-being-updated-automatically/109635)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 1\
**Last updated:** [July 18, 2007, 3:15am UTC](https://www.ruby-forum.com/t/form-rhtml-isnt-being-updated-automatically/109635 "2007-07-18T03:15:04Z")

</div>

I have a problem with a new rails program i’ve just started. I have a list page for my DB table, and all the CRUD stuff is working fine, except that the ‘new’ and ‘edit’ pages don’t have all the form components they s…

---

## [How do I collect values from X number of radio buttons?](https://www.ruby-forum.com/t/how-do-i-collect-values-from-x-number-of-radio-buttons/109592)

<div class="topic-metadata">

**Author:** [@quigebo](https://www.ruby-forum.com/u/quigebo)\
**Replies:** 1\
**Last updated:** [July 18, 2007, 3:09am UTC](https://www.ruby-forum.com/t/how-do-i-collect-values-from-x-number-of-radio-buttons/109592 "2007-07-18T03:09:03Z")

</div>

I am currently writing an application to collect data from a survey form. I would like to write it so that it saves all of the information from various radio buttons into the database. Obviously, I could hard- code ea…

---

## [Conditional logic when dealing with nil](https://www.ruby-forum.com/t/conditional-logic-when-dealing-with-nil/109695)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 1\
**Last updated:** [July 18, 2007, 1:14am UTC](https://www.ruby-forum.com/t/conditional-logic-when-dealing-with-nil/109695 "2007-07-18T01:14:50Z")

</div>

I had a piece of code in an rjs file that checked to see if a variable existed: if @product … do something here … end that worked fine, but then I also need to check and see if a column is empty or nil, so i change…

---

## [Multiple inserts on a through association](https://www.ruby-forum.com/t/multiple-inserts-on-a-through-association/109693)

<div class="topic-metadata">

**Author:** [@flopezr333](https://www.ruby-forum.com/u/flopezr333)\
**Replies:** 0\
**Last updated:** [July 18, 2007, 12:15am UTC](https://www.ruby-forum.com/t/multiple-inserts-on-a-through-association/109693 "2007-07-18T00:15:42Z")

</div>

class Trunk \< ActiveRecord::Base has\_many :call\_type\_trunks has\_many :call\_types, :through =\> :call\_type\_trunks end class CallType \< ActiveRecord::Base has\_many :call\_type\_trunks has\_many :trunks, :through =\> :call…

---

## [Hosting Partners](https://www.ruby-forum.com/t/hosting-partners/109651)

<div class="topic-metadata">

**Author:** [@newdude](https://www.ruby-forum.com/u/newdude)\
**Replies:** 6\
**Last updated:** [July 17, 2007, 11:56pm UTC](https://www.ruby-forum.com/t/hosting-partners/109651 "2007-07-17T23:56:41Z")

</div>

Hi, We are just starting a RoR project and need to identify a reputable hosting partner. I see on the RoR web site that there are about a dozen different companies, but I’m very interested in hearing from people that…

---

## [Replace string](https://www.ruby-forum.com/t/replace-string/109682)

<div class="topic-metadata">

**Author:** [@shafi](https://www.ruby-forum.com/u/shafi)\
**Replies:** 1\
**Last updated:** [July 17, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/replace-string/109682 "2007-07-17T22:35:33Z")

</div>

hello how to part of string with other i.e. string x = “3(1i)4” x.replace("(1i"),"") x = “34” how to do that in RoR?

---

## [Plugin Problems: const\_missing: uninitialized constant Rails](https://www.ruby-forum.com/t/plugin-problems-const-missing-uninitialized-constant-rails/109674)

<div class="topic-metadata">

**Author:** [@maraby](https://www.ruby-forum.com/u/maraby)\
**Replies:** 2\
**Last updated:** [July 17, 2007, 10:30pm UTC](https://www.ruby-forum.com/t/plugin-problems-const-missing-uninitialized-constant-rails/109674 "2007-07-17T22:30:32Z")

</div>

I’m receiving this error when I try to start Mongrel on my local machine. I’ve checked my Rails, Rake, and Gem versions, as well as all of the other gems I’m using. http://pastie.caboo.se/79503 The situation is that …

---

## [lightTPD vs Apache?](https://www.ruby-forum.com/t/lighttpd-vs-apache/109677)

<div class="topic-metadata">

**Author:** [@rails.impaired](https://www.ruby-forum.com/u/rails.impaired)\
**Replies:** 1\
**Last updated:** [July 17, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/lighttpd-vs-apache/109677 "2007-07-17T21:06:20Z")

</div>

I am working on a project and we are trying to decide on a good production environment. The current line of thinking is LightTPD, FastCGI, and Rails running on CentOS 5. However, I was wondering if anyone had any ex…

---

## [Pagination error using named routes](https://www.ruby-forum.com/t/pagination-error-using-named-routes/109680)

<div class="topic-metadata">

**Author:** [@janeden](https://www.ruby-forum.com/u/janeden)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 8:32pm UTC](https://www.ruby-forum.com/t/pagination-error-using-named-routes/109680 "2007-07-17T20:32:24Z")

</div>

Hi, I repeatedly get pagination errors (cannot convert Fixnum to String) when using a certain order of routes. This order works fine: map.connect ‘maerchen’, :controller =\> ‘pages’, :action =\> ‘index’, :id =\> 8 map.…

---

## [Help with Apache on Suse 10](https://www.ruby-forum.com/t/help-with-apache-on-suse-10/109676)

<div class="topic-metadata">

**Author:** [@masolino](https://www.ruby-forum.com/u/masolino)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 7:49pm UTC](https://www.ruby-forum.com/t/help-with-apache-on-suse-10/109676 "2007-07-17T19:49:19Z")

</div>

Ciao, sorry if I will say some things that will not make any sense, but I have a limited experience with Ruby, Apache and Linux in general, and therefore ask you all for help. I’ve configured Apache 2.3 to run on Sus…

---

## [Announcement: Open sourcing a Rails/Flex eCommerce app](https://www.ruby-forum.com/t/announcement-open-sourcing-a-rails-flex-ecommerce-app/109671)

<div class="topic-metadata">

**Author:** [@surplustronics](https://www.ruby-forum.com/u/surplustronics)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 7:07pm UTC](https://www.ruby-forum.com/t/announcement-open-sourcing-a-rails-flex-ecommerce-app/109671 "2007-07-17T19:07:51Z")

</div>

After talks with a long term client of mine, I’m taking the brave move to open source an eCommerce app built in Rails & Flex that we’re building - a replacement of a PHP/MySQL app. I’m currently doing the first cut of…

---

## [Rake test problem](https://www.ruby-forum.com/t/rake-test-problem/109667)

<div class="topic-metadata">

**Author:** [@Radu\_S](https://www.ruby-forum.com/u/Radu_S)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 6:37pm UTC](https://www.ruby-forum.com/t/rake-test-problem/109667 "2007-07-17T18:37:47Z")

</div>

Hi, I’m getting weird lock\_mutex undefined errors when running tests. I tried creating a new application having just acts\_as\_authenticated installed. Running rake test returns errors like: test\_should\_require\_passwo…

---

## [: :::::::The best place for shopping::::::::](https://www.ruby-forum.com/t/the-best-place-for-shopping/109668)

<div class="topic-metadata">

**Author:** [@Abdul\_Q](https://www.ruby-forum.com/u/Abdul_Q)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 6:28pm UTC](https://www.ruby-forum.com/t/the-best-place-for-shopping/109668 "2007-07-17T18:28:44Z")

</div>

\[image: Comparison Shopping | Digital Cameras | MP3 Players | games | hardware | electronics | cell Phones | camcorders | video games | dvd players | Cameras | cd players | digital cameras | Shop smart and shop fast …

---

## [Mysql question](https://www.ruby-forum.com/t/mysql-question/109589)

<div class="topic-metadata">

**Author:** [@jason\_white](https://www.ruby-forum.com/u/jason_white)\
**Replies:** 1\
**Last updated:** [July 17, 2007, 6:28pm UTC](https://www.ruby-forum.com/t/mysql-question/109589 "2007-07-17T18:28:44Z")

</div>

i’m rather new to rails, and having a bit of trouble. i keep receiving an error “This application has failed to start because LIBMYSQL.dll was not found. Re-installing the application may fix this problem”. here is t…

---

## [Rake test problem](https://www.ruby-forum.com/t/rake-test-problem/109665)

<div class="topic-metadata">

**Author:** [@Radu\_S](https://www.ruby-forum.com/u/Radu_S)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/rake-test-problem/109665 "2007-07-17T18:21:44Z")

</div>

Hi I’m getting weird lock\_mutex undefined errors when running tests. I tried creating a new application having just acts\_as\_authenticated installed. Running rake test returns errors like: test\_should\_require\_passwor…

---

## [Get paid to click and read email](https://www.ruby-forum.com/t/get-paid-to-click-and-read-email/109664)

<div class="topic-metadata">

**Author:** [@newbar](https://www.ruby-forum.com/u/newbar)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 6:08pm UTC](https://www.ruby-forum.com/t/get-paid-to-click-and-read-email/109664 "2007-07-17T18:08:42Z")

</div>

Get paid to click and read email o. Get Paid To Click o. Get Paid To Read E-Mail o. Get Paid To Sign-Up o. $5.- Sign-Up Bonus o. 10 Referral Levels o. Low Pay-Out Minimum o. Leads and Sales http://www.cash-dreams…

---

## [User profiles and settings setup with restful\_authentication](https://www.ruby-forum.com/t/user-profiles-and-settings-setup-with-restful-authentication/109657)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 3\
**Last updated:** [July 17, 2007, 5:30pm UTC](https://www.ruby-forum.com/t/user-profiles-and-settings-setup-with-restful-authentication/109657 "2007-07-17T17:30:54Z")

</div>

I’ve created a simple signup/login for our site using restful\_authentication, but I’d like to add some features while staying with a REST design and I’m not sure what the best route to take is. I’d like: public ‘pro…

---

## [XML to SQL](https://www.ruby-forum.com/t/xml-to-sql/109658)

<div class="topic-metadata">

**Author:** [@oezkanp](https://www.ruby-forum.com/u/oezkanp)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/xml-to-sql/109658 "2007-07-17T16:57:47Z")

</div>

hi, Im missing a method in ruby which exists in java and c. I get XML Documents with their DTDs which were extract from a SQL-Database with relationships. Now many data exist multiple in the XML Document. Have to inte…

---

## [Alphabetically ordering](https://www.ruby-forum.com/t/alphabetically-ordering/109653)

<div class="topic-metadata">

**Author:** [@gearoid](https://www.ruby-forum.com/u/gearoid)\
**Replies:** 3\
**Last updated:** [July 17, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/alphabetically-ordering/109653 "2007-07-17T16:37:10Z")

</div>

Hey - Need a hand with a straight forward problem… I have names of systems stored in a table and I want the user of the application to be able to have it ascending or descending alphabetically. Is this possible using…

---

## [Executing javascript in the responseText](https://www.ruby-forum.com/t/executing-javascript-in-the-responsetext/109655)

<div class="topic-metadata">

**Author:** [@Love\_AJAX](https://www.ruby-forum.com/u/Love_AJAX)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/executing-javascript-in-the-responsetext/109655 "2007-07-17T16:34:30Z")

</div>

Hi, Is there a way of executing javascript in the responseText? I have a controller action that sends some javascript as part of a partial to the browser. But it won’t get executed after the browser receives it. One …

---

## [Debugging](https://www.ruby-forum.com/t/debugging/109642)

<div class="topic-metadata">

**Author:** [@Paul\_Gower](https://www.ruby-forum.com/u/Paul_Gower)\
**Replies:** 1\
**Last updated:** [July 17, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/debugging/109642 "2007-07-17T16:24:28Z")

</div>

Hi all, I am trying to come up with a good way to handle the debugging data that I am generating in my app. I am aware of logger and am using it but I also want to be able to see selected object values in the browser…

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

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