# Rails

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

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

---

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

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 0\
**Last updated:** [December 3, 2009, 2:54pm UTC](https://www.ruby-forum.com/t/ordering/179772 "2009-12-03T14:54:26Z")

</div>

I’m using paginate\_and\_order to sort and filter my records in a table. I can’t seem to get :order to work? @module, @modules\_pages = Module.paginate\_and\_order(params.merge({:conditions =\> “display=1 AND module\_date\<=…

---

## [Trying to understand Ruby links](https://www.ruby-forum.com/t/trying-to-understand-ruby-links/179710)

<div class="topic-metadata">

**Author:** [@coma](https://www.ruby-forum.com/u/coma)\
**Replies:** 2\
**Last updated:** [December 3, 2009, 10:04am UTC](https://www.ruby-forum.com/t/trying-to-understand-ruby-links/179710 "2009-12-03T10:04:49Z")

</div>

I’ve got Ruby on Rails and Apache. I’m trying to understand someone else’s Ruby code which is below. I don’t know how the “info\_path” -link works on the net. The link does go to some other site, but I don’t know how i…

---

## [Can I Use RoR without Database?](https://www.ruby-forum.com/t/can-i-use-ror-without-database/179682)

<div class="topic-metadata">

**Author:** [@zealander](https://www.ruby-forum.com/u/zealander)\
**Replies:** 6\
**Last updated:** [December 3, 2009, 7:19am UTC](https://www.ruby-forum.com/t/can-i-use-ror-without-database/179682 "2009-12-03T07:19:45Z")

</div>

Hello, I’m having trouble getting MySQL work on Vista with Norton Security and because of that I can’t get RoR to display a simple “Hello World!” message. I was wondering, can RoR work without database? I don’t need …

---

## [Creating an array of hash values on update method](https://www.ruby-forum.com/t/creating-an-array-of-hash-values-on-update-method/179716)

<div class="topic-metadata">

**Author:** [@bagadoughnuts](https://www.ruby-forum.com/u/bagadoughnuts)\
**Replies:** 7\
**Last updated:** [December 3, 2009, 7:16am UTC](https://www.ruby-forum.com/t/creating-an-array-of-hash-values-on-update-method/179716 "2009-12-03T07:16:10Z")

</div>

Hi all, I’m trying to do a small shopping cart and I’ve come across a problem I believe some of you may consider simple. I’m basically using two models to do the shopping cart: Orders and Order\_Items A shopping cart…

---

## [Win32console gem with cucumber - letter "a" is missing!](https://www.ruby-forum.com/t/win32console-gem-with-cucumber-letter-a-is-missing/179692)

<div class="topic-metadata">

**Author:** [@bzouchir](https://www.ruby-forum.com/u/bzouchir)\
**Replies:** 3\
**Last updated:** [December 3, 2009, 6:29am UTC](https://www.ruby-forum.com/t/win32console-gem-with-cucumber-letter-a-is-missing/179692 "2009-12-03T06:29:47Z")

</div>

I was just trying to follow up Ryan B. tut on Railscasts about using cucumber All installed and runs great, except the letter “a” is missing from all words in the output! This only happens in the Cucumber text outpu…

---

## [Rails can't connect to MySQL](https://www.ruby-forum.com/t/rails-cant-connect-to-mysql/179749)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 5\
**Last updated:** [December 3, 2009, 4:05am UTC](https://www.ruby-forum.com/t/rails-cant-connect-to-mysql/179749 "2009-12-03T04:05:45Z")

</div>

Hey guys, I’m trying to run a db:migrate but I keep getting errors… I’m running Rails 2.3.2, Ruby 1.8.6, and MySQL 5.1.38. This is how my database.yml is set up: development: adapter: mysql database: chirp host: l…

---

## [How to make ruby1.8.7 work with openssl 0.9.8?](https://www.ruby-forum.com/t/how-to-make-ruby1-8-7-work-with-openssl-0-9-8/179739)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [December 3, 2009, 3:40am UTC](https://www.ruby-forum.com/t/how-to-make-ruby1-8-7-work-with-openssl-0-9-8/179739 "2009-12-03T03:40:03Z")

</div>

I have been trying to get this work for several hours without success. I am trying to use Ruby Amazon AWS lib with requires use of the new version of openssl. My macbook tiger comes with built-in openssl 0.9.7i, so I …

---

## [RUBYFOO London , need help on Saturday hack @ Match Bar (par](https://www.ruby-forum.com/t/rubyfoo-london-need-help-on-saturday-hack-match-bar-par/179750)

<div class="topic-metadata">

**Author:** [@ialuronico](https://www.ruby-forum.com/u/ialuronico)\
**Replies:** 0\
**Last updated:** [December 3, 2009, 1:14am UTC](https://www.ruby-forum.com/t/rubyfoo-london-need-help-on-saturday-hack-match-bar-par/179750 "2009-12-03T01:14:15Z")

</div>

Hi everybody, I need help to remember the name of the Gem for parallel computation showed late on Saturday on the big circle table near the windows @ Match Bar. If any of you was there this gem can “issue” some child…

---

## [Auto-save](https://www.ruby-forum.com/t/auto-save/179747)

<div class="topic-metadata">

**Author:** [@penelope](https://www.ruby-forum.com/u/penelope)\
**Replies:** 1\
**Last updated:** [December 3, 2009, 1:07am UTC](https://www.ruby-forum.com/t/auto-save/179747 "2009-12-03T01:07:27Z")

</div>

I have a request form that needs to autosave occasionally, every 30 seconds.If there is any interruption to the entry process, the user can come back to that form. I don’t have no idea how to resolve this problem. Co…

---

## [Outputting to log in Rails startup](https://www.ruby-forum.com/t/outputting-to-log-in-rails-startup/179746)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 0\
**Last updated:** [December 3, 2009, 12:12am UTC](https://www.ruby-forum.com/t/outputting-to-log-in-rails-startup/179746 "2009-12-03T00:12:28Z")

</div>

I’d like to output a couple messages to the log in the startup process – like in environment.rb, or an initializer, or a config.after\_initialize block, or what have you. But I can’t get any of those to work, can’t fig…

---

## [Replacing finder\_sql with named\_scope](https://www.ruby-forum.com/t/replacing-finder-sql-with-named-scope/179742)

<div class="topic-metadata">

**Author:** [@mrpunkin](https://www.ruby-forum.com/u/mrpunkin)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 11:45pm UTC](https://www.ruby-forum.com/t/replacing-finder-sql-with-named-scope/179742 "2009-12-02T23:45:32Z")

</div>

I thought I would share a bit on here how I was able to use named\_scope to save me from an issue I was facing. I have a join model between Group and User, called GroupsUser. It is your standard join table containing t…

---

## [Update joined table](https://www.ruby-forum.com/t/update-joined-table/179735)

<div class="topic-metadata">

**Author:** [@duke](https://www.ruby-forum.com/u/duke)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 10:01pm UTC](https://www.ruby-forum.com/t/update-joined-table/179735 "2009-12-02T22:01:17Z")

</div>

=#select \* from hosts; id | hostname | ----±---------+ 1 | foo | 2 | bar | 3 | hoge | =# select \* from ipaddresses; id | host\_id | address | ----±--------±------------+ 1 | 1 | 192.168.1.…

---

## [Migration problem](https://www.ruby-forum.com/t/migration-problem/179712)

<div class="topic-metadata">

**Author:** [@procedure](https://www.ruby-forum.com/u/procedure)\
**Replies:** 4\
**Last updated:** [December 2, 2009, 8:58pm UTC](https://www.ruby-forum.com/t/migration-problem/179712 "2009-12-02T20:58:35Z")

</div>

hi all Please help solve the problem of migration there is a project of hosting with bd and tables, I can add to her a column there? How? p.s. sorry I’m badly know English language

---

## [Rails on the windows server 2003 64x r2](https://www.ruby-forum.com/t/rails-on-the-windows-server-2003-64x-r2/179723)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 6:09pm UTC](https://www.ruby-forum.com/t/rails-on-the-windows-server-2003-64x-r2/179723 "2009-12-02T18:09:25Z")

</div>

I used ror on the 32bit windows platform before, such as xp,vista. Now I buy a new computer and install the windows 2003 64x, and I try to move the work to the new platform. At the 32bit platform, I just copy the ruby…

---

## [Copy Video File](https://www.ruby-forum.com/t/copy-video-file/179722)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 2\
**Last updated:** [December 2, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/copy-video-file/179722 "2009-12-02T17:32:15Z")

</div>

Hi All, I want to copy a video file from source location and paste it to some destination. I used below code but I think it only supports text files: require ‘fileutils’ FileUtils.cp(‘source’, ‘destination’) Help me…

---

## [How to: Put multiple IDs into the params (when using a link)](https://www.ruby-forum.com/t/how-to-put-multiple-ids-into-the-params-when-using-a-link/179681)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 6\
**Last updated:** [December 2, 2009, 3:39pm UTC](https://www.ruby-forum.com/t/how-to-put-multiple-ids-into-the-params-when-using-a-link/179681 "2009-12-02T15:39:36Z")

</div>

Hi there, I’m getting the error: No route matches { :controller =\> “user/agentsubdomains”, :action =\> “destroy\_double”, :subdomain\_id =\> 7, :agent\_id =\> 11 } Is it not possible to put as many “whatever\_ids” as I wa…

---

## [Inner Join problem](https://www.ruby-forum.com/t/inner-join-problem/179669)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 12\
**Last updated:** [December 2, 2009, 3:08pm UTC](https://www.ruby-forum.com/t/inner-join-problem/179669 "2009-12-02T15:08:31Z")

</div>

I have one table called customers and one orders. In orders i have customer\_id. How do I write a find that can search for a customer email. This is my own trial that fails: @orders = Order.find(:all, :joins =\> “INNER …

---

## [Problem rendering partial in the application layout](https://www.ruby-forum.com/t/problem-rendering-partial-in-the-application-layout/179685)

<div class="topic-metadata">

**Author:** [@toltec](https://www.ruby-forum.com/u/toltec)\
**Replies:** 7\
**Last updated:** [December 2, 2009, 3:03pm UTC](https://www.ruby-forum.com/t/problem-rendering-partial-in-the-application-layout/179685 "2009-12-02T15:03:48Z")

</div>

Here’s the call in the application.html.erb file: \<%= render :partial =\> ‘tasks/\_new’ %\> Here’s the partial being rendered (\_new.html.erb): \<% form\_for @task do |f| -%\> \<%= f.text\_field :body %\> \<%= submit\_tag “Sub…

---

## [Functional test with Authlogic](https://www.ruby-forum.com/t/functional-test-with-authlogic/179715)

<div class="topic-metadata">

**Author:** [@spitfire](https://www.ruby-forum.com/u/spitfire)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/functional-test-with-authlogic/179715 "2009-12-02T15:02:08Z")

</div>

I am trying to make a simple functional test whith Authlogic. I followed this how to: http://rdoc.info/rdoc/binarylogic/authlogic/blob/f2e95179acf87f11b44c7a58e6083cf84cddff27/Authlogic/TestCase.html but I have an err…

---

## [Fields\_for and radio button problem](https://www.ruby-forum.com/t/fields-for-and-radio-button-problem/179711)

<div class="topic-metadata">

**Author:** [@seamus\_rooney](https://www.ruby-forum.com/u/seamus_rooney)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 1:14pm UTC](https://www.ruby-forum.com/t/fields-for-and-radio-button-problem/179711 "2009-12-02T13:14:19Z")

</div>

Hi, I have a dynamic list I generate based on record I have in a table. What I am trying to do is have a radio button at the end of each line so I can select it and delete the record this applies to and to do this I …

---

## [Web and Application servers on different machines?](https://www.ruby-forum.com/t/web-and-application-servers-on-different-machines/179664)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 2\
**Last updated:** [December 2, 2009, 12:08pm UTC](https://www.ruby-forum.com/t/web-and-application-servers-on-different-machines/179664 "2009-12-02T12:08:30Z")

</div>

Hi, I’m about to setup rails on an XP machine using InstantRails. BUT I have to use a separate web server with Apache (separate machine). So I have to connect the web server and the app server. I’ve always had all th…

---

## [Link To Remote And Submit To Remote](https://www.ruby-forum.com/t/link-to-remote-and-submit-to-remote/179705)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 11:43am UTC](https://www.ruby-forum.com/t/link-to-remote-and-submit-to-remote/179705 "2009-12-02T11:43:52Z")

</div>

Hi all How can i use :onclick parameter inlink\_to\_remote tag and how can i use :onclick with submit\_to\_remote Pls Provide me your samples Thanks

---

## [Accessing MSSQL with Rails 2.3.2 and Ruby 1.9.1](https://www.ruby-forum.com/t/accessing-mssql-with-rails-2-3-2-and-ruby-1-9-1/164596)

<div class="topic-metadata">

**Author:** [@btomlin](https://www.ruby-forum.com/u/btomlin)\
**Replies:** 8\
**Last updated:** [December 2, 2009, 11:12am UTC](https://www.ruby-forum.com/t/accessing-mssql-with-rails-2-3-2-and-ruby-1-9-1/164596 "2009-12-02T11:12:21Z")

</div>

I am having a strange issue. I have upgraded to ruby 1.9.1 to do some testing on one of my machines. My app accesses a MSSQL database to pull in some information. Everything worked fine with ruby 1.8.6, but now if …

---

## [Greetings?](https://www.ruby-forum.com/t/greetings/179700)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 10:43am UTC](https://www.ruby-forum.com/t/greetings/179700 "2009-12-02T10:43:51Z")

</div>

So, “Hello” would be the typical way to greet online, right? I’m fairly new to programming and thought I’d start with Ruby. I’m more interested in Web D. for now, so let’s start with Rails. I’ve read online that RoR i…

---

## [Image Slide Show](https://www.ruby-forum.com/t/image-slide-show/179695)

<div class="topic-metadata">

**Author:** [@plastik77](https://www.ruby-forum.com/u/plastik77)\
**Replies:** 2\
**Last updated:** [December 2, 2009, 8:31am UTC](https://www.ruby-forum.com/t/image-slide-show/179695 "2009-12-02T08:31:47Z")

</div>

The code bellow seem to only load the 1st image. How do i make it to load all the picture in the billboard model? Or is there any better way to do so beside using the :defaults js? \<% for billboard in @billboards %\> …

---

## [How to create a rails apps for multiple domain to access?](https://www.ruby-forum.com/t/how-to-create-a-rails-apps-for-multiple-domain-to-access/179680)

<div class="topic-metadata">

**Author:** [@plastik77](https://www.ruby-forum.com/u/plastik77)\
**Replies:** 1\
**Last updated:** [December 1, 2009, 11:55pm UTC](https://www.ruby-forum.com/t/how-to-create-a-rails-apps-for-multiple-domain-to-access/179680 "2009-12-01T23:55:50Z")

</div>

I have a project here on DIY website. There is a big problem around is; How do i allow a single rails apps to access by multiple domain? where the info for domain will be store together with users in the databases. e…

---

## [Delegation and the laws of demeter](https://www.ruby-forum.com/t/delegation-and-the-laws-of-demeter/84114)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 5\
**Last updated:** [December 1, 2009, 5:14pm UTC](https://www.ruby-forum.com/t/delegation-and-the-laws-of-demeter/84114 "2009-12-01T17:14:36Z")

</div>

After reading about delegation and the laws of demeter I have been attempting to use the “delegate” method in Rails to avoid situations where I would have to write… @account.account\_holder.name and risk a NoMethodErr…

---

## [Assign actual days to columns in the database](https://www.ruby-forum.com/t/assign-actual-days-to-columns-in-the-database/179662)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 7\
**Last updated:** [December 1, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/assign-actual-days-to-columns-in-the-database/179662 "2009-12-01T17:02:45Z")

</div>

Hi all, I am a newbie and need assistance from someone helpful. I have a database which has 8 columns one of them being id the rest being: bus\_times table: monday tuesday wednesday thursday friday saturday sunda…

---

## [Problem for created\_at and updated\_at](https://www.ruby-forum.com/t/problem-for-created-at-and-updated-at/179645)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 1\
**Last updated:** [December 1, 2009, 4:55pm UTC](https://www.ruby-forum.com/t/problem-for-created-at-and-updated-at/179645 "2009-12-01T16:55:04Z")

</div>

Hi, I am using rails 2.3.2. and database postgressql. I have created one table with name “courses”. In that table I have the field “name, user\_id, created\_at and updated\_at”. For insertion I am writing code like thi…

---

## [What CI server and Configuration Management tools I should u](https://www.ruby-forum.com/t/what-ci-server-and-configuration-management-tools-i-should-u/179667)

<div class="topic-metadata">

**Author:** [@m4lloc](https://www.ruby-forum.com/u/m4lloc)\
**Replies:** 0\
**Last updated:** [December 1, 2009, 2:28pm UTC](https://www.ruby-forum.com/t/what-ci-server-and-configuration-management-tools-i-should-u/179667 "2009-12-01T14:28:46Z")

</div>

Hi ! What CI server and Configuration Management tools I should use together for a truly development and deploy maintenance. There isn’t the de facto rails sustainable environment, is there? Some assumptions: â€¢ c…

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

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