# Rails

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

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

---

## [Weird problem](https://www.ruby-forum.com/t/weird-problem/109587)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 4:52am UTC](https://www.ruby-forum.com/t/weird-problem/109587 "2007-07-17T04:52:32Z")

</div>

Ok so I have an entry in the database that sets the discount of a product, and I have it as a decimal. Here is what I used when I created the table: t.column :discount, :decimal, :precision =\> 3, :scale =\> 2, :default…

---

## [Set custom respond\_to in action\_controllers](https://www.ruby-forum.com/t/set-custom-respond-to-in-action-controllers/109588)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 4:14am UTC](https://www.ruby-forum.com/t/set-custom-respond-to-in-action-controllers/109588 "2007-07-17T04:14:35Z")

</div>

how can I set custom respond to types… and custom render methods. like: respond\_to do |format| format.myformat { render :customRender =\> content } end thank you. -Aaron

---

## [Class caching yields the wrong data](https://www.ruby-forum.com/t/class-caching-yields-the-wrong-data/109585)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 3:40am UTC](https://www.ruby-forum.com/t/class-caching-yields-the-wrong-data/109585 "2007-07-17T03:40:42Z")

</div>

In production (and in development, with environment config set to “config.cache\_classes = true”), sometimes the wrong object is associated with the wrong object because of caching. I’d rather, however, not take a perf…

---

## [Paypal Subscriptions](https://www.ruby-forum.com/t/paypal-subscriptions/109395)

<div class="topic-metadata">

**Author:** [@dcgrigsby](https://www.ruby-forum.com/u/dcgrigsby)\
**Replies:** 2\
**Last updated:** [July 17, 2007, 3:35am UTC](https://www.ruby-forum.com/t/paypal-subscriptions/109395 "2007-07-17T03:35:40Z")

</div>

Hi, I’m currently using paypal with activemerchant and would like to implement a recurring billing model. I’m hoping there’s a way… is there?

---

## [Class coercion?](https://www.ruby-forum.com/t/class-coercion/109584)

<div class="topic-metadata">

**Author:** [@jfrankov](https://www.ruby-forum.com/u/jfrankov)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 2:59am UTC](https://www.ruby-forum.com/t/class-coercion/109584 "2007-07-17T02:59:38Z")

</div>

I’m not sure if this is a. possible or b. what I want to do, but I’m curious: is it possible to force a Ruby class to become a different class? I’m getting this error in my rails app: ActiveRecord::AssociationTypeMism…

---

## [Get 1000,00 dolars per day](https://www.ruby-forum.com/t/get-1000-00-dolars-per-day/109583)

<div class="topic-metadata">

**Author:** [@newbar](https://www.ruby-forum.com/u/newbar)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 2:56am UTC](https://www.ruby-forum.com/t/get-1000-00-dolars-per-day/109583 "2007-07-17T02:56:37Z")

</div>

get 1000,00 dolars per day Simply click on the business link http://www.cash-dreams.biz

---

## [Odd behavior from the respectable replace\_html and his lovel](https://www.ruby-forum.com/t/odd-behavior-from-the-respectable-replace-html-and-his-lovel/109582)

<div class="topic-metadata">

**Author:** [@andrei](https://www.ruby-forum.com/u/andrei)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 2:47am UTC](https://www.ruby-forum.com/t/odd-behavior-from-the-respectable-replace-html-and-his-lovel/109582 "2007-07-17T02:47:37Z")

</div>

Hello there, kind RoR folk. I have a wee bit of a pickle, so i’ll get straight to the point. In one of my views i have two matching dropdowns containing teams. Upon the changing of the selection, provided that the two…

---

## [Is there a wysiwyg editor in RoR?](https://www.ruby-forum.com/t/is-there-a-wysiwyg-editor-in-ror/109511)

<div class="topic-metadata">

**Author:** [@Sketchy](https://www.ruby-forum.com/u/Sketchy)\
**Replies:** 6\
**Last updated:** [July 17, 2007, 2:12am UTC](https://www.ruby-forum.com/t/is-there-a-wysiwyg-editor-in-ror/109511 "2007-07-17T02:12:36Z")

</div>

subject sums it up.

---

## [What tools are in your Test toolbox?](https://www.ruby-forum.com/t/what-tools-are-in-your-test-toolbox/109580)

<div class="topic-metadata">

**Author:** [@pedro](https://www.ruby-forum.com/u/pedro)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 1:38am UTC](https://www.ruby-forum.com/t/what-tools-are-in-your-test-toolbox/109580 "2007-07-17T01:38:34Z")

</div>

I’m curious about what tool are the people using for testing Im currently using Rspec (for my Google summer of Code) and JUnit+XMLUnit+CruiseControl for my employer, yes I still woking with Java, no one want to hire …

---

## [Validation isn't working - weird problem](https://www.ruby-forum.com/t/validation-isnt-working-weird-problem/109561)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 17, 2007, 12:35am UTC](https://www.ruby-forum.com/t/validation-isnt-working-weird-problem/109561 "2007-07-17T00:35:25Z")

</div>

I am really stuck, would appreciate some help from the community. I have a method in my controller like this: def save\_business if(params\[:id\] == nil) @business = Business.new(params\[:business\]) @business.user\_id =…

---

## [After\_save question](https://www.ruby-forum.com/t/after-save-question/109573)

<div class="topic-metadata">

**Author:** [@Harm\_de\_Laat](https://www.ruby-forum.com/u/Harm_de_Laat)\
**Replies:** 1\
**Last updated:** [July 17, 2007, 12:07am UTC](https://www.ruby-forum.com/t/after-save-question/109573 "2007-07-17T00:07:23Z")

</div>

Hi all, In my model class I need to update an attribute with the ID of the record right after the model object has been saved. I intended to use the after\_save callback for this purpose. I don’t know how to update t…

---

## [Ajax works in FF but not safari!](https://www.ruby-forum.com/t/ajax-works-in-ff-but-not-safari/109572)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 0\
**Last updated:** [July 16, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/ajax-works-in-ff-but-not-safari/109572 "2007-07-16T23:43:22Z")

</div>

The following code works perfectly in FF, but does not work in safari. I’m on Edge Rails with the latest javascripts. Any clue what’s going on? CONTROLLER: def create @program = @school.programs.new(params\[:program…

---

## [Radiant features and support](https://www.ruby-forum.com/t/radiant-features-and-support/109567)

<div class="topic-metadata">

**Author:** [@bjhess](https://www.ruby-forum.com/u/bjhess)\
**Replies:** 0\
**Last updated:** [July 16, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/radiant-features-and-support/109567 "2007-07-16T23:10:17Z")

</div>

Hi, I have some familiarity with building a Radiant back end for a couple clients. With a new client, I’m getting some appropriate questions. One of the questions: Is there a preview button for a page one is editing…

---

## [How can you get a variable from the view into the model](https://www.ruby-forum.com/t/how-can-you-get-a-variable-from-the-view-into-the-model/109566)

<div class="topic-metadata">

**Author:** [@fernando](https://www.ruby-forum.com/u/fernando)\
**Replies:** 0\
**Last updated:** [July 16, 2007, 10:34pm UTC](https://www.ruby-forum.com/t/how-can-you-get-a-variable-from-the-view-into-the-model/109566 "2007-07-16T22:34:12Z")

</div>

Hi, I am using the attachment\_fu plugin to generate thumbnails and save images into the file system. I want to create a folder in public/ images and then save all the images including thumbanils there. So far I can c…

---

## [Redbox - implementation](https://www.ruby-forum.com/t/redbox-implementation/108903)

<div class="topic-metadata">

**Author:** [@jacobnelson79](https://www.ruby-forum.com/u/jacobnelson79)\
**Replies:** 1\
**Last updated:** [July 16, 2007, 10:34pm UTC](https://www.ruby-forum.com/t/redbox-implementation/108903 "2007-07-16T22:34:12Z")

</div>

Step 1: 1.1: download all the files from the link “http://www.craigambrose.com/projects/redbox” and save it in the folder “redbox” 1.2: create a folder named "redbox" in "vendor/plugins" and save the file “init.rb”…

---

## [Deleting ALL info for a user in many tables?](https://www.ruby-forum.com/t/deleting-all-info-for-a-user-in-many-tables/109556)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 3\
**Last updated:** [July 16, 2007, 10:28pm UTC](https://www.ruby-forum.com/t/deleting-all-info-for-a-user-in-many-tables/109556 "2007-07-16T22:28:47Z")

</div>

I have this model called “User.” In the user model I have many relations hips such as: has\_many :creditcards has\_many :airlinememberships and in my airlinemembership model I have belongs\_to :user Now, what I would l…

---

## [Get Client IP](https://www.ruby-forum.com/t/get-client-ip/109546)

<div class="topic-metadata">

**Author:** [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Replies:** 1\
**Last updated:** [July 16, 2007, 10:03pm UTC](https://www.ruby-forum.com/t/get-client-ip/109546 "2007-07-16T22:03:05Z")

</div>

Hello, I have a form that creates a new client. My form works fine, but I would like to have a hidden field with the client’s IP as its value. How can I get a client IP with rails? Thanks

---

## [Are you in Seattle and a Rails dev looking for work?](https://www.ruby-forum.com/t/are-you-in-seattle-and-a-rails-dev-looking-for-work/109563)

<div class="topic-metadata">

**Author:** [@wheresdave](https://www.ruby-forum.com/u/wheresdave)\
**Replies:** 0\
**Last updated:** [July 16, 2007, 9:53pm UTC](https://www.ruby-forum.com/t/are-you-in-seattle-and-a-rails-dev-looking-for-work/109563 "2007-07-16T21:53:04Z")

</div>

I am just trying to get a feel for the number of Rails Developers who are currently in the market for work. Doing some research for my boss. Look forward to the replies. Best, Dave

---

## [Nil? I don't know no nil... or maybe I do know nil](https://www.ruby-forum.com/t/nil-i-dont-know-no-nil-or-maybe-i-do-know-nil/109552)

<div class="topic-metadata">

**Author:** [@Kedron](https://www.ruby-forum.com/u/Kedron)\
**Replies:** 2\
**Last updated:** [July 16, 2007, 9:41pm UTC](https://www.ruby-forum.com/t/nil-i-dont-know-no-nil-or-maybe-i-do-know-nil/109552 "2007-07-16T21:41:02Z")

</div>

I was on a roll until I started customizing the look of what Rails created for me… I broke something. ########### NoMethodError ########### You have a nil object when you didn’t expect it! You might have expected an…

---

## [Restful\_authentication log in from controller](https://www.ruby-forum.com/t/restful-authentication-log-in-from-controller/109555)

<div class="topic-metadata">

**Author:** [@PatRoy](https://www.ruby-forum.com/u/PatRoy)\
**Replies:** 1\
**Last updated:** [July 16, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/restful-authentication-log-in-from-controller/109555 "2007-07-16T21:15:59Z")

</div>

Here’s my problem. I’m using restful\_authentication and recently added subdomain logins e.g. (myaccount.domain.com) I have a page to create an account and an admin account in the same page. Both the account and admin …

---

## [100% polymorphism problem, hmm not so sure](https://www.ruby-forum.com/t/100-polymorphism-problem-hmm-not-so-sure/109550)

<div class="topic-metadata">

**Author:** [@michau](https://www.ruby-forum.com/u/michau)\
**Replies:** 0\
**Last updated:** [July 16, 2007, 7:48pm UTC](https://www.ruby-forum.com/t/100-polymorphism-problem-hmm-not-so-sure/109550 "2007-07-16T19:48:48Z")

</div>

I have a problem to break down and implement. At first look it seems, as if it should be done in polymorphic way. I imagine it as having this “abstract” class model Thing and then many many many different concrete\_thi…

---

## [Onmousover Element](https://www.ruby-forum.com/t/onmousover-element/109551)

<div class="topic-metadata">

**Author:** [@eblatt](https://www.ruby-forum.com/u/eblatt)\
**Replies:** 0\
**Last updated:** [July 16, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/onmousover-element/109551 "2007-07-16T19:41:46Z")

</div>

Hi, I’m a little baffled. I’m trying to swap the CSS class when a user mouses over/out of a link. The idea seems simple enough, but I’m getting what seems to be a incorrect error message from Fireboug. Here’s the e…

---

## [Mongrel working but not mongrel cluster!](https://www.ruby-forum.com/t/mongrel-working-but-not-mongrel-cluster/109496)

<div class="topic-metadata">

**Author:** [@addame](https://www.ruby-forum.com/u/addame)\
**Replies:** 1\
**Last updated:** [July 16, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/mongrel-working-but-not-mongrel-cluster/109496 "2007-07-16T18:44:14Z")

</div>

Hi guys, I have installed mongrel and mongrel cluster in a new linux box … at the end of the day I was able to lunch mongrel (mongrel\_rails start -e production) and all is working fine with. However, when I tried to …

---

## [Setting up proper relationships](https://www.ruby-forum.com/t/setting-up-proper-relationships/109537)

<div class="topic-metadata">

**Author:** [@pabloz](https://www.ruby-forum.com/u/pabloz)\
**Replies:** 3\
**Last updated:** [July 16, 2007, 6:38pm UTC](https://www.ruby-forum.com/t/setting-up-proper-relationships/109537 "2007-07-16T18:38:46Z")

</div>

Hi I am trying to make a small survey app and started to get a little confused. So far i have survey.rb has\_many :answers answer.rb belongs\_to :survey So Survey will have many answers, and answer will belong to on…

---

## [Passing a calculated value in a hidden\_field](https://www.ruby-forum.com/t/passing-a-calculated-value-in-a-hidden-field/109544)

<div class="topic-metadata">

**Author:** [@ebrad](https://www.ruby-forum.com/u/ebrad)\
**Replies:** 0\
**Last updated:** [July 16, 2007, 6:28pm UTC](https://www.ruby-forum.com/t/passing-a-calculated-value-in-a-hidden-field/109544 "2007-07-16T18:28:40Z")

</div>

I have a calculated number that I wish to use to send as a value in a hidden\_field in a form. This started out as a question, but I figured it out so I’ll post it anyway as a FYI for Ruby N.s like me or if anyone can …

---

## [Rails public root](https://www.ruby-forum.com/t/rails-public-root/109543)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 1\
**Last updated:** [July 16, 2007, 6:27pm UTC](https://www.ruby-forum.com/t/rails-public-root/109543 "2007-07-16T18:27:40Z")

</div>

hi, i’m planning to deploy with a cluster of mongrels behind apache and i have everything working ok but i’m wondering how to redirect users from the root path (i.e. mydomain.com/ ) to what i want to be my default co…

---

## [Probems with partials and instance variable](https://www.ruby-forum.com/t/probems-with-partials-and-instance-variable/109538)

<div class="topic-metadata">

**Author:** [@jochen\_kaechelin](https://www.ruby-forum.com/u/jochen_kaechelin)\
**Replies:** 2\
**Last updated:** [July 16, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/probems-with-partials-and-instance-variable/109538 "2007-07-16T18:06:39Z")

</div>

view: \<%= drop\_receiving\_element(‘image\_basket’, :accept =\> “image”, :complete =\> “$(‘spinner’).hide()”, :before =\> “$(‘spinner’).show()”, :update =\> “image\_basket” , :url =\> {:action =\> “basket”}) %\> controller: …

---

## [Pdf reports generation](https://www.ruby-forum.com/t/pdf-reports-generation/109524)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [July 16, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/pdf-reports-generation/109524 "2007-07-16T16:26:28Z")

</div>

Hello, I tried a lot for looking at various methods to generate PDF reports in ROR. But, i didn’t understand anything. Can,anyone please tell me which is the best method to do this. Thanks, regards, Avinash.

---

## [A non stop entertainment (www.aveplanet.com)](https://www.ruby-forum.com/t/a-non-stop-entertainment-www-aveplanet-com/109535)

<div class="topic-metadata">

**Author:** [@Abdul\_Q](https://www.ruby-forum.com/u/Abdul_Q)\
**Replies:** 1\
**Last updated:** [July 16, 2007, 3:49pm UTC](https://www.ruby-forum.com/t/a-non-stop-entertainment-www-aveplanet-com/109535 "2007-07-16T15:49:23Z")

</div>

Hello every one here is a new interesting and fast going entertaiment site, http://www.aveplanet.com/ You can download the thousand of wall Papers at http://www.aveplanet.com/wallpapers.php send eCard to your belove…

---

## [ROR vs Java vs AJAX for a web application?](https://www.ruby-forum.com/t/ror-vs-java-vs-ajax-for-a-web-application/109497)

<div class="topic-metadata">

**Author:** [@reg](https://www.ruby-forum.com/u/reg)\
**Replies:** 5\
**Last updated:** [July 16, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/ror-vs-java-vs-ajax-for-a-web-application/109497 "2007-07-16T15:11:19Z")

</div>

I’m considering developing a consumer focused web application that will use lots of graphs. These graphs need to be manipulated using controls such a sliders, increase/decrease buttons, etc and the graphs will need t…

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

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