# Rails

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

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

---

## [Dynamic Form Clicking](https://www.ruby-forum.com/t/dynamic-form-clicking/134756)

<div class="topic-metadata">

**Author:** [@edberner](https://www.ruby-forum.com/u/edberner)\
**Replies:** 6\
**Last updated:** [April 15, 2008, 8:47am UTC](https://www.ruby-forum.com/t/dynamic-form-clicking/134756 "2008-04-15T08:47:18Z")

</div>

Is it possible to change the value of what is being submitted to a form based on the number of times it has been clicked, maybe using AJAX? Let’s say I have a form of 3 users. Each user only has two actions: hit or m…

---

## [Link\_to\_remote still looks for view.html.erb?](https://www.ruby-forum.com/t/link-to-remote-still-looks-for-view-html-erb/134665)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 2\
**Last updated:** [April 15, 2008, 7:40am UTC](https://www.ruby-forum.com/t/link-to-remote-still-looks-for-view-html-erb/134665 "2008-04-15T07:40:32Z")

</div>

I know I’m missing something. Invariably, whenever I try to add some kind of RJS action to a page it never “just works”. I’m working on a page that will be the user’s primary interface with the site. If I can, I’ll ma…

---

## [Wrong number of arguments (0 for 1) when calling 0 argument web service call](https://www.ruby-forum.com/t/wrong-number-of-arguments-0-for-1-when-calling-0-argument-web-service-call/226002)

<div class="topic-metadata">

**Author:** [@E-Mac](https://www.ruby-forum.com/u/E-Mac)\
**Replies:** 1\
**Last updated:** [April 15, 2008, 5:42am UTC](https://www.ruby-forum.com/t/wrong-number-of-arguments-0-for-1-when-calling-0-argument-web-service-call/226002 "2008-04-15T05:42:21Z")

</div>

I created a Ruby client using the following command: wsdl2ruby.rb --wsdl https://fba-inbound.amazonaws.com/doc/2007-05-10/FBAInboundService.wsdl –type client --force Here is how I call the service: @service = SOAP::…

---

## [Simple Logging Customization](https://www.ruby-forum.com/t/simple-logging-customization/134769)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 15, 2008, 5:40am UTC](https://www.ruby-forum.com/t/simple-logging-customization/134769 "2008-04-15T05:40:35Z")

</div>

Is there a simple way to customize logging so that when you call the logger method it includes the severity in the log? I just want to make it easy to find with something like a GREP. So a call to this: logger.warn(…

---

## [Crash reports](https://www.ruby-forum.com/t/crash-reports/134786)

<div class="topic-metadata">

**Author:** [@dante](https://www.ruby-forum.com/u/dante)\
**Replies:** 1\
**Last updated:** [April 15, 2008, 5:36am UTC](https://www.ruby-forum.com/t/crash-reports/134786 "2008-04-15T05:36:30Z")

</div>

Hello! I’m thinking of adding a “report a bug” feature to my rails app so that users can report blow-ups and help diagnose. Instead of having users type what they where doing, I would like this information automatica…

---

## [Adding to an Array](https://www.ruby-forum.com/t/adding-to-an-array/134787)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 3\
**Last updated:** [April 15, 2008, 5:09am UTC](https://www.ruby-forum.com/t/adding-to-an-array/134787 "2008-04-15T05:09:01Z")

</div>

Hello, I’ve been looking at the array stuff in the Noobkit, but I can’t seem to find how to insert another entry in the array… Pretty much, I’m going to be iterating through stuff and catching some things and adding …

---

## [Agile Web Deveopment+rails 2.0.2](https://www.ruby-forum.com/t/agile-web-deveopment-rails-2-0-2/134688)

<div class="topic-metadata">

**Author:** [@drorchung](https://www.ruby-forum.com/u/drorchung)\
**Replies:** 2\
**Last updated:** [April 15, 2008, 4:41am UTC](https://www.ruby-forum.com/t/agile-web-deveopment-rails-2-0-2/134688 "2008-04-15T04:41:32Z")

</div>

I have asked several questions about drag and drop, ajax and shopping cart here in this forum. I bought a copy of Agile Web D. with Rails (2nd Edition) and thought my nightmare would have been over. From Chapter 5 to …

---

## [Callback's question](https://www.ruby-forum.com/t/callbacks-question/134657)

<div class="topic-metadata">

**Author:** [@Ragnarok](https://www.ruby-forum.com/u/Ragnarok)\
**Replies:** 5\
**Last updated:** [April 15, 2008, 2:40am UTC](https://www.ruby-forum.com/t/callbacks-question/134657 "2008-04-15T02:40:31Z")

</div>

I hava a reply model: class Reply \< ActiveRecord::Base belongs\_to :topic before\_create { |record| Topic.find(record.topic\_id).update\_attributes!(:last\_reply\_id =\> record.id)} end And a topic model: class Topic \< Act…

---

## [Newbie in ROR need help about its javascript](https://www.ruby-forum.com/t/newbie-in-ror-need-help-about-its-javascript/134473)

<div class="topic-metadata">

**Author:** [@adi](https://www.ruby-forum.com/u/adi)\
**Replies:** 8\
**Last updated:** [April 15, 2008, 2:10am UTC](https://www.ruby-forum.com/t/newbie-in-ror-need-help-about-its-javascript/134473 "2008-04-15T02:10:42Z")

</div>

hello, i’m a newbie using ROR. i have this function below inside my public/application.js and i’m wondering whether i can replace “San Fransisco” and “New York” in this command “setDirections(“San Francisco”, “New Yor…

---

## [OT: How to make this code prettier?](https://www.ruby-forum.com/t/ot-how-to-make-this-code-prettier/134754)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 5\
**Last updated:** [April 15, 2008, 12:57am UTC](https://www.ruby-forum.com/t/ot-how-to-make-this-code-prettier/134754 "2008-04-15T00:57:34Z")

</div>

This isn’t specific to Rails, but I would like to learn from the experience of others. How would you make this code prettier… Docdesc = Struct.new(:document\_category\_id, :document\_number\_prefix, :primary\_part\_number…

---

## [Onclick submit\_button toggler?](https://www.ruby-forum.com/t/onclick-submit-button-toggler/134781)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 1\
**Last updated:** [April 15, 2008, 12:41am UTC](https://www.ruby-forum.com/t/onclick-submit-button-toggler/134781 "2008-04-15T00:41:18Z")

</div>

Hello, I want to have a submit\_button that, when clicked, not only submits the form but also displays a hidden div. Do I have to use Javascript for this? If so, what should my submit\_button tag look like? Thanks, J…

---

## [Storing arrays in db](https://www.ruby-forum.com/t/storing-arrays-in-db/196640)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 1\
**Last updated:** [April 14, 2008, 11:58pm UTC](https://www.ruby-forum.com/t/storing-arrays-in-db/196640 "2008-04-14T23:58:26Z")

</div>

Hi, My users can select items and define a quantity attribute for those. Those items can be selected with checkboxes. And the quantity is a field text. Collecting all in one form; the checkbox selections, and other d…

---

## [All rails scripts running slow -- require\_frameworks() probl](https://www.ruby-forum.com/t/all-rails-scripts-running-slow-require-frameworks-probl/134775)

<div class="topic-metadata">

**Author:** [@orange73](https://www.ruby-forum.com/u/orange73)\
**Replies:** 1\
**Last updated:** [April 14, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/all-rails-scripts-running-slow-require-frameworks-probl/134775 "2008-04-14T23:56:40Z")

</div>

I’m using InstantRails to build my rails app. Anytime i try to run a rails script (the two i usually run are ruby script/server webrick and ruby script/runner 'Mailer.check\_mail' (an ActionMailer to check a GMail acc…

---

## [I got an uninitialized constant error, help!](https://www.ruby-forum.com/t/i-got-an-uninitialized-constant-error-help/134755)

<div class="topic-metadata">

**Author:** [@icecode](https://www.ruby-forum.com/u/icecode)\
**Replies:** 1\
**Last updated:** [April 14, 2008, 11:51pm UTC](https://www.ruby-forum.com/t/i-got-an-uninitialized-constant-error-help/134755 "2008-04-14T23:51:59Z")

</div>

hey guys, i am new to rails, so please be nice to me if i ask stupid questions. I ran into this problem as I try to play with many to many association. I have three objects, Category has\_many :artist, :through =\> …

---

## [Use cattr\_accessors for Engines::Plugin defaults?](https://www.ruby-forum.com/t/use-cattr-accessors-for-engines-plugin-defaults/134765)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 0\
**Last updated:** [April 14, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/use-cattr-accessors-for-engines-plugin-defaults/134765 "2008-04-14T22:42:53Z")

</div>

In Engines::Plugin we have: module Engines class Plugin \< Rails::Plugin # … def default\_code\_paths %w(app/controllers app/helpers app/models components lib) end which is great because now one can overwrite this in…

---

## [Help solving a SystemStackError while testing](https://www.ruby-forum.com/t/help-solving-a-systemstackerror-while-testing/134763)

<div class="topic-metadata">

**Author:** [@apswartz](https://www.ruby-forum.com/u/apswartz)\
**Replies:** 0\
**Last updated:** [April 14, 2008, 10:29pm UTC](https://www.ruby-forum.com/t/help-solving-a-systemstackerror-while-testing/134763 "2008-04-14T22:29:44Z")

</div>

I have a model that uses both acts\_as\_taggable and betternestedset. When I call “destroy” in my model unit task, the stack level gets too deep since Rails puts it in a transaction. Stack is here: /Users/alan/Projects…

---

## [Multiple has\_many's](https://www.ruby-forum.com/t/multiple-has-manys/134720)

<div class="topic-metadata">

**Author:** [@rick\_531](https://www.ruby-forum.com/u/rick_531)\
**Replies:** 5\
**Last updated:** [April 14, 2008, 9:54pm UTC](https://www.ruby-forum.com/t/multiple-has-manys/134720 "2008-04-14T21:54:43Z")

</div>

Hello, I have the following database structure: accounts account\_jobs (account\_id, job\_id) jobs job\_submissions (job\_id, submission\_id) submissions My Account model looks like this: has\_many :account\_jobs has\_m…

---

## [Datetime\_select custom input fields](https://www.ruby-forum.com/t/datetime-select-custom-input-fields/134757)

<div class="topic-metadata">

**Author:** [@Phil\_Urban](https://www.ruby-forum.com/u/Phil_Urban)\
**Replies:** 0\
**Last updated:** [April 14, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/datetime-select-custom-input-fields/134757 "2008-04-14T21:27:34Z")

</div>

by default datetime\_select allows the user to input any date and time they want. Is there a way it can only allow a user to select an hour between 8AM and 6PM and only allow them to choose the top of the hour (:00) an…

---

## [Redirect console error to a log file](https://www.ruby-forum.com/t/redirect-console-error-to-a-log-file/134758)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 0\
**Last updated:** [April 14, 2008, 9:26pm UTC](https://www.ruby-forum.com/t/redirect-console-error-to-a-log-file/134758 "2008-04-14T21:26:58Z")

</div>

Hi, This should be simple but I can’t make it work. JRuby 1.1RC3 on Rails 2.0.2, Mongrel 1.1.4 (Java), WinXP. I start the development server from a command line. When I hit a page the console fills up with error me…

---

## [Reference other table](https://www.ruby-forum.com/t/reference-other-table/134714)

<div class="topic-metadata">

**Author:** [@lfeistel](https://www.ruby-forum.com/u/lfeistel)\
**Replies:** 3\
**Last updated:** [April 14, 2008, 9:02pm UTC](https://www.ruby-forum.com/t/reference-other-table/134714 "2008-04-14T21:02:01Z")

</div>

Hi Guys, Another (hopefully) simple problem, but I’m finding little help on any tutorials. I currently have 2 tables, one with the users of a system and another with the details of the program they are on, the progra…

---

## [Mongrel\_upload\_progress issues](https://www.ruby-forum.com/t/mongrel-upload-progress-issues/134753)

<div class="topic-metadata">

**Author:** [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Replies:** 0\
**Last updated:** [April 14, 2008, 8:28pm UTC](https://www.ruby-forum.com/t/mongrel-upload-progress-issues/134753 "2008-04-14T20:28:53Z")

</div>

Hi, I’ve been trying to use the mongrel\_upload\_progress gem to implement a file upload progress indicator. The progress bar doesn’t work properly: it starts at 0% and it jumps to 100%. I realized this is because the …

---

## [Rails Job - Smallish Project - Need Developer!](https://www.ruby-forum.com/t/rails-job-smallish-project-need-developer/134745)

<div class="topic-metadata">

**Author:** [@Kevin\_Lustgarten](https://www.ruby-forum.com/u/Kevin_Lustgarten)\
**Replies:** 0\
**Last updated:** [April 14, 2008, 6:49pm UTC](https://www.ruby-forum.com/t/rails-job-smallish-project-need-developer/134745 "2008-04-14T18:49:22Z")

</div>

Hi all – I have a website that was developed in Rails: www.JCFootballProspects.com It was working fine and now the front page is down. Not sure when that happened actually…within the last couple of weeks. All of the b…

---

## [RESTful habtm](https://www.ruby-forum.com/t/restful-habtm/134660)

<div class="topic-metadata">

**Author:** [@pie-r-squared](https://www.ruby-forum.com/u/pie-r-squared)\
**Replies:** 1\
**Last updated:** [April 14, 2008, 6:18pm UTC](https://www.ruby-forum.com/t/restful-habtm/134660 "2008-04-14T18:18:40Z")

</div>

(Note: using Rails 2.0.2) I have users and groups, with a habtm association, and I want to provide a RESTful interface to adding and removing those associations. This is independent from creating and deleting users o…

---

## [Using Ruby on Rails with existing database](https://www.ruby-forum.com/t/using-ruby-on-rails-with-existing-database/134280)

<div class="topic-metadata">

**Author:** [@Ashley](https://www.ruby-forum.com/u/Ashley)\
**Replies:** 6\
**Last updated:** [April 14, 2008, 6:03pm UTC](https://www.ruby-forum.com/t/using-ruby-on-rails-with-existing-database/134280 "2008-04-14T18:03:22Z")

</div>

Hi, I’m a complete newbie to this, I’m afraid. Apologies if this has been answered elsewhere, but I’ve had a look, and can’t find the answers I’m looking for, especially for using Rails 2.0. We have an existing databa…

---

## [Calendar\_date\_select](https://www.ruby-forum.com/t/calendar-date-select/129313)

<div class="topic-metadata">

**Author:** [@murphy](https://www.ruby-forum.com/u/murphy)\
**Replies:** 7\
**Last updated:** [April 14, 2008, 5:59pm UTC](https://www.ruby-forum.com/t/calendar-date-select/129313 "2008-04-14T17:59:09Z")

</div>

I can’t seem to commit the calendar\_date\_select plugin to my repository. It’s installed and working great on my app, but when I add and commit it I get the following svn error. ‘calendar\_date\_select’ is missing or not…

---

## [Creating an email array based off search results](https://www.ruby-forum.com/t/creating-an-email-array-based-off-search-results/134442)

<div class="topic-metadata">

**Author:** [@Etandrib](https://www.ruby-forum.com/u/Etandrib)\
**Replies:** 4\
**Last updated:** [April 14, 2008, 5:54pm UTC](https://www.ruby-forum.com/t/creating-an-email-array-based-off-search-results/134442 "2008-04-14T17:54:38Z")

</div>

I’m trying to perform a search a a list of people and then create an email based on the emails found in the result set. Any idea how to do this? I figure this is a model topic as I need the figure out the logic to gen…

---

## [Rails editor](https://www.ruby-forum.com/t/rails-editor/134676)

<div class="topic-metadata">

**Author:** [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Replies:** 9\
**Last updated:** [April 14, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/rails-editor/134676 "2008-04-14T17:31:26Z")

</div>

Hi guys, I was wondering if any of you guys know off any light-weight rails editor… I am using RadRails… and after i moved to Rails 2.0 RadRails is not giving me syntax highlighting for .html.erb files but all i ne…

---

## [Job in Las Vegas](https://www.ruby-forum.com/t/job-in-las-vegas/134535)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 7\
**Last updated:** [April 14, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/job-in-las-vegas/134535 "2008-04-14T17:19:28Z")

</div>

I am a web developer in Las Vegas looking to get another person to help me. The company I work for is Ventura Web Design I would like to get someone who knows rails enough to get me back into it. We currently only d…

---

## [Averaging](https://www.ruby-forum.com/t/averaging/134731)

<div class="topic-metadata">

**Author:** [@edberner](https://www.ruby-forum.com/u/edberner)\
**Replies:** 1\
**Last updated:** [April 14, 2008, 4:14pm UTC](https://www.ruby-forum.com/t/averaging/134731 "2008-04-14T16:14:23Z")

</div>

Why can I call this \<%= team.players.sum(:misses) %\> and this \<%= team.players.sum(:misses) %\> but this gives me 0 (some do not have 0 for misses) \<%= team.players.sum(:hit) / team.players.sum(:misses) unless team…

---

## [Problems with nil object](https://www.ruby-forum.com/t/problems-with-nil-object/134718)

<div class="topic-metadata">

**Author:** [@mckracken](https://www.ruby-forum.com/u/mckracken)\
**Replies:** 2\
**Last updated:** [April 14, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/problems-with-nil-object/134718 "2008-04-14T16:00:54Z")

</div>

Hi to all. I’ve a very big problem. I know this can seem very loing, but please, try to read it. I have a simply blog, with posts and their comments. I’ve two tables in my db, posts, with post id, text and comments\_co…

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

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