# Rails

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

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

---

## [Form\_for url.. how to send data to another controller](https://www.ruby-forum.com/t/form-for-url-how-to-send-data-to-another-controller/177055)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 4\
**Last updated:** [October 11, 2009, 11:09am UTC](https://www.ruby-forum.com/t/form-for-url-how-to-send-data-to-another-controller/177055 "2009-10-11T11:09:08Z")

</div>

@trainee is an instance of User class my form partial code : \<% form\_for :@trainee, :html =\> {:class =\> ‘generalform’} do |form| %\> \<%= render :partial =\> “form”, :object =\> form %\> \<%= form.submit “Register”, :class…

---

## [Can't create a new thread (errno 12)](https://www.ruby-forum.com/t/cant-create-a-new-thread-errno-12/177084)

<div class="topic-metadata">

**Author:** [@sathish](https://www.ruby-forum.com/u/sathish)\
**Replies:** 0\
**Last updated:** [October 11, 2009, 9:08am UTC](https://www.ruby-forum.com/t/cant-create-a-new-thread-errno-12/177084 "2009-10-11T09:08:49Z")

</div>

Hi All, I’m facing the error in mysql - “Can’t create a new thread (errno 12); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug” Also, It throws the error like, "090…

---

## [Client side validation - good, bad, or useless?](https://www.ruby-forum.com/t/client-side-validation-good-bad-or-useless/177020)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 6\
**Last updated:** [October 11, 2009, 1:31am UTC](https://www.ruby-forum.com/t/client-side-validation-good-bad-or-useless/177020 "2009-10-11T01:31:31Z")

</div>

How do you guys feel about client side validation? Do you think its necessary or a waste of time?

---

## [Rails Routes using complex parameter names](https://www.ruby-forum.com/t/rails-routes-using-complex-parameter-names/177040)

<div class="topic-metadata">

**Author:** [@wbr](https://www.ruby-forum.com/u/wbr)\
**Replies:** 4\
**Last updated:** [October 11, 2009, 12:12am UTC](https://www.ruby-forum.com/t/rails-routes-using-complex-parameter-names/177040 "2009-10-11T00:12:31Z")

</div>

I have a search form that generates ugly but functional urls.The controller takes nested parameters from the url like program \[program\_id\], or program\[leader\]\[leader\_id\]. So I’m trying to create a named route to make …

---

## [Loading & Dumping of data in AR with Marshal](https://www.ruby-forum.com/t/loading-dumping-of-data-in-ar-with-marshal/176985)

<div class="topic-metadata">

**Author:** [@0x001a4](https://www.ruby-forum.com/u/0x001a4)\
**Replies:** 1\
**Last updated:** [October 10, 2009, 11:52pm UTC](https://www.ruby-forum.com/t/loading-dumping-of-data-in-ar-with-marshal/176985 "2009-10-10T23:52:35Z")

</div>

Hey, I’m writing an application that stores models attributes in a single column called data, using Marshal. My ultimate goal is to allow any/ all records to be saved in one database table. I’m wondering if there’s a…

---

## [Best RoR developer freelance tools](https://www.ruby-forum.com/t/best-ror-developer-freelance-tools/176979)

<div class="topic-metadata">

**Author:** [@cnicolaou](https://www.ruby-forum.com/u/cnicolaou)\
**Replies:** 12\
**Last updated:** [October 10, 2009, 11:40pm UTC](https://www.ruby-forum.com/t/best-ror-developer-freelance-tools/176979 "2009-10-10T23:40:52Z")

</div>

Hi, Was wondering what are the tools that freelance developers are using to track time, project progress and collaboration? I’m sure there are plenty of Rails based online apps but which are the best and why? Cheers…

---

## [Difference scaffold model](https://www.ruby-forum.com/t/difference-scaffold-model/177061)

<div class="topic-metadata">

**Author:** [@bachmann](https://www.ruby-forum.com/u/bachmann)\
**Replies:** 2\
**Last updated:** [October 10, 2009, 10:20pm UTC](https://www.ruby-forum.com/t/difference-scaffold-model/177061 "2009-10-10T22:20:27Z")

</div>

Hi, i am relativly new to Ruby and Rails. My question is, why can’t i use respond\_to and session\[:…\] in ApplicationController created by a "ruby script/generate scaffold " and in ApplicationController created by "rub…

---

## [Maintaining non persisted data](https://www.ruby-forum.com/t/maintaining-non-persisted-data/177033)

<div class="topic-metadata">

**Author:** [@cristie](https://www.ruby-forum.com/u/cristie)\
**Replies:** 7\
**Last updated:** [October 10, 2009, 7:19pm UTC](https://www.ruby-forum.com/t/maintaining-non-persisted-data/177033 "2009-10-10T19:19:25Z")

</div>

Hi all, I have the following file below which is a controller inteneded to maintain non persisted data. It has two routes defined by ‘gather’ and ‘show’. Gather displays a form and show, obviously, shows the non pe…

---

## [Using auto\_complete on multiple text\_fields within a form](https://www.ruby-forum.com/t/using-auto-complete-on-multiple-text-fields-within-a-form/177044)

<div class="topic-metadata">

**Author:** [@Paul\_Singh](https://www.ruby-forum.com/u/Paul_Singh)\
**Replies:** 1\
**Last updated:** [October 10, 2009, 6:51pm UTC](https://www.ruby-forum.com/t/using-auto-complete-on-multiple-text-fields-within-a-form/177044 "2009-10-10T18:51:41Z")

</div>

I’ve got a model with a number of attributes – a bicycle with all of the various components on it. When the user enters the bike’s make and model (among other things), I want to make sure that we don’t duplicate a bra…

---

## [Autocomplete with extra data](https://www.ruby-forum.com/t/autocomplete-with-extra-data/176973)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 3\
**Last updated:** [October 10, 2009, 6:03pm UTC](https://www.ruby-forum.com/t/autocomplete-with-extra-data/176973 "2009-10-10T18:03:41Z")

</div>

I have the autocompleter using the :select =\> ‘NAME’ option. This is the partial: \<% @dt.each do |user| -%\> \<%=h user\[0\] %\> \<%= user\[0\] %\> \<%= user\[1\] %\> \<% end %\> I am getting all of the data when I select the…

---

## [Trying to learn if params can be modified](https://www.ruby-forum.com/t/trying-to-learn-if-params-can-be-modified/177041)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 3\
**Last updated:** [October 10, 2009, 5:18pm UTC](https://www.ruby-forum.com/t/trying-to-learn-if-params-can-be-modified/177041 "2009-10-10T17:18:02Z")

</div>

What I am trying to do is have the user enter a 2 digit birth year in the view, then have the controller do it’s magic and get a 4 digit date for the birthday. That part went fine, but now I’m having trouble replacing…

---

## [Problem with oracle\_enhanced adapter](https://www.ruby-forum.com/t/problem-with-oracle-enhanced-adapter/176928)

<div class="topic-metadata">

**Author:** [@rafaelrosafu](https://www.ruby-forum.com/u/rafaelrosafu)\
**Replies:** 2\
**Last updated:** [October 10, 2009, 4:09pm UTC](https://www.ruby-forum.com/t/problem-with-oracle-enhanced-adapter/176928 "2009-10-10T16:09:32Z")

</div>

Hi, when I configure my app to use the oracle\_enhanced adapter it throws the following exception: java.sql.SQLException: ORA-01882 : Timezone region not found How can I solve this? Thanks, Rafael R.

---

## [Editing "Tutorials"](https://www.ruby-forum.com/t/editing-tutorials/176097)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 21\
**Last updated:** [October 10, 2009, 4:09pm UTC](https://www.ruby-forum.com/t/editing-tutorials/176097 "2009-10-10T16:09:32Z")

</div>

Hi, Ive recently bene trying to find a way to edit my tutorials (which are stored inside categories) in my RoR app. To edit my category’s names I use the following in the category show file: \<%= link\_to ‘Edit’, edit\_c…

---

## [Paperclip is not saving the files](https://www.ruby-forum.com/t/paperclip-is-not-saving-the-files/174876)

<div class="topic-metadata">

**Author:** [@akramwasim1234](https://www.ruby-forum.com/u/akramwasim1234)\
**Replies:** 12\
**Last updated:** [October 10, 2009, 1:35pm UTC](https://www.ruby-forum.com/t/paperclip-is-not-saving-the-files/174876 "2009-10-10T13:35:35Z")

</div>

Hi all, I’ve installed paperclips but paperclip is not saving the files my model has has\_attached\_file :attachment,:styles =\> { :medium =\> “300x300\>”, :thumb =\> “100x100\>” } and i have db migration as class AddA…

---

## [Javascript template, extension naming?](https://www.ruby-forum.com/t/javascript-template-extension-naming/177037)

<div class="topic-metadata">

**Author:** [@Teedub](https://www.ruby-forum.com/u/Teedub)\
**Replies:** 1\
**Last updated:** [October 10, 2009, 10:30am UTC](https://www.ruby-forum.com/t/javascript-template-extension-naming/177037 "2009-10-10T10:30:10Z")

</div>

It seems that I have a choice of blah.js blah.rjs blah.js.rjs and blah.js.erb plus I guess blah.rjs.erb (maybe) I know that this is somewhat version dependent. Which is the “bestest”? and is there a difference. T…

---

## [Get cookie valuu into the model](https://www.ruby-forum.com/t/get-cookie-valuu-into-the-model/177019)

<div class="topic-metadata">

**Author:** [@gorter9](https://www.ruby-forum.com/u/gorter9)\
**Replies:** 2\
**Last updated:** [October 10, 2009, 7:19am UTC](https://www.ruby-forum.com/t/get-cookie-valuu-into-the-model/177019 "2009-10-10T07:19:53Z")

</div>

How can i get the value of a cookie into the model. (cookies\[:mycookie\]) In the model i get a undefined method. I understand this is not supported by Activereccord::base But how can i get this values evan as remote\_i…

---

## [Updating multiple tables with one form](https://www.ruby-forum.com/t/updating-multiple-tables-with-one-form/176778)

<div class="topic-metadata">

**Author:** [@ryan8720](https://www.ruby-forum.com/u/ryan8720)\
**Replies:** 10\
**Last updated:** [October 10, 2009, 7:00am UTC](https://www.ruby-forum.com/t/updating-multiple-tables-with-one-form/176778 "2009-10-10T07:00:00Z")

</div>

Hi all, Here is the setup: I’m writing an application to model a house. Houses have rooms. I need the room to have a name, an id, and then one or more lights. Each light has wattage, hours\_per\_day, and quantity. I’d…

---

## [Protect\_from\_forgery development mode](https://www.ruby-forum.com/t/protect-from-forgery-development-mode/177004)

<div class="topic-metadata">

**Author:** [@John\_van\_Dijk](https://www.ruby-forum.com/u/John_van_Dijk)\
**Replies:** 1\
**Last updated:** [October 10, 2009, 1:42am UTC](https://www.ruby-forum.com/t/protect-from-forgery-development-mode/177004 "2009-10-10T01:42:08Z")

</div>

Should this be working in development mode? For some reason it doesn’t. regards, John

---

## [Problems with Redbox](https://www.ruby-forum.com/t/problems-with-redbox/177023)

<div class="topic-metadata">

**Author:** [@RVince](https://www.ruby-forum.com/u/RVince)\
**Replies:** 0\
**Last updated:** [October 10, 2009, 12:41am UTC](https://www.ruby-forum.com/t/problems-with-redbox/177023 "2009-10-10T00:41:16Z")

</div>

I am using the Redbox plugin to display a form. However, in that form I’ve noticed that one of the fields, which uses the auto-complete plugin, doesn;t work. The same code, if I take it out of the div that redbox is d…

---

## [Rails: command not found on Debian lenny](https://www.ruby-forum.com/t/rails-command-not-found-on-debian-lenny/176842)

<div class="topic-metadata">

**Author:** [@kitty00](https://www.ruby-forum.com/u/kitty00)\
**Replies:** 7\
**Last updated:** [October 9, 2009, 10:03pm UTC](https://www.ruby-forum.com/t/rails-command-not-found-on-debian-lenny/176842 "2009-10-09T22:03:12Z")

</div>

I installed ruby gems from their website and installed rails using gem install rails I got a successful installed notification. But when I tried to use rails command, it gave me command not found. After I installed g…

---

## [Need help with ecommerce](https://www.ruby-forum.com/t/need-help-with-ecommerce/177018)

<div class="topic-metadata">

**Author:** [@rmac217](https://www.ruby-forum.com/u/rmac217)\
**Replies:** 0\
**Last updated:** [October 9, 2009, 9:34pm UTC](https://www.ruby-forum.com/t/need-help-with-ecommerce/177018 "2009-10-09T21:34:34Z")

</div>

Hi everyone, I’ve been heavily modifying the Substruct ecommerce application to bring it upto date with Authlogic and a lot of new functionality. I would like to make it open source and upload it to Git, however I ne…

---

## [Validates\_format\_of .csv](https://www.ruby-forum.com/t/validates-format-of-csv/176944)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 3\
**Last updated:** [October 9, 2009, 8:32pm UTC](https://www.ruby-forum.com/t/validates-format-of-csv/176944 "2009-10-09T20:32:11Z")

</div>

Hello all, I’m trying to validate a uploaded file extension. I’m not using any special plugin other that fastercsv. When I try to upload an incorrect file (say a “.doc”), I get this error message… “Error adding log…

---

## [Best approach when data store is XML instead of a database?](https://www.ruby-forum.com/t/best-approach-when-data-store-is-xml-instead-of-a-database/177012)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 1\
**Last updated:** [October 9, 2009, 8:08pm UTC](https://www.ruby-forum.com/t/best-approach-when-data-store-is-xml-instead-of-a-database/177012 "2009-10-09T20:08:52Z")

</div>

Hi all, Does anyone know of an approach/plugin that for model classes persisted to XML, as ActiveRecord works with databases? I’m aware of ActiveRecord::XMLSerialization, but I’d like to expand on that in two ways: …

---

## [A table based grid - please let me know if I'm reinventing the wheel here](https://www.ruby-forum.com/t/a-table-based-grid-please-let-me-know-if-im-reinventing-the-wheel-here/176976)

<div class="topic-metadata">

**Author:** [@C\_K\_Kashyap](https://www.ruby-forum.com/u/C_K_Kashyap)\
**Replies:** 1\
**Last updated:** [October 9, 2009, 8:01pm UTC](https://www.ruby-forum.com/t/a-table-based-grid-please-let-me-know-if-im-reinventing-the-wheel-here/176976 "2009-10-09T20:01:57Z")

</div>

Hi Folks, Since I did not find an editable grid that suits my requirement (of being light weight and editable) I started writing my own - here’s what I’m trying - A helper function like this that renders a grid - de…

---

## [Eager Loading a Relationship That Has No PK/FK](https://www.ruby-forum.com/t/eager-loading-a-relationship-that-has-no-pk-fk/176962)

<div class="topic-metadata">

**Author:** [@MaggotChild](https://www.ruby-forum.com/u/MaggotChild)\
**Replies:** 6\
**Last updated:** [October 9, 2009, 8:00pm UTC](https://www.ruby-forum.com/t/eager-loading-a-relationship-that-has-no-pk-fk/176962 "2009-10-09T20:00:52Z")

</div>

I’m attempting to wrestle an old DB into Rails. This relationship is giving me trouble: class Show \< AR::Base has\_many :segments end class Segment \< AR::Base belongs\_to :show has\_one :media #this has no PK/FK rel…

---

## [Return "title" column if "caption" column is empty?](https://www.ruby-forum.com/t/return-title-column-if-caption-column-is-empty/176889)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 13\
**Last updated:** [October 9, 2009, 7:36pm UTC](https://www.ruby-forum.com/t/return-title-column-if-caption-column-is-empty/176889 "2009-10-09T19:36:10Z")

</div>

Hi all Oh my god, this really shouldn’t be a tough one, but I just don’t get it. :wink: class Page \< ActiveRecord::Base def caption caption ? caption : title end end I want to return the content of the title colu…

---

## [Definitive guide to Rake commands](https://www.ruby-forum.com/t/definitive-guide-to-rake-commands/176892)

<div class="topic-metadata">

**Author:** [@reggieb](https://www.ruby-forum.com/u/reggieb)\
**Replies:** 9\
**Last updated:** [October 9, 2009, 7:17pm UTC](https://www.ruby-forum.com/t/definitive-guide-to-rake-commands/176892 "2009-10-09T19:17:49Z")

</div>

If I want to look up the available Rake command syntax, where do I go to find it? For example, if I want to look up the syntax of a Rails command I can find it at: http://api.rubyonrails.com I can even look up the c…

---

## [Error on relations](https://www.ruby-forum.com/t/error-on-relations/177005)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 6\
**Last updated:** [October 9, 2009, 5:31pm UTC](https://www.ruby-forum.com/t/error-on-relations/177005 "2009-10-09T17:31:20Z")

</div>

I have a controller and model for both “products” and “baskets”. I’ve set up the belongs\_to and has\_many. When I’m in a third controller “shop” I get an error when I try to get the “products” data via “baskets”. So as…

---

## [Adding columns to DB on the fly](https://www.ruby-forum.com/t/adding-columns-to-db-on-the-fly/177001)

<div class="topic-metadata">

**Author:** [@kerdany](https://www.ruby-forum.com/u/kerdany)\
**Replies:** 1\
**Last updated:** [October 9, 2009, 5:19pm UTC](https://www.ruby-forum.com/t/adding-columns-to-db-on-the-fly/177001 "2009-10-09T17:19:50Z")

</div>

Hi, I’m doing a multilanguage application which kind-of abuses the concept of dynamic models of Rails. I allow the application administrator to create a new language (theres a Language model), and each time a new lan…

---

## [Reports libraries with Rails?](https://www.ruby-forum.com/t/reports-libraries-with-rails/176999)

<div class="topic-metadata">

**Author:** [@MaurSSS\_cio\_Szabo](https://www.ruby-forum.com/u/MaurSSS_cio_Szabo)\
**Replies:** 1\
**Last updated:** [October 9, 2009, 4:55pm UTC](https://www.ruby-forum.com/t/reports-libraries-with-rails/176999 "2009-10-09T16:55:53Z")

</div>

Hey, folks. Is there any good library to generate reports on ruby on rails (like Crystal Reports, for example)? I’m working on a system, and I need for my reports: Generate HTML Reports Generate CSV Reports Genera…

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

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