# Rails

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

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

---

## [\[jobs\]](https://www.ruby-forum.com/t/jobs/174444)

<div class="topic-metadata">

**Author:** [@mtort](https://www.ruby-forum.com/u/mtort)\
**Replies:** 1\
**Last updated:** [August 26, 2009, 9:07pm UTC](https://www.ruby-forum.com/t/jobs/174444 "2009-08-26T21:07:40Z")

</div>

Startup with a clever twist on online dating looking for cofounder. Concept is devilishly entertaining, viral, potentially addictive, and highly monetizable. Worth your time to check out - could get big fast if execu…

---

## [Check what is comming in param](https://www.ruby-forum.com/t/check-what-is-comming-in-param/174411)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 5\
**Last updated:** [August 26, 2009, 8:36pm UTC](https://www.ruby-forum.com/t/check-what-is-comming-in-param/174411 "2009-08-26T20:36:51Z")

</div>

hi guys i am checking with params\[:a\].nil? and params\[:a\].blank? but in the url a is not coming but for some other purpose service i am using the same a for some other service if some params is nit coming in url how…

---

## [Way to keep ampersand from getting sanitized?](https://www.ruby-forum.com/t/way-to-keep-ampersand-from-getting-sanitized/174442)

<div class="topic-metadata">

**Author:** [@p8yton](https://www.ruby-forum.com/u/p8yton)\
**Replies:** 0\
**Last updated:** [August 26, 2009, 8:36pm UTC](https://www.ruby-forum.com/t/way-to-keep-ampersand-from-getting-sanitized/174442 "2009-08-26T20:36:43Z")

</div>

I have an error message with an html character entity in it ( µ/ µ ). My trouble is, rails swaps my & with & - leaving me with µ getting shown literally in the message rather than a nice, neat Greek mu: ì. I should …

---

## [Best Practice: Put all fields in a db column or lump some into a serialized hash in a TEXT column?](https://www.ruby-forum.com/t/best-practice-put-all-fields-in-a-db-column-or-lump-some-into-a-serialized-hash-in-a-text-column/174392)

<div class="topic-metadata">

**Author:** [@chrisf](https://www.ruby-forum.com/u/chrisf)\
**Replies:** 2\
**Last updated:** [August 26, 2009, 8:26pm UTC](https://www.ruby-forum.com/t/best-practice-put-all-fields-in-a-db-column-or-lump-some-into-a-serialized-hash-in-a-text-column/174392 "2009-08-26T20:26:10Z")

</div>

On my previous countless Rails apps, I’ve always put each data field as its own column in the DB, but on the last 2 projects, I’ve started to create a catch-all column that is a MySQL TEXT that I serialize and treat a…

---

## [Finding data in Rails](https://www.ruby-forum.com/t/finding-data-in-rails/174376)

<div class="topic-metadata">

**Author:** [@Geekyra](https://www.ruby-forum.com/u/Geekyra)\
**Replies:** 5\
**Last updated:** [August 26, 2009, 7:31pm UTC](https://www.ruby-forum.com/t/finding-data-in-rails/174376 "2009-08-26T19:31:43Z")

</div>

Hi All, I have 3 model, User, Post, Comment with definition like below class Post \< ActiveRecord::Base belongs\_to :user has\_many :comments def self.find\_other\_user\_posts ? end end class User \< ActiveReco…

---

## [Cache\_classes = true causes application to fail](https://www.ruby-forum.com/t/cache-classes-true-causes-application-to-fail/174426)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 1\
**Last updated:** [August 26, 2009, 7:22pm UTC](https://www.ruby-forum.com/t/cache-classes-true-causes-application-to-fail/174426 "2009-08-26T19:22:56Z")

</div>

Hi, I am using rails 2.3.2, apache 2.2, active scaffold, and mongel. I was caught by surprise when an application that was working started to fail. Digging into things showed that the error occurred when cache\_clas…

---

## [Validation orders](https://www.ruby-forum.com/t/validation-orders/174436)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 0\
**Last updated:** [August 26, 2009, 6:53pm UTC](https://www.ruby-forum.com/t/validation-orders/174436 "2009-08-26T18:53:27Z")

</div>

Hi There folks, I am using validates\_associated to make sure some child models are valid before saving the parent. However I want to do some extra validation AFTER the child models are valid in its parent. For insta…

---

## [Textbox input for an action: failed attempt](https://www.ruby-forum.com/t/textbox-input-for-an-action-failed-attempt/174412)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 2\
**Last updated:** [August 26, 2009, 5:57pm UTC](https://www.ruby-forum.com/t/textbox-input-for-an-action-failed-attempt/174412 "2009-08-26T17:57:57Z")

</div>

Okay, so this is what I have (which fails miserably) in my view: Please enter a username: \<%= form\_remote\_tag :html =\> { :update =\> “filter\_counts”, :url =\> {:action =\> “search\_by\_name”} }do -%\> \<%= text\_field\_tag 'u…

---

## [Testing the use of form\_for to clone an existing record](https://www.ruby-forum.com/t/testing-the-use-of-form-for-to-clone-an-existing-record/174421)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 0\
**Last updated:** [August 26, 2009, 5:37pm UTC](https://www.ruby-forum.com/t/testing-the-use-of-form-for-to-clone-an-existing-record/174421 "2009-08-26T17:37:26Z")

</div>

I wanted to be able to clone fields from one record into a new record, so I added a select box to allow the user to select the record from which (s)he wanted to clone (using AJAX to dynamically update the view when (s…

---

## [Changes to erb files not being noticed by server](https://www.ruby-forum.com/t/changes-to-erb-files-not-being-noticed-by-server/174239)

<div class="topic-metadata">

**Author:** [@roey](https://www.ruby-forum.com/u/roey)\
**Replies:** 11\
**Last updated:** [August 26, 2009, 5:21pm UTC](https://www.ruby-forum.com/t/changes-to-erb-files-not-being-noticed-by-server/174239 "2009-08-26T17:21:38Z")

</div>

I am new to Rails. I run Rails with ruby script/server then the code in my index.html.erb displays in the browser as expected. If I change the contents of index.html.erb file and reload the page from the browser the …

---

## [Encoding issue with file upload](https://www.ruby-forum.com/t/encoding-issue-with-file-upload/174158)

<div class="topic-metadata">

**Author:** [@akyrho](https://www.ruby-forum.com/u/akyrho)\
**Replies:** 4\
**Last updated:** [August 26, 2009, 5:11pm UTC](https://www.ruby-forum.com/t/encoding-issue-with-file-upload/174158 "2009-08-26T17:11:19Z")

</div>

Hello, I’ve got some issue while trying to upload and read csv file on my application. For some file, i get some odd character appearing when i print the result, but not in my logs. Here joined a screen to explain wh…

---

## [Combining Numerous Models Errors](https://www.ruby-forum.com/t/combining-numerous-models-errors/174414)

<div class="topic-metadata">

**Author:** [@pmckinstry](https://www.ruby-forum.com/u/pmckinstry)\
**Replies:** 0\
**Last updated:** [August 26, 2009, 4:44pm UTC](https://www.ruby-forum.com/t/combining-numerous-models-errors/174414 "2009-08-26T16:44:46Z")

</div>

Hi There, I have a form which interacts with numerous models (which are all related). I use the validates\_associated to check that all the related models are valid - however that just displays a generic error saying …

---

## [Compatibility of RedBox with Explorer 7](https://www.ruby-forum.com/t/compatibility-of-redbox-with-explorer-7/174413)

<div class="topic-metadata">

**Author:** [@cool81](https://www.ruby-forum.com/u/cool81)\
**Replies:** 0\
**Last updated:** [August 26, 2009, 3:59pm UTC](https://www.ruby-forum.com/t/compatibility-of-redbox-with-explorer-7/174413 "2009-08-26T15:59:18Z")

</div>

Hello everyone, I want to use the plugin Redbox, but on Explorer7 it does not work, it only display the empty div ‘RB\_loading’. On Firefox it works fine. Someone knows why?

---

## [Check paramater?](https://www.ruby-forum.com/t/check-paramater/174409)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 2\
**Last updated:** [August 26, 2009, 3:07pm UTC](https://www.ruby-forum.com/t/check-paramater/174409 "2009-08-26T15:07:04Z")

</div>

Hi Below is the parameter for one process Parameters: {“authenticity\_token”=\>“kpYmwJjjYcJ3PNWBGaBf8rBd1Xxmg1WJjCkDtEYUq+0=”, “id”=\>“A”, “agency”=\>{“status”=\>“all”, “contracts\_id”=\>"", “state\_id”=\>“2”, “agency\_id”=\>"…

---

## [Page loader progress bar](https://www.ruby-forum.com/t/page-loader-progress-bar/174395)

<div class="topic-metadata">

**Author:** [@PaweSSSSSK](https://www.ruby-forum.com/u/PaweSSSSSK)\
**Replies:** 2\
**Last updated:** [August 26, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/page-loader-progress-bar/174395 "2009-08-26T14:55:15Z")

</div>

Hi, I’d like to make search form with some kind of “progress bar” - user posts input, and AJAX overlay shows current progress (only step is needed like 20%) Do you have any suggestions how to achieve this effect?

---

## [Problem while connecting MS Sql 2000 from linux](https://www.ruby-forum.com/t/problem-while-connecting-ms-sql-2000-from-linux/174386)

<div class="topic-metadata">

**Author:** [@mjayakumar2k6](https://www.ruby-forum.com/u/mjayakumar2k6)\
**Replies:** 1\
**Last updated:** [August 26, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/problem-while-connecting-ms-sql-2000-from-linux/174386 "2009-08-26T14:37:21Z")

</div>

Hi , I did all steps given in below link http://wiki.rubyonrails.org/database-support/ms-sql#dsn-less\_connection And when I connect SQL 200 from my ubuntu 7.10 through SQSH it is connecting. when I try to connect th…

---

## [Problem with radio buttons if input required (validates\_presence\_of)](https://www.ruby-forum.com/t/problem-with-radio-buttons-if-input-required-validates-presence-of/174397)

<div class="topic-metadata">

**Author:** [@Knut\_Rollig](https://www.ruby-forum.com/u/Knut_Rollig)\
**Replies:** 2\
**Last updated:** [August 26, 2009, 2:01pm UTC](https://www.ruby-forum.com/t/problem-with-radio-buttons-if-input-required-validates-presence-of/174397 "2009-08-26T14:01:59Z")

</div>

Hi, I am using two radio buttons (‘yes’, ‘no’) for one single field (here: newsletter). In my model I defined the field as required (validates\_presence\_of). In my view, field value gets set based on user input. As de…

---

## [Link\_to\_remote parameter](https://www.ruby-forum.com/t/link-to-remote-parameter/174405)

<div class="topic-metadata">

**Author:** [@RVince](https://www.ruby-forum.com/u/RVince)\
**Replies:** 0\
**Last updated:** [August 26, 2009, 1:56pm UTC](https://www.ruby-forum.com/t/link-to-remote-parameter/174405 "2009-08-26T13:56:08Z")

</div>

I have some javascript in a page whereby I can call: alert(document.getElementById(“channelnotes”).options \[document.getElementById (“channelnotes”).options.selectedIndex\].value ); And get the value in a select box o…

---

## [Has\_one and new](https://www.ruby-forum.com/t/has-one-and-new/174402)

<div class="topic-metadata">

**Author:** [@pmckinstry](https://www.ruby-forum.com/u/pmckinstry)\
**Replies:** 0\
**Last updated:** [August 26, 2009, 1:54pm UTC](https://www.ruby-forum.com/t/has-one-and-new/174402 "2009-08-26T13:54:40Z")

</div>

Hi Folks, I’m totally confused - I have 3 tables search, pickup\_search and dropoff\_search pickup\_search and dropoff\_search are nearly identical and each contain the search\_id key. My Models are as follows. class Se…

---

## [Bad link?](https://www.ruby-forum.com/t/bad-link/174401)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [August 26, 2009, 1:33pm UTC](https://www.ruby-forum.com/t/bad-link/174401 "2009-08-26T13:33:15Z")

</div>

sorry if this is the wrong place for this, but there appears to be a bad link: http://rails-engines.org/development the link to “README” Also any update on the “no migrations” aspect of EDGE? Thanks. -r

---

## [Integrating one rails application into another](https://www.ruby-forum.com/t/integrating-one-rails-application-into-another/174398)

<div class="topic-metadata">

**Author:** [@sandy](https://www.ruby-forum.com/u/sandy)\
**Replies:** 1\
**Last updated:** [August 26, 2009, 1:08pm UTC](https://www.ruby-forum.com/t/integrating-one-rails-application-into-another/174398 "2009-08-26T13:08:42Z")

</div>

Hi, I have requirement where in I need to integrate one rails application into another. We have two dashboards developed in RoR. Now, we are thinking of integrating one into another. We r thinking of migrating one o…

---

## [How to handle absolute URL that user inputs into a table?](https://www.ruby-forum.com/t/how-to-handle-absolute-url-that-user-inputs-into-a-table/174391)

<div class="topic-metadata">

**Author:** [@AnhHung](https://www.ruby-forum.com/u/AnhHung)\
**Replies:** 4\
**Last updated:** [August 26, 2009, 12:58pm UTC](https://www.ruby-forum.com/t/how-to-handle-absolute-url-that-user-inputs-into-a-table/174391 "2009-08-26T12:58:30Z")

</div>

Hi, I have a User table that has a Website column. In the form I would have the user type in the URL to their website. If they type the full-blown address “http://www.example.com” then “link\_to @user.website, @user.w…

---

## [Ruby on Rails \> test:integration Expected response to be a \<:redirect\>, but was \<404\>](https://www.ruby-forum.com/t/ruby-on-rails-test-integration-expected-response-to-be-a-redirect-but-was-404/174384)

<div class="topic-metadata">

**Author:** [@fireflyman](https://www.ruby-forum.com/u/fireflyman)\
**Replies:** 2\
**Last updated:** [August 26, 2009, 11:59am UTC](https://www.ruby-forum.com/t/ruby-on-rails-test-integration-expected-response-to-be-a-redirect-but-was-404/174384 "2009-08-26T11:59:03Z")

</div>

Hello, I’m trying to write some tests and I get a failure error on one test, which I am not sure why or where is my mistake. In my test/integration/product\_test.rb I have: require ‘test\_helper’ class ProductTest \< A…

---

## [Rails pagination like twitter more link](https://www.ruby-forum.com/t/rails-pagination-like-twitter-more-link/174394)

<div class="topic-metadata">

**Author:** [@saideep\_a.v.s](https://www.ruby-forum.com/u/saideep_a.v.s)\
**Replies:** 0\
**Last updated:** [August 26, 2009, 11:42am UTC](https://www.ruby-forum.com/t/rails-pagination-like-twitter-more-link/174394 "2009-08-26T11:42:40Z")

</div>

Hello All, Finally, Here is the link for the twitter like pagination with classic mislav-will\_paginate Best Wishes, Saideep Annadatha

---

## [Links on page](https://www.ruby-forum.com/t/links-on-page/174390)

<div class="topic-metadata">

**Author:** [@nik](https://www.ruby-forum.com/u/nik)\
**Replies:** 4\
**Last updated:** [August 26, 2009, 11:23am UTC](https://www.ruby-forum.com/t/links-on-page/174390 "2009-08-26T11:23:21Z")

</div>

hi all, On my page i am displaying business url entered by user it stored in database (code is in haml) = link\_to @user.website,@user.website if url stored in database is “www.abc.com” then on click of that link i…

---

## [Autocomplete with DB + Urgent](https://www.ruby-forum.com/t/autocomplete-with-db-urgent/174330)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 6\
**Last updated:** [August 26, 2009, 11:09am UTC](https://www.ruby-forum.com/t/autocomplete-with-db-urgent/174330 "2009-08-26T11:09:45Z")

</div>

Hello Champs, I fetch out the values of a table (suppose users) from database and want to show them(user’s name) in a text-field with autocomplete… Can i do this in rails … If yes, then how can … ? Do not know any th…

---

## [Deleting Data After Viewing On Page](https://www.ruby-forum.com/t/deleting-data-after-viewing-on-page/174388)

<div class="topic-metadata">

**Author:** [@tdellaringa](https://www.ruby-forum.com/u/tdellaringa)\
**Replies:** 2\
**Last updated:** [August 26, 2009, 10:09am UTC](https://www.ruby-forum.com/t/deleting-data-after-viewing-on-page/174388 "2009-08-26T10:09:35Z")

</div>

I’m creating a site that allows users to upload a picture. The picture they uploaded will be shown randomly for a period of time then another one will come on. When they upload it, they pay a certain price, depending …

---

## [Functional testing with different data sets](https://www.ruby-forum.com/t/functional-testing-with-different-data-sets/174369)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 3\
**Last updated:** [August 26, 2009, 9:52am UTC](https://www.ruby-forum.com/t/functional-testing-with-different-data-sets/174369 "2009-08-26T09:52:02Z")

</div>

Hello, I just ran into a bug in my application in which the behavior differed depending on whether there was a single element in a particular table or multiple elements in the table. Right after I fixed the bug, I t…

---

## [Rails pagination like twitter more button](https://www.ruby-forum.com/t/rails-pagination-like-twitter-more-button/173362)

<div class="topic-metadata">

**Author:** [@xianfeng\_Wang](https://www.ruby-forum.com/u/xianfeng_Wang)\
**Replies:** 4\
**Last updated:** [August 26, 2009, 9:49am UTC](https://www.ruby-forum.com/t/rails-pagination-like-twitter-more-button/173362 "2009-08-26T09:49:42Z")

</div>

hi all: in rails , have a plugin or a tutorial for pagination like twitter more button ? any suggestion? thanks

---

## [Programmatically Finding Model Default Values](https://www.ruby-forum.com/t/programmatically-finding-model-default-values/174378)

<div class="topic-metadata">

**Author:** [@Jeffrey\_LSTaylor](https://www.ruby-forum.com/u/Jeffrey_LSTaylor)\
**Replies:** 2\
**Last updated:** [August 26, 2009, 8:59am UTC](https://www.ruby-forum.com/t/programmatically-finding-model-default-values/174378 "2009-08-26T08:59:58Z")

</div>

Is there a way to find the default values of a model? That tracks schema changes without requiring code changes? Thanx, Jeffrey

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

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