# Rails

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

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

---

## [Validate field not in model?](https://www.ruby-forum.com/t/validate-field-not-in-model/161523)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 4\
**Last updated:** [February 27, 2009, 10:03am UTC](https://www.ruby-forum.com/t/validate-field-not-in-model/161523 "2009-02-27T10:03:36Z")

</div>

I want to validate a field in my form that’s not an attribute in the model. How do I do this?

---

## [Has\_and\_belongs\_to\_many](https://www.ruby-forum.com/t/has-and-belongs-to-many/161546)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 8:55am UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many/161546 "2009-02-27T08:55:51Z")

</div>

Hi I have the models 1)CompanyRequest has\_many :contacts 2)Contact belongs\_to :company\_request has\_and)\_belongs\_to\_many :roles 3)Role has\_and)\_belongs\_to\_many :contacts and the join table contact\_roles containg …

---

## [Is their a Twitter/ROR application available?](https://www.ruby-forum.com/t/is-their-a-twitter-ror-application-available/161543)

<div class="topic-metadata">

**Author:** [@mcrj45](https://www.ruby-forum.com/u/mcrj45)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 8:03am UTC](https://www.ruby-forum.com/t/is-their-a-twitter-ror-application-available/161543 "2009-02-27T08:03:25Z")

</div>

Hi, I’m looking for an ROR application which provides the same function as Twitter (Microblogging) and which allows users to restrict the follower only to friends (so only friends can read what I have written)?

---

## [Prototip Form Fill](https://www.ruby-forum.com/t/prototip-form-fill/161539)

<div class="topic-metadata">

**Author:** [@rails1](https://www.ruby-forum.com/u/rails1)\
**Replies:** 1\
**Last updated:** [February 27, 2009, 6:41am UTC](https://www.ruby-forum.com/t/prototip-form-fill/161539 "2009-02-27T06:41:06Z")

</div>

Dears, I am using a prototip2 tooltip to show a page containing list of items through ajaz request.Each of these items are hyperlinks or simply clickable.What i want is when i click on this links in the tooltip, it s…

---

## [How to Call function](https://www.ruby-forum.com/t/how-to-call-function/161538)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 6:21am UTC](https://www.ruby-forum.com/t/how-to-call-function/161538 "2009-02-27T06:21:08Z")

</div>

if sub.include?(“html”) path = File.join("/ACMServer\_exe/ChatHistory",f,sub\_folder\_name,sub) @file\_path \<\< path @found\_folder \<\< sub\_folder\_name @chat\_date \<\< f end The above code has to be used in my controller re…

---

## [Multiple Table Inheritance](https://www.ruby-forum.com/t/multiple-table-inheritance/161536)

<div class="topic-metadata">

**Author:** [@arpit](https://www.ruby-forum.com/u/arpit)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 6:11am UTC](https://www.ruby-forum.com/t/multiple-table-inheritance/161536 "2009-02-27T06:11:00Z")

</div>

Can anyone help me with this http://pastie.org/401752 – Arpit J.

---

## [How to do hunspell](https://www.ruby-forum.com/t/how-to-do-hunspell/161532)

<div class="topic-metadata">

**Author:** [@madhavi.k](https://www.ruby-forum.com/u/madhavi.k)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 5:25am UTC](https://www.ruby-forum.com/t/how-to-do-hunspell/161532 "2009-02-27T05:25:24Z")

</div>

Can we use hunspell spell check for tinyMCE Editor?(windows) If so how to ?

---

## [Hunspell](https://www.ruby-forum.com/t/hunspell/161533)

<div class="topic-metadata">

**Author:** [@madhavi.k](https://www.ruby-forum.com/u/madhavi.k)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 5:09am UTC](https://www.ruby-forum.com/t/hunspell/161533 "2009-02-27T05:09:35Z")

</div>

Hello , What are the requirements to install hunspell on windows for rails application? And how to do it? Plz reply me… Thank you in advance…

---

## [Wonky Validation, attr\_accessor](https://www.ruby-forum.com/t/wonky-validation-attr-accessor/161272)

<div class="topic-metadata">

**Author:** [@Viral](https://www.ruby-forum.com/u/Viral)\
**Replies:** 2\
**Last updated:** [February 27, 2009, 4:47am UTC](https://www.ruby-forum.com/t/wonky-validation-attr-accessor/161272 "2009-02-27T04:47:20Z")

</div>

I have a somewhat basic question, I have my User Model with the following attributes: User.email User.hashed\_password User.salt Attr Accessors User.password\_confirmation User.email\_confirmation class User \< ActiveR…

---

## [Trying to produce JSON that is consumable by Dojo](https://www.ruby-forum.com/t/trying-to-produce-json-that-is-consumable-by-dojo/161529)

<div class="topic-metadata">

**Author:** [@sktib](https://www.ruby-forum.com/u/sktib)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 4:42am UTC](https://www.ruby-forum.com/t/trying-to-produce-json-that-is-consumable-by-dojo/161529 "2009-02-27T04:42:55Z")

</div>

Folks, When I get data in my test Rails app through a model and convert it to JSON e.g. Meal.find(:all).to\_json, the JSON format I get seems to be very different from what the dojo.data.ItemFileReadStore expects. How…

---

## [Problem with select\_tag](https://www.ruby-forum.com/t/problem-with-select-tag/161524)

<div class="topic-metadata">

**Author:** [@ple\_mazako](https://www.ruby-forum.com/u/ple_mazako)\
**Replies:** 1\
**Last updated:** [February 27, 2009, 4:09am UTC](https://www.ruby-forum.com/t/problem-with-select-tag/161524 "2009-02-27T04:09:14Z")

</div>

i create drop-down memu for organelle by using select\_tag but problem is can’t get value for form to database seqfeature, i don’t understand why? pls help me code for veiw.rhtm \<% form\_for :seqfeature do |form| %\>

---

## [Javascript using jQuery.js and prototype.js doesnt work 2get](https://www.ruby-forum.com/t/javascript-using-jquery-js-and-prototype-js-doesnt-work-2get/161399)

<div class="topic-metadata">

**Author:** [@radha](https://www.ruby-forum.com/u/radha)\
**Replies:** 7\
**Last updated:** [February 27, 2009, 4:07am UTC](https://www.ruby-forum.com/t/javascript-using-jquery-js-and-prototype-js-doesnt-work-2get/161399 "2009-02-27T04:07:28Z")

</div>

Hi… M hving javascript “scripts.js” which uses jQuery.js in rails application. bt when it is used along with prototype.js, one of the javascripts which hs been included first in my application.rhtml fails… Do some1 …

---

## [Rails spell check](https://www.ruby-forum.com/t/rails-spell-check/161459)

<div class="topic-metadata">

**Author:** [@madhavi.k](https://www.ruby-forum.com/u/madhavi.k)\
**Replies:** 2\
**Last updated:** [February 27, 2009, 3:50am UTC](https://www.ruby-forum.com/t/rails-spell-check/161459 "2009-02-27T03:50:29Z")

</div>

Is ruby on rails supports aspell spell check ? Is there any links for spell check for rails application ? All links I gone through are discussing about php but not ruby on rails? Plzzzzzzzzzz give me reply …

---

## [Contextually aware controllers](https://www.ruby-forum.com/t/contextually-aware-controllers/161519)

<div class="topic-metadata">

**Author:** [@spike](https://www.ruby-forum.com/u/spike)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 2:59am UTC](https://www.ruby-forum.com/t/contextually-aware-controllers/161519 "2009-02-27T02:59:57Z")

</div>

Hi everyone, my CMS app is starting to get quite large. I have heaps of modules (about 15) and some of these modules are re-used within different contexts: An example is that you can add a Page to the schools website,…

---

## [Routes question and defaulting to something](https://www.ruby-forum.com/t/routes-question-and-defaulting-to-something/161388)

<div class="topic-metadata">

**Author:** [@ramontayag](https://www.ruby-forum.com/u/ramontayag)\
**Replies:** 2\
**Last updated:** [February 27, 2009, 2:40am UTC](https://www.ruby-forum.com/t/routes-question-and-defaulting-to-something/161388 "2009-02-27T02:40:35Z")

</div>

Hey everyone! Is there a way of saying something like this in the routes file (note that map.connect :controller/:action/:id is my last pattern): “If the controller you specified doesn’t exist, then go to the next pa…

---

## [Error accessing db through model - Rails 2.2.2, MySql 5.1.30](https://www.ruby-forum.com/t/error-accessing-db-through-model-rails-2-2-2-mysql-5-1-30/161378)

<div class="topic-metadata">

**Author:** [@sktib](https://www.ruby-forum.com/u/sktib)\
**Replies:** 5\
**Last updated:** [February 27, 2009, 12:29am UTC](https://www.ruby-forum.com/t/error-accessing-db-through-model-rails-2-2-2-mysql-5-1-30/161378 "2009-02-27T00:29:36Z")

</div>

Folks, I just installed Rails 2.2.2 on my box and MySql 5.1.30. Running a simple .find(:all) gives me a bunch of errors - snippet below. The only answer I have found in searching around is to go back to an older vers…

---

## [Callback behavior differs between Windows and Linux](https://www.ruby-forum.com/t/callback-behavior-differs-between-windows-and-linux/161500)

<div class="topic-metadata">

**Author:** [@Commander\_J](https://www.ruby-forum.com/u/Commander_J)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 11:27pm UTC](https://www.ruby-forum.com/t/callback-behavior-differs-between-windows-and-linux/161500 "2009-02-26T23:27:47Z")

</div>

Hi, I have a model with a callback (person.rb) after\_create :send\_creation\_mail On Windows, this doesn’t send until Person.save. On Linux, the hook is executed upon Person.new. Any ideas why this happens? Best reg…

---

## [Local variables in partials lead to NameError](https://www.ruby-forum.com/t/local-variables-in-partials-lead-to-nameerror/161362)

<div class="topic-metadata">

**Author:** [@jamie\_f](https://www.ruby-forum.com/u/jamie_f)\
**Replies:** 9\
**Last updated:** [February 26, 2009, 11:17pm UTC](https://www.ruby-forum.com/t/local-variables-in-partials-lead-to-nameerror/161362 "2009-02-26T23:17:25Z")

</div>

I know I must be doing something dumb, but I can’t seem to send a local variable to my partial. The below code leads to the following error: NameError in Residential\_listings#new undefined local variable or method \`f…

---

## [Css selectors and ActionView::FormHelper](https://www.ruby-forum.com/t/css-selectors-and-actionview-formhelper/161495)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 10:57pm UTC](https://www.ruby-forum.com/t/css-selectors-and-actionview-formhelper/161495 "2009-02-26T22:57:54Z")

</div>

Rails 2.2.2 In a view partial, When I do this: \<%= label client\_detail.class.to\_s.downcase, :client\_credit\_limit, "Credit Limit: ", :class =\> :input\_box\_label, :for =\> …

---

## [Composed\_of, aggregate object isn't saved](https://www.ruby-forum.com/t/composed-of-aggregate-object-isnt-saved/161487)

<div class="topic-metadata">

**Author:** [@jpfeifer](https://www.ruby-forum.com/u/jpfeifer)\
**Replies:** 1\
**Last updated:** [February 26, 2009, 10:21pm UTC](https://www.ruby-forum.com/t/composed-of-aggregate-object-isnt-saved/161487 "2009-02-26T22:21:14Z")

</div>

I am relatively new to rails and I cannot figure out what is going on here. I am using the composed\_of method in an ActiveRecord class to create two aggregate properties: shipping\_address and billing\_address. The obje…

---

## [Spell check for tinyMCE](https://www.ruby-forum.com/t/spell-check-for-tinymce/161457)

<div class="topic-metadata">

**Author:** [@madhavi.k](https://www.ruby-forum.com/u/madhavi.k)\
**Replies:** 1\
**Last updated:** [February 26, 2009, 9:26pm UTC](https://www.ruby-forum.com/t/spell-check-for-tinymce/161457 "2009-02-26T21:26:17Z")

</div>

Hello , I installed tinyMCE 3.2.1.1 version and aspell spell checker version 0.60.3-en-US(2). Is both the versions are compatible ?? Is FireFox supports aspell spell checker?

---

## [Validation + should be \> 0](https://www.ruby-forum.com/t/validation-should-be-0/161482)

<div class="topic-metadata">

**Author:** [@petan](https://www.ruby-forum.com/u/petan)\
**Replies:** 1\
**Last updated:** [February 26, 2009, 9:25pm UTC](https://www.ruby-forum.com/t/validation-should-be-0/161482 "2009-02-26T21:25:38Z")

</div>

Hi, my default value for variable mainimage\_id is 0. I am trying to apply really basic validation. If mainimage\_id is 0 it should fail and if it is \> 0 it should pass the validation. validates\_numericality\_of :mainim…

---

## [Receiving XML messages through a TCP or UDP port](https://www.ruby-forum.com/t/receiving-xml-messages-through-a-tcp-or-udp-port/161485)

<div class="topic-metadata">

**Author:** [@anthony](https://www.ruby-forum.com/u/anthony)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 9:20pm UTC](https://www.ruby-forum.com/t/receiving-xml-messages-through-a-tcp-or-udp-port/161485 "2009-02-26T21:20:20Z")

</div>

Hi, I’m trying to integrate into a legacy application that sends out XML messages over TCP or UDP. Are there any plugins I can leverage to help me accomplish this?

---

## [Retrieve value from text\_field and save it in another model](https://www.ruby-forum.com/t/retrieve-value-from-text-field-and-save-it-in-another-model/161422)

<div class="topic-metadata">

**Author:** [@rmswarna](https://www.ruby-forum.com/u/rmswarna)\
**Replies:** 1\
**Last updated:** [February 26, 2009, 9:07pm UTC](https://www.ruby-forum.com/t/retrieve-value-from-text-field-and-save-it-in-another-model/161422 "2009-02-26T21:07:18Z")

</div>

HI, I am very new to rails. Any help from your side will be very helpful. I have two models Child.rb and Filtersetting.rb I have written the code for inserting into both models with many rows at the same time. It w…

---

## [Problem with select\_tag](https://www.ruby-forum.com/t/problem-with-select-tag/78719)

<div class="topic-metadata">

**Author:** [@richard](https://www.ruby-forum.com/u/richard)\
**Replies:** 4\
**Last updated:** [February 26, 2009, 9:04pm UTC](https://www.ruby-forum.com/t/problem-with-select-tag/78719 "2009-02-26T21:04:13Z")

</div>

I’m using the following tag in a partial: \<%= select\_tag options\_from\_collection\_for\_select(@cuisines, “name”, “id”) %\> to create a drop down menu of cuisines. However, the output I’m getting it an empty menu. When …

---

## [Better to pass Activerecord objects or ids as parameters?](https://www.ruby-forum.com/t/better-to-pass-activerecord-objects-or-ids-as-parameters/161473)

<div class="topic-metadata">

**Author:** [@openmind](https://www.ruby-forum.com/u/openmind)\
**Replies:** 1\
**Last updated:** [February 26, 2009, 8:13pm UTC](https://www.ruby-forum.com/t/better-to-pass-activerecord-objects-or-ids-as-parameters/161473 "2009-02-26T20:13:06Z")

</div>

Hi all, I’m wondering what the best practices/conventions are for passing parameters to models I am writing. Is it better to pass ActiveRecord objects, or their database IDs? In my current application, I’ve been pass…

---

## [\[ADV/ANN\] Get a support site with the Helpdesk Rails Kit](https://www.ruby-forum.com/t/adv-ann-get-a-support-site-with-the-helpdesk-rails-kit/161474)

<div class="topic-metadata">

**Author:** [@Benjamin\_C](https://www.ruby-forum.com/u/Benjamin_C)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 7:57pm UTC](https://www.ruby-forum.com/t/adv-ann-get-a-support-site-with-the-helpdesk-rails-kit/161474 "2009-02-26T19:57:41Z")

</div>

The Helpdesk Rails Kit http://railskits.com/helpdesk/ is now available to help you host your own support site, or even quickly add code for a support site to your existing Rails app. It integrates well with email to …

---

## [Line breaks removed from ActionMailer template](https://www.ruby-forum.com/t/line-breaks-removed-from-actionmailer-template/161468)

<div class="topic-metadata">

**Author:** [@Phoenix\_R](https://www.ruby-forum.com/u/Phoenix_R)\
**Replies:** 1\
**Last updated:** [February 26, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/line-breaks-removed-from-actionmailer-template/161468 "2009-02-26T19:35:32Z")

</div>

I’ve been googling and searching this list for about an hour now, and maybe I’m just not thinking of the common nomenclature for what to be looking for, but I can’t find jack. Here’s the deal: I’ve got an application…

---

## [Store find output in a new array](https://www.ruby-forum.com/t/store-find-output-in-a-new-array/197216)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 4\
**Last updated:** [February 26, 2009, 7:02pm UTC](https://www.ruby-forum.com/t/store-find-output-in-a-new-array/197216 "2009-02-26T19:02:25Z")

</div>

Hi, the array below is the output from a find(:all) \[#\<Boekingen affnr: “vl999”, pnr: “MA5OSG”, agent: “monties”, ticket\_prijs: #BigDecimal:b775f4c4,‘0.138E3’,4(12), aantal\_pers: 2, ticket\_fees: nil, res\_kosten: nil,…

---

## [ActionMaler problems with accented characters](https://www.ruby-forum.com/t/actionmaler-problems-with-accented-characters/161464)

<div class="topic-metadata">

**Author:** [@cassiozen](https://www.ruby-forum.com/u/cassiozen)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 7:00pm UTC](https://www.ruby-forum.com/t/actionmaler-problems-with-accented-characters/161464 "2009-02-26T19:00:51Z")

</div>

Hello everybody, I have an application that sends html emails, but all the accented characters (the messages are in portuguese) are shown incorrectly. I’ve already used ActionMailer::Base.default\_charset = “utf-8” but…

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

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