# Rails

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

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

---

## [What's the simplest way to use ActiveResource in ruby (without rails)?](https://www.ruby-forum.com/t/whats-the-simplest-way-to-use-activeresource-in-ruby-without-rails/178068)

<div class="topic-metadata">

**Author:** [@skarayan](https://www.ruby-forum.com/u/skarayan)\
**Replies:** 2\
**Last updated:** [October 30, 2009, 10:29am UTC](https://www.ruby-forum.com/t/whats-the-simplest-way-to-use-activeresource-in-ruby-without-rails/178068 "2009-10-30T10:29:15Z")

</div>

I would like to use this class in a standalone project, but I have been unsuccessful thus far. Also, how does this class exactly communicate with the web server? Thank you. class Person \< ActiveResource::Base self.s…

---

## [Access to calling chain associations](https://www.ruby-forum.com/t/access-to-calling-chain-associations/178179)

<div class="topic-metadata">

**Author:** [@jakew](https://www.ruby-forum.com/u/jakew)\
**Replies:** 1\
**Last updated:** [October 30, 2009, 10:25am UTC](https://www.ruby-forum.com/t/access-to-calling-chain-associations/178179 "2009-10-30T10:25:09Z")

</div>

Assuming that we have a player model and a game model and that each game has multiple players as described below. class Game \< ActiveRecord::Base has\_many :players def some\_method # # which player called me? # e…

---

## [Facing error in gmail account](https://www.ruby-forum.com/t/facing-error-in-gmail-account/178134)

<div class="topic-metadata">

**Author:** [@sachin](https://www.ruby-forum.com/u/sachin)\
**Replies:** 2\
**Last updated:** [October 30, 2009, 10:04am UTC](https://www.ruby-forum.com/t/facing-error-in-gmail-account/178134 "2009-10-30T10:04:05Z")

</div>

Hi, When i login into my gmail accout and use the chat service. I face an javascript error. which show a msg ‘null’ is null or not an object. By this error some times i donot check my mails properly. Please help me t…

---

## [Best Practice For Displaying Data](https://www.ruby-forum.com/t/best-practice-for-displaying-data/178157)

<div class="topic-metadata">

**Author:** [@acgreen](https://www.ruby-forum.com/u/acgreen)\
**Replies:** 3\
**Last updated:** [October 30, 2009, 9:28am UTC](https://www.ruby-forum.com/t/best-practice-for-displaying-data/178157 "2009-10-30T09:28:23Z")

</div>

Simplified, I have the following relationships … term has many swimming\_classes and a swimming\_class belongs to a term swimming\_pool has many swimming\_classes and a swimming\_class belongs to a swimming\_pool terms (d…

---

## [User driven form creator?](https://www.ruby-forum.com/t/user-driven-form-creator/178074)

<div class="topic-metadata">

**Author:** [@steve\_bell](https://www.ruby-forum.com/u/steve_bell)\
**Replies:** 6\
**Last updated:** [October 30, 2009, 8:27am UTC](https://www.ruby-forum.com/t/user-driven-form-creator/178074 "2009-10-30T08:27:31Z")

</div>

Hi All, I need to add functionality to an intranet site where users can design basic forms such as leave forms, change of details forms, request for printing forms, etc via a web gui where they enter the label, select…

---

## [What is the future of Ruby on Rails? MySQL? Compare with Java, MS SQL or Oracle?](https://www.ruby-forum.com/t/what-is-the-future-of-ruby-on-rails-mysql-compare-with-java-ms-sql-or-oracle/178086)

<div class="topic-metadata">

**Author:** [@suki](https://www.ruby-forum.com/u/suki)\
**Replies:** 7\
**Last updated:** [October 30, 2009, 8:26am UTC](https://www.ruby-forum.com/t/what-is-the-future-of-ruby-on-rails-mysql-compare-with-java-ms-sql-or-oracle/178086 "2009-10-30T08:26:56Z")

</div>

Just got into this ROR world, and wondering around! Would like to hear what others think about ROR. Thanks.

---

## [Including helpers in controller](https://www.ruby-forum.com/t/including-helpers-in-controller/178176)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [October 30, 2009, 8:09am UTC](https://www.ruby-forum.com/t/including-helpers-in-controller/178176 "2009-10-30T08:09:42Z")

</div>

Hi Is there anything wrong in including helpers in controller? For example fruits\_helper in fruits\_controller .Is it against MVC separation? Thanks in advance Sijo

---

## [Range search syntax with xapian?](https://www.ruby-forum.com/t/range-search-syntax-with-xapian/178052)

<div class="topic-metadata">

**Author:** [@massi](https://www.ruby-forum.com/u/massi)\
**Replies:** 1\
**Last updated:** [October 30, 2009, 6:53am UTC](https://www.ruby-forum.com/t/range-search-syntax-with-xapian/178052 "2009-10-30T06:53:32Z")

</div>

hey , am looking for xapian syntax to do a range search in my code i have class Table \< AR acts\_as\_xapian :texts =\> \[:title\], :values =\> \[\[ :left, 0, “left”, :number \],\[ :right, 1, “right”, :number \] \], :terms =\> …

---

## [Button\_to results in wrong route?](https://www.ruby-forum.com/t/button-to-results-in-wrong-route/178166)

<div class="topic-metadata">

**Author:** [@eichlerguy](https://www.ruby-forum.com/u/eichlerguy)\
**Replies:** 2\
**Last updated:** [October 30, 2009, 6:36am UTC](https://www.ruby-forum.com/t/button-to-results-in-wrong-route/178166 "2009-10-30T06:36:26Z")

</div>

Hi, all, Newbie question. When using button\_to, the browser navigates to a proper URL (http:// localhost:3000/sites/6/edit, for example), but I get a “No action responded to 6” error. Looking in the log, I see “Proce…

---

## [Ajax POST from Javascript to Rails: How?](https://www.ruby-forum.com/t/ajax-post-from-javascript-to-rails-how/178163)

<div class="topic-metadata">

**Author:** [@kbkbkb](https://www.ruby-forum.com/u/kbkbkb)\
**Replies:** 1\
**Last updated:** [October 30, 2009, 6:18am UTC](https://www.ruby-forum.com/t/ajax-post-from-javascript-to-rails-how/178163 "2009-10-30T06:18:49Z")

</div>

Hi, I’m new to rails, and have been struggling for a while now on how to get a simple HTTP POST working via a Prototype-based Ajax call to a rails scaffold. I’m performing the POST as follows from javascript: new Aja…

---

## [Using multiple databases](https://www.ruby-forum.com/t/using-multiple-databases/178023)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 4\
**Last updated:** [October 30, 2009, 4:34am UTC](https://www.ruby-forum.com/t/using-multiple-databases/178023 "2009-10-30T04:34:55Z")

</div>

Dear Frienz, In one of my project i need to implement archiving of logs. I have two database called people\_development and archive\_development. I have used all my development in people\_development database. developme…

---

## [Flexible model associations](https://www.ruby-forum.com/t/flexible-model-associations/177689)

<div class="topic-metadata">

**Author:** [@notmatt](https://www.ruby-forum.com/u/notmatt)\
**Replies:** 17\
**Last updated:** [October 30, 2009, 4:01am UTC](https://www.ruby-forum.com/t/flexible-model-associations/177689 "2009-10-30T04:01:48Z")

</div>

I am having trouble trying to figure out how to set up this many to many relationship. I have 4 models (ModelA, ModelB, ModelC, ModelD). A user can create any number of these models and they can relate instances of …

---

## [Fantastic job opportunity in the UK for a dynamic and forward thinking Ruby on Rails developer](https://www.ruby-forum.com/t/fantastic-job-opportunity-in-the-uk-for-a-dynamic-and-forward-thinking-ruby-on-rails-developer/178165)

<div class="topic-metadata">

**Author:** [@Matt.Krailing](https://www.ruby-forum.com/u/Matt.Krailing)\
**Replies:** 0\
**Last updated:** [October 30, 2009, 3:11am UTC](https://www.ruby-forum.com/t/fantastic-job-opportunity-in-the-uk-for-a-dynamic-and-forward-thinking-ruby-on-rails-developer/178165 "2009-10-30T03:11:26Z")

</div>

Developer, Ruby on Rails Hampshire (UK) 20-27k My Hampshire based client, an industry leading software company, are looking for an established Ruby developer to join their growing team. They specialise in financial …

---

## [Uninitialized constant (controller/model)](https://www.ruby-forum.com/t/uninitialized-constant-controller-model/142740)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 5\
**Last updated:** [October 30, 2009, 3:06am UTC](https://www.ruby-forum.com/t/uninitialized-constant-controller-model/142740 "2009-10-30T03:06:45Z")

</div>

NameError in StoreController#add\_to\_cart uninitialized constant StoreController::Cart This is the controller: class StoreController \< ApplicationController def index @products = Product.find\_products\_for\_sale end d…

---

## [Subida de video en produccion](https://www.ruby-forum.com/t/subida-de-video-en-produccion/178126)

<div class="topic-metadata">

**Author:** [@laura\_cordoba](https://www.ruby-forum.com/u/laura_cordoba)\
**Replies:** 2\
**Last updated:** [October 30, 2009, 2:14am UTC](https://www.ruby-forum.com/t/subida-de-video-en-produccion/178126 "2009-10-30T02:14:39Z")

</div>

Hola, tengo un problema con la subida de videos al servidor, (tengo apache2 como servidor). Quiero subir un video de unos 150Mb y cuando lo subo en el servidor en modo development me lo sube perfecto pero cuando lo ha…

---

## [Rails form POSTing NULL values](https://www.ruby-forum.com/t/rails-form-posting-null-values/226054)

<div class="topic-metadata">

**Author:** [@face7hill](https://www.ruby-forum.com/u/face7hill)\
**Replies:** 3\
**Last updated:** [October 30, 2009, 1:15am UTC](https://www.ruby-forum.com/t/rails-form-posting-null-values/226054 "2009-10-30T01:15:32Z")

</div>

Hello All, Several of my Rails apps on a server broke all at once. Specifically, any forms that POST no longer work; NULL values are being submitted instead of the form parameters. I’ve checked with Firebug that the …

---

## [Hatbm relationship can edit, but not create](https://www.ruby-forum.com/t/hatbm-relationship-can-edit-but-not-create/178150)

<div class="topic-metadata">

**Author:** [@ian](https://www.ruby-forum.com/u/ian)\
**Replies:** 0\
**Last updated:** [October 29, 2009, 9:50pm UTC](https://www.ruby-forum.com/t/hatbm-relationship-can-edit-but-not-create/178150 "2009-10-29T21:50:03Z")

</div>

Hey all, Following this Railscast (#17 HABTM Checkboxes - RailsCasts checkboxes) I have a set up a form with checkboxes that work great for updating records in a hatbm relationship. But it only works if I’m doing an …

---

## [Inserting multiple records from one table (model) to another](https://www.ruby-forum.com/t/inserting-multiple-records-from-one-table-model-to-another/177999)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 4\
**Last updated:** [October 29, 2009, 8:15pm UTC](https://www.ruby-forum.com/t/inserting-multiple-records-from-one-table-model-to-another/177999 "2009-10-29T20:15:55Z")

</div>

Hello all, I’ve been getter better with Rails but I’m still just learning. Here’s what I have. I have one table (imports) and I read in a csv into this table. I must do some preliminary editing to each record, afterw…

---

## [Adding SEARCH functionality to a website](https://www.ruby-forum.com/t/adding-search-functionality-to-a-website/177968)

<div class="topic-metadata">

**Author:** [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Replies:** 22\
**Last updated:** [October 29, 2009, 7:22pm UTC](https://www.ruby-forum.com/t/adding-search-functionality-to-a-website/177968 "2009-10-29T19:22:33Z")

</div>

Hi there, I’ve tried to implement ferret into my web application which would be used to search the various models and return results based on the word entered. I cant get this to work, and wondered if anyone uses any…

---

## [Unknown column 'quotes.organisation\_id' in 'where clause': SELECT \* FROM \`quotes\` WHERE (\`quotes\`.or](https://www.ruby-forum.com/t/unknown-column-quotes-organisation-id-in-where-clause-select-from-quotes-where-quotes-or/178133)

<div class="topic-metadata">

**Author:** [@inertia](https://www.ruby-forum.com/u/inertia)\
**Replies:** 4\
**Last updated:** [October 29, 2009, 5:01pm UTC](https://www.ruby-forum.com/t/unknown-column-quotes-organisation-id-in-where-clause-select-from-quotes-where-quotes-or/178133 "2009-10-29T17:01:21Z")

</div>

Hi, I have a small app that needs to keep track of quotes, and organisations. An organisation can either be the unit who finally receives the goods (the end\_user) or and intermediary (customer) (and in some cases bot…

---

## [Ajax Pagination](https://www.ruby-forum.com/t/ajax-pagination/178121)

<div class="topic-metadata">

**Author:** [@Rails\_ROR](https://www.ruby-forum.com/u/Rails_ROR)\
**Replies:** 1\
**Last updated:** [October 29, 2009, 4:53pm UTC](https://www.ruby-forum.com/t/ajax-pagination/178121 "2009-10-29T16:53:04Z")

</div>

Hi Everybody, I want to implement pagination with ajax. I followed this url: http://wiki.github.com/mislav/will\_paginate/ajax- pagination I am getting the page results. But when i click on the next or 2,3… i am just…

---

## [Grab WMP video stream and convert it to FLV](https://www.ruby-forum.com/t/grab-wmp-video-stream-and-convert-it-to-flv/178135)

<div class="topic-metadata">

**Author:** [@golf](https://www.ruby-forum.com/u/golf)\
**Replies:** 0\
**Last updated:** [October 29, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/grab-wmp-video-stream-and-convert-it-to-flv/178135 "2009-10-29T16:40:23Z")

</div>

Hey everybody, I have a WMP video stream from one server, but the trouble is that only 1/4 of our users is able to play the stream correctly. What I am thinking about is, that I could grab that WMP stream and try to …

---

## [Getting table content via helper](https://www.ruby-forum.com/t/getting-table-content-via-helper/178111)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 16\
**Last updated:** [October 29, 2009, 4:10pm UTC](https://www.ruby-forum.com/t/getting-table-content-via-helper/178111 "2009-10-29T16:10:29Z")

</div>

I’ve made a simple cms. I have a table with page content. In the view I make a call for a helper that get’s the data: View: \<%= content(the\_id) %\> In the application helper: def content© @content = Pagecontent.find…

---

## [REST requests with jQuery](https://www.ruby-forum.com/t/rest-requests-with-jquery/178110)

<div class="topic-metadata">

**Author:** [@Rainer\_B](https://www.ruby-forum.com/u/Rainer_B)\
**Replies:** 2\
**Last updated:** [October 29, 2009, 4:01pm UTC](https://www.ruby-forum.com/t/rest-requests-with-jquery/178110 "2009-10-29T16:01:44Z")

</div>

Hi, I’m trying to do a simple REST request to my rails app using jQuery but can’t get the data body right. It looks like parts are working and parts aren’t. I want to update a model so I have to use PUT, which I emul…

---

## [Javascript in text field with autocomplete](https://www.ruby-forum.com/t/javascript-in-text-field-with-autocomplete/178127)

<div class="topic-metadata">

**Author:** [@RVince](https://www.ruby-forum.com/u/RVince)\
**Replies:** 0\
**Last updated:** [October 29, 2009, 3:31pm UTC](https://www.ruby-forum.com/t/javascript-in-text-field-with-autocomplete/178127 "2009-10-29T15:31:17Z")

</div>

If I am using the autocomplete plugin, and I have a text field specified in a form that incorporates autocomplete, such as: \<%= text\_field\_with\_auto\_complete :doctor, :organization, :autocomplete =\> “off” %\> how can…

---

## [Help: password ArgumentError!](https://www.ruby-forum.com/t/help-password-argumenterror/178124)

<div class="topic-metadata">

**Author:** [@luke](https://www.ruby-forum.com/u/luke)\
**Replies:** 3\
**Last updated:** [October 29, 2009, 2:43pm UTC](https://www.ruby-forum.com/t/help-password-argumenterror/178124 "2009-10-29T14:43:18Z")

</div>

When I make model, I get error like below: jizhe@jizhe-laptop:~/ruby4rails/r4rmusic1$ ruby script/generate model work /usr/local/lib/ruby/1.8/yaml.rb:133:in load': syntax error on line 18, col 2: password: jizheair’ …

---

## [A copy of Controller has been removed from the module tree b](https://www.ruby-forum.com/t/a-copy-of-controller-has-been-removed-from-the-module-tree-b/104045)

<div class="topic-metadata">

**Author:** [@Myron\_M](https://www.ruby-forum.com/u/Myron_M)\
**Replies:** 2\
**Last updated:** [October 29, 2009, 12:43pm UTC](https://www.ruby-forum.com/t/a-copy-of-controller-has-been-removed-from-the-module-tree-b/104045 "2009-10-29T12:43:52Z")

</div>

Something is screwed up with the way Rails is loading my controllers. I get the following error for one of my controllers: ArgumentError in My content pagesController#edit A copy of Goldberg::ContentPagesController ha…

---

## [L18n errors](https://www.ruby-forum.com/t/l18n-errors/178116)

<div class="topic-metadata">

**Author:** [@Jonas\_L](https://www.ruby-forum.com/u/Jonas_L)\
**Replies:** 0\
**Last updated:** [October 29, 2009, 12:29pm UTC](https://www.ruby-forum.com/t/l18n-errors/178116 "2009-10-29T12:29:14Z")

</div>

Hi everybody, I followed the instructions on Rails Internationalization (I18n) API — Ruby on Rails Guides exspesly point 2.2 and I couldn’t get it to work properly. After I decided to disable it, my whole application …

---

## [Serach with Xapian](https://www.ruby-forum.com/t/serach-with-xapian/178112)

<div class="topic-metadata">

**Author:** [@massi](https://www.ruby-forum.com/u/massi)\
**Replies:** 0\
**Last updated:** [October 29, 2009, 11:09am UTC](https://www.ruby-forum.com/t/serach-with-xapian/178112 "2009-10-29T11:09:36Z")

</div>

hey , am looking for xapian syntax to do a range search in my code i have class Table \< AR acts\_as\_xapian :texts =\> \[:title\], :values =\> \[\[ :left, 0, “left”, :number \],\[ :right, 1, “right”, :number \] \], :terms =\> …

---

## [Memcache problem](https://www.ruby-forum.com/t/memcache-problem/148807)

<div class="topic-metadata">

**Author:** [@sathisht](https://www.ruby-forum.com/u/sathisht)\
**Replies:** 1\
**Last updated:** [October 29, 2009, 9:53am UTC](https://www.ruby-forum.com/t/memcache-problem/148807 "2009-10-29T09:53:58Z")

</div>

Hi all, In my system i installed memcache server and client,also started server and changed in environment.rb file as mem\_cache store,in my application while logging it remains same screen.so,when observing in log fil…

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

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