# Rails

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

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

---

## [AJAX call and data return through JSON in ROR](https://www.ruby-forum.com/t/ajax-call-and-data-return-through-json-in-ror/117998)

<div class="topic-metadata">

**Author:** [@Rails\_junkie](https://www.ruby-forum.com/u/Rails_junkie)\
**Replies:** 0\
**Last updated:** [October 23, 2007, 10:33am UTC](https://www.ruby-forum.com/t/ajax-call-and-data-return-through-json-in-ror/117998 "2007-10-23T10:33:26Z")

</div>

Hello all, This could be a tootally boonie question. i am trying to do this very simple app. I have a simple form where user enters data,once entered, i add that data in a div ‘data’ . which works fine but i want to…

---

## [Working with 2 tables in a Controller](https://www.ruby-forum.com/t/working-with-2-tables-in-a-controller/117918)

<div class="topic-metadata">

**Author:** [@CCH](https://www.ruby-forum.com/u/CCH)\
**Replies:** 2\
**Last updated:** [October 23, 2007, 10:28am UTC](https://www.ruby-forum.com/t/working-with-2-tables-in-a-controller/117918 "2007-10-23T10:28:09Z")

</div>

Hi a) I have 2 tables, namely workplans and timesheets. b) What I am trying to do is to add a custom link to AS List … OK c) Then, when I click this link eg ‘transfer2timesheet’, a new record will then be created in…

---

## [Sync :through association](https://www.ruby-forum.com/t/sync-through-association/117991)

<div class="topic-metadata">

**Author:** [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Replies:** 0\
**Last updated:** [October 23, 2007, 1:54am UTC](https://www.ruby-forum.com/t/sync-through-association/117991 "2007-10-23T01:54:56Z")

</div>

I have a User class that is associated with Contact through UserContact. class User has\_many :user\_contacts has\_many :contacts, :through =\> :user\_contacts, :source =\> :contact, :order =\> ‘contacts.last\_name ASC’ …

---

## [Removing http headers](https://www.ruby-forum.com/t/removing-http-headers/117987)

<div class="topic-metadata">

**Author:** [@gepetto](https://www.ruby-forum.com/u/gepetto)\
**Replies:** 0\
**Last updated:** [October 23, 2007, 12:58am UTC](https://www.ruby-forum.com/t/removing-http-headers/117987 "2007-10-23T00:58:10Z")

</div>

Hi All, I hope you can help me, I need to remove the http headers an action sends as response, and haven’t been able to find how. A normal http response would have the following headers: Cache-Control no-cache Conn…

---

## [Better in-place-editing with validations?](https://www.ruby-forum.com/t/better-in-place-editing-with-validations/117986)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 0\
**Last updated:** [October 23, 2007, 12:47am UTC](https://www.ruby-forum.com/t/better-in-place-editing-with-validations/117986 "2007-10-23T00:47:03Z")

</div>

Hi all I’m looking for a way to improve the existing in place edit field. I found the following topic: http://www.ruby-forum.com/topic/79189 But this is not very satisfying. What I’d like to have is an in-place-edit…

---

## [Keeping track of changes to Rails](https://www.ruby-forum.com/t/keeping-track-of-changes-to-rails/117731)

<div class="topic-metadata">

**Author:** [@bruz](https://www.ruby-forum.com/u/bruz)\
**Replies:** 4\
**Last updated:** [October 23, 2007, 12:17am UTC](https://www.ruby-forum.com/t/keeping-track-of-changes-to-rails/117731 "2007-10-23T00:17:18Z")

</div>

Hi all, I know that it’s supposed to be good practice as a Rails developer to keep track of changes in Edge Rails in case there are bug fixes or new pieces functionality that can help you out. I’m wondering how folks …

---

## [Newbie block question](https://www.ruby-forum.com/t/newbie-block-question/117984)

<div class="topic-metadata">

**Author:** [@zhasper](https://www.ruby-forum.com/u/zhasper)\
**Replies:** 0\
**Last updated:** [October 22, 2007, 11:44pm UTC](https://www.ruby-forum.com/t/newbie-block-question/117984 "2007-10-22T23:44:44Z")

</div>

I’m new to Ruby on Rails and I have what I thought was a simple problem, but I can’t get it to work. I have a form which should save multiple rows into the mySQL table and I am trying to use a block to loop through th…

---

## [MySql Master Master Setup w/ Rails Migration Schema](https://www.ruby-forum.com/t/mysql-master-master-setup-w-rails-migration-schema/117983)

<div class="topic-metadata">

**Author:** [@kyle\_n](https://www.ruby-forum.com/u/kyle_n)\
**Replies:** 0\
**Last updated:** [October 22, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/mysql-master-master-setup-w-rails-migration-schema/117983 "2007-10-22T23:24:05Z")

</div>

Problem: When you alter tables in the free version of MySql (not Enterprise) running on a master / slave or master / master replication, the replication will stop in it’s tracks on any “ALTER TABLE” commands to one of…

---

## [Need some basic help with on-the-run model extension](https://www.ruby-forum.com/t/need-some-basic-help-with-on-the-run-model-extension/117940)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 2\
**Last updated:** [October 22, 2007, 10:30pm UTC](https://www.ruby-forum.com/t/need-some-basic-help-with-on-the-run-model-extension/117940 "2007-10-22T22:30:10Z")

</div>

Hi all I want to create a method that - when called in a model definition - adds some more methods to this model. def MyModel \< ActiveRecord::Base add\_some\_methods # This should add some methods end So I began with…

---

## [Self-referential habtm: why are my keys null?](https://www.ruby-forum.com/t/self-referential-habtm-why-are-my-keys-null/117961)

<div class="topic-metadata">

**Author:** [@Zeekar](https://www.ruby-forum.com/u/Zeekar)\
**Replies:** 1\
**Last updated:** [October 22, 2007, 9:41pm UTC](https://www.ruby-forum.com/t/self-referential-habtm-why-are-my-keys-null/117961 "2007-10-22T21:41:01Z")

</div>

I’m trying to set up a directional self-referential HABTM to represent an arbitrary semi-hierarchical structure; it works for any data prepopulated into the db, but when I try to create a new relationship, I just get …

---

## [Custom to\_xml](https://www.ruby-forum.com/t/custom-to-xml/117963)

<div class="topic-metadata">

**Author:** [@nfessel](https://www.ruby-forum.com/u/nfessel)\
**Replies:** 2\
**Last updated:** [October 22, 2007, 9:14pm UTC](https://www.ruby-forum.com/t/custom-to-xml/117963 "2007-10-22T21:14:41Z")

</div>

I have two models: ledger and label. A ledger can contain many labels. Here is the xml returned from http://localhost/ledgers/78.xml: 11 30.0 2007-10-22 2007-10-22 Deposit 78 Question: How can I ret…

---

## [Irb and script/console problem](https://www.ruby-forum.com/t/irb-and-script-console-problem/115518)

<div class="topic-metadata">

**Author:** [@bjhess](https://www.ruby-forum.com/u/bjhess)\
**Replies:** 4\
**Last updated:** [October 22, 2007, 8:43pm UTC](https://www.ruby-forum.com/t/irb-and-script-console-problem/115518 "2007-10-22T20:43:37Z")

</div>

I’ve had a problem with irb and script/console since about mid-summer and it’s absolutely killing me. In either environment, I’m unable to use the spacebar. It simply doesn’t register. I’ve tried using Terminal.app …

---

## [Action Mailer - Model - Overriding Default View](https://www.ruby-forum.com/t/action-mailer-model-overriding-default-view/117958)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 0\
**Last updated:** [October 22, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/action-mailer-model-overriding-default-view/117958 "2007-10-22T20:05:31Z")

</div>

In Action Mailer the model has a view associated with it that gets stuffed with the content of the e-mail (both dynamic and static). Apparently the default location for this view is in a sub-directory of the views dir…

---

## [Back porting rails 2 json serialization](https://www.ruby-forum.com/t/back-porting-rails-2-json-serialization/117853)

<div class="topic-metadata">

**Author:** [@willbailey](https://www.ruby-forum.com/u/willbailey)\
**Replies:** 2\
**Last updated:** [October 22, 2007, 7:26pm UTC](https://www.ruby-forum.com/t/back-porting-rails-2-json-serialization/117853 "2007-10-22T19:26:14Z")

</div>

I’m working on a project with a large json api component. We are not ready to upgrade to rails 2 at this point; however, I was wondering if anybody had thought about backporting the rails 2 json serialization back to…

---

## [Problem with nginx and mongrel](https://www.ruby-forum.com/t/problem-with-nginx-and-mongrel/117952)

<div class="topic-metadata">

**Author:** [@rdavila](https://www.ruby-forum.com/u/rdavila)\
**Replies:** 0\
**Last updated:** [October 22, 2007, 7:25pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-and-mongrel/117952 "2007-10-22T19:25:39Z")

</div>

Hi Friends, I have a problem with nginx and mongrel, gives the following error: 2007/10/22 13:00:09 \[error\] 25122#0: \*3910 upstream timed out (110: Connection timed out) while reading response header from upstream, c…

---

## [Reflecting on an Association Extension](https://www.ruby-forum.com/t/reflecting-on-an-association-extension/117938)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [October 22, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/reflecting-on-an-association-extension/117938 "2007-10-22T19:24:28Z")

</div>

Hi all. How can I reflect on a method which had been extended into an association. If i try model.association.method(:method\_name) I get an undefined error yet I can invoke it via model.association.method\_name. I’ve …

---

## [Help uninstalling rails on OSX](https://www.ruby-forum.com/t/help-uninstalling-rails-on-osx/117880)

<div class="topic-metadata">

**Author:** [@Darthen](https://www.ruby-forum.com/u/Darthen)\
**Replies:** 6\
**Last updated:** [October 22, 2007, 7:18pm UTC](https://www.ruby-forum.com/t/help-uninstalling-rails-on-osx/117880 "2007-10-22T19:18:01Z")

</div>

I am on an Intel Mac and I have rails 1.2.5 installed with the dependencies. In a video-training that I’m following right now I tired to update the gems and the generate rdoc via the terminal. It didn’t work. How can…

---

## [SQL Server migration result differs depending on client](https://www.ruby-forum.com/t/sql-server-migration-result-differs-depending-on-client/117950)

<div class="topic-metadata">

**Author:** [@donv](https://www.ruby-forum.com/u/donv)\
**Replies:** 0\
**Last updated:** [October 22, 2007, 6:49pm UTC](https://www.ruby-forum.com/t/sql-server-migration-result-differs-depending-on-client/117950 "2007-10-22T18:49:20Z")

</div>

Hi all! I hope somebody can help me. I have very little hair left, and it is decreasing more rapidly the longer I have this problem :slight\_smile: I am connecting to a MS SQL Server 9.0.2047 from Fedora 7 linux, usin…

---

## [Drb Setup](https://www.ruby-forum.com/t/drb-setup/117948)

<div class="topic-metadata">

**Author:** [@yottameter](https://www.ruby-forum.com/u/yottameter)\
**Replies:** 0\
**Last updated:** [October 22, 2007, 6:40pm UTC](https://www.ruby-forum.com/t/drb-setup/117948 "2007-10-22T18:40:30Z")

</div>

Google returns ‘drugstore’ for DrbStore, is there any examples for setting up a drb server, or starting your own session model? I’d like to change the localhost address, but it’s buried inside the drb class declaratio…

---

## [Double encoding of form action with form\_remote\_tag .. What](https://www.ruby-forum.com/t/double-encoding-of-form-action-with-form-remote-tag-what/112565)

<div class="topic-metadata">

**Author:** [@luke](https://www.ruby-forum.com/u/luke)\
**Replies:** 2\
**Last updated:** [October 22, 2007, 6:08pm UTC](https://www.ruby-forum.com/t/double-encoding-of-form-action-with-form-remote-tag-what/112565 "2007-10-22T18:08:43Z")

</div>

Hi, I’m using a form\_remote\_tag(), except the parameters in the action attribute are receiving double HTML encoding. Here’s a version of what I’ve written: \<% form\_remote\_tag :update =\> “change”, :url =\> { :action =\> …

---

## [How to run a rake task from plugin's install.rb?](https://www.ruby-forum.com/t/how-to-run-a-rake-task-from-plugins-install-rb/117885)

<div class="topic-metadata">

**Author:** [@Christopher\_JSBott](https://www.ruby-forum.com/u/Christopher_JSBott)\
**Replies:** 2\
**Last updated:** [October 22, 2007, 5:51pm UTC](https://www.ruby-forum.com/t/how-to-run-a-rake-task-from-plugins-install-rb/117885 "2007-10-22T17:51:53Z")

</div>

Hello, I wrote a plugin that adds some rake tasks. Upon installation of my plugin, I would like one of these rake tasks to be run. How do I do that in install.rb? Thank you.

---

## [JavaScript Testing?](https://www.ruby-forum.com/t/javascript-testing/117939)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 2\
**Last updated:** [October 22, 2007, 5:44pm UTC](https://www.ruby-forum.com/t/javascript-testing/117939 "2007-10-22T17:44:52Z")

</div>

My Rails application has almost as much (and maybe more) JavaScript as it does Ruby code, and I’m wondering what the best option is for testing it. Has any consensus developed regarding the best way of testing JavaSc…

---

## [How to hook into model attribute changes?](https://www.ruby-forum.com/t/how-to-hook-into-model-attribute-changes/117922)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 5\
**Last updated:** [October 22, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/how-to-hook-into-model-attribute-changes/117922 "2007-10-22T17:43:40Z")

</div>

Hi, What’s the best way to hook into any changes made to the value of a single model attribute? I need to know when the encrypted\_password attribute on my User model changes i.e. when the user has changed their passw…

---

## [Detecting what action I'm on?](https://www.ruby-forum.com/t/detecting-what-action-im-on/117935)

<div class="topic-metadata">

**Author:** [@dmorin](https://www.ruby-forum.com/u/dmorin)\
**Replies:** 2\
**Last updated:** [October 22, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/detecting-what-action-im-on/117935 "2007-10-22T16:53:38Z")

</div>

Surely there has to be an easy answer to this question, but it’s eluding me. While rendering my rhtml, I’d like it to know what action it is currently rendering. This is for a context sensitive partial that will dis…

---

## [Remve/Update items in cart](https://www.ruby-forum.com/t/remve-update-items-in-cart/225972)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 12\
**Last updated:** [October 22, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/remve-update-items-in-cart/225972 "2007-10-22T16:46:15Z")

</div>

I purchase che Agile Web Develoment with rails book so that i could start learning RoR. I’ve worked through the depot applicationand it works fine. I’ve even went as far ao to add more features. The Problem is I can,t…

---

## [Change mouse pointer](https://www.ruby-forum.com/t/change-mouse-pointer/117928)

<div class="topic-metadata">

**Author:** [@crazybass](https://www.ruby-forum.com/u/crazybass)\
**Replies:** 1\
**Last updated:** [October 22, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/change-mouse-pointer/117928 "2007-10-22T16:41:34Z")

</div>

I want to change the normal mouse ‘arrow cursor’ to a ‘busy cursor’ and back again. Anyone can help me to do that using rails? Thanks, regards

---

## [Integrating paypal with rails (a tutorial)](https://www.ruby-forum.com/t/integrating-paypal-with-rails-a-tutorial/117934)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 22, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/integrating-paypal-with-rails-a-tutorial/117934 "2007-10-22T16:24:35Z")

</div>

Hi all We posted a small tutorial on using Paypal, ActiveMerchant and Rails in case you are not from the U.S :frowning: (that means no authorized.net) We only found scattered information here and there when trying to …

---

## [Best way to execute multiple table join?](https://www.ruby-forum.com/t/best-way-to-execute-multiple-table-join/117872)

<div class="topic-metadata">

**Author:** [@John\_Adams](https://www.ruby-forum.com/u/John_Adams)\
**Replies:** 10\
**Last updated:** [October 22, 2007, 2:31pm UTC](https://www.ruby-forum.com/t/best-way-to-execute-multiple-table-join/117872 "2007-10-22T14:31:58Z")

</div>

Say i have multiple tables (models) and I need to select an item in one table, and all of the data in the other models to get a compete row. What’s the best way to join them so that I get the data I need in one query? …

---

## [Executing jar file](https://www.ruby-forum.com/t/executing-jar-file/117904)

<div class="topic-metadata">

**Author:** [@crazybass](https://www.ruby-forum.com/u/crazybass)\
**Replies:** 1\
**Last updated:** [October 22, 2007, 2:23pm UTC](https://www.ruby-forum.com/t/executing-jar-file/117904 "2007-10-22T14:23:35Z")

</div>

Hello With my controller i am executing a JAR file like this: begin pipe = IO.popen(“java -jar D:/Projets/TstSimple/lib/tstlib.jar”) rescue Exception =\> e msg = e.message end I would like to not have to specified …

---

## [\[ANN\] Ruby In Steel 1.1.5 - enhanced Rails code completion/d](https://www.ruby-forum.com/t/ann-ruby-in-steel-1-1-5-enhanced-rails-code-completion-d/117910)

<div class="topic-metadata">

**Author:** [@huw](https://www.ruby-forum.com/u/huw)\
**Replies:** 1\
**Last updated:** [October 22, 2007, 12:49pm UTC](https://www.ruby-forum.com/t/ann-ruby-in-steel-1-1-5-enhanced-rails-code-completion-d/117910 "2007-10-22T12:49:20Z")

</div>

Ruby In Steel 1.1.5 SapphireSteel Software has today released Ruby In Steel Developer 1.1.5. The biggest single upgrade to the software since the release of version 1.0 in January 2007, the new edition has hugely impr…

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

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