# Rails

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

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

---

## [Acts\_as\_authenticated + authorization plugin = Can only rend](https://www.ruby-forum.com/t/acts-as-authenticated-authorization-plugin-can-only-rend/90843)

<div class="topic-metadata">

**Author:** [@razy](https://www.ruby-forum.com/u/razy)\
**Replies:** 1\
**Last updated:** [April 2, 2007, 10:28am UTC](https://www.ruby-forum.com/t/acts-as-authenticated-authorization-plugin-can-only-rend/90843 "2007-04-02T10:28:39Z")

</div>

Hi all, I’ve got a strange trouble with those plugins in subject. Im new in rails and just trying to get some basic things working before proceeding to something more complicated. So here is the step-by-step descirpt…

---

## [Finds on child models](https://www.ruby-forum.com/t/finds-on-child-models/90844)

<div class="topic-metadata">

**Author:** [@plewizard](https://www.ruby-forum.com/u/plewizard)\
**Replies:** 0\
**Last updated:** [April 2, 2007, 10:06am UTC](https://www.ruby-forum.com/t/finds-on-child-models/90844 "2007-04-02T10:06:38Z")

</div>

i’ve looking for the sql to do a comparison of objects in a model’s has\_many objects. specifically it’s a simple model: class Person has\_many :things end class Things belongs\_to: person end i can save the person…

---

## [\[Announce\] The Lucid Arts Project](https://www.ruby-forum.com/t/announce-the-lucid-arts-project/90842)

<div class="topic-metadata">

**Author:** [@GalenSLucid\_Desig](https://www.ruby-forum.com/u/GalenSLucid_Desig)\
**Replies:** 1\
**Last updated:** [April 2, 2007, 10:04am UTC](https://www.ruby-forum.com/t/announce-the-lucid-arts-project/90842 "2007-04-02T10:04:37Z")

</div>

After more than five months of development, we are pleased to finally have a range of paid packages available for artists wishing to sign-up to the Lucid Arts Project. People can sign-up to any plan for a no-obligatio…

---

## [User accounts](https://www.ruby-forum.com/t/user-accounts/90840)

<div class="topic-metadata">

**Author:** [@wheels](https://www.ruby-forum.com/u/wheels)\
**Replies:** 0\
**Last updated:** [April 2, 2007, 9:04am UTC](https://www.ruby-forum.com/t/user-accounts/90840 "2007-04-02T09:04:16Z")

</div>

I’m creating an application that will have a user creating an account. Should I split the user model into two? user, user\_info. user will contain the essential: id, login, hashed\_password user\_info will contain all t…

---

## [\[ANN\] whatstheplan.com - a better way to plan events online](https://www.ruby-forum.com/t/ann-whatstheplan-com-a-better-way-to-plan-events-online/90835)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [April 2, 2007, 8:42am UTC](https://www.ruby-forum.com/t/ann-whatstheplan-com-a-better-way-to-plan-events-online/90835 "2007-04-02T08:42:15Z")

</div>

Hello, Yet another Rails launch announcement! We love rails and the latest thing we’ve put together is whatstheplan.com, a better way to plan events online. It’s a clean, elegant solution for organizing stuff with …

---

## [Migrations](https://www.ruby-forum.com/t/migrations/90838)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 2, 2007, 8:28am UTC](https://www.ruby-forum.com/t/migrations/90838 "2007-04-02T08:28:13Z")

</div>

Hi there I would like to get some advice on migrations. New on Rails, I do no exactly understand what is going on here. I have created a table “tax” sucessfully using this code in a migration file: class CreateTax \< …

---

## [Splitting text into columns](https://www.ruby-forum.com/t/splitting-text-into-columns/90080)

<div class="topic-metadata">

**Author:** [@Sebastian\_Probst\_E](https://www.ruby-forum.com/u/Sebastian_Probst_E)\
**Replies:** 2\
**Last updated:** [April 2, 2007, 8:02am UTC](https://www.ruby-forum.com/t/splitting-text-into-columns/90080 "2007-04-02T08:02:10Z")

</div>

As far as I know there is no easy way to split a text block into multiple columns on a webpage. Is there any sort of Ruby plugin that has this functionality? So you can specify the size of a column and have the plugin…

---

## [Mongrel\_rails configuration file does not exist but it does](https://www.ruby-forum.com/t/mongrel-rails-configuration-file-does-not-exist-but-it-does/89399)

<div class="topic-metadata">

**Author:** [@jz176](https://www.ruby-forum.com/u/jz176)\
**Replies:** 8\
**Last updated:** [April 2, 2007, 7:09am UTC](https://www.ruby-forum.com/t/mongrel-rails-configuration-file-does-not-exist-but-it-does/89399 "2007-04-02T07:09:58Z")

</div>

this is on centos 4 with ruby installed from source. i can start mongrel every way but the one i need… mongrel\_cluster\_ctl works from anywhere, /etc/init.d/mongrel\_cluster start works, and the one i need - “mongrel\_ra…

---

## [JSON Parser in ROR](https://www.ruby-forum.com/t/json-parser-in-ror/90829)

<div class="topic-metadata">

**Author:** [@rama](https://www.ruby-forum.com/u/rama)\
**Replies:** 0\
**Last updated:** [April 2, 2007, 6:22am UTC](https://www.ruby-forum.com/t/json-parser-in-ror/90829 "2007-04-02T06:22:33Z")

</div>

Hi, Can anyone tell me how i can validate my JSON data in ruby, JSON data is coming from other source. Parse JSON in rubyonrail Thanks & Regards, Rama

---

## [Eager loading not working well for me](https://www.ruby-forum.com/t/eager-loading-not-working-well-for-me/90261)

<div class="topic-metadata">

**Author:** [@eleo](https://www.ruby-forum.com/u/eleo)\
**Replies:** 7\
**Last updated:** [April 2, 2007, 5:49am UTC](https://www.ruby-forum.com/t/eager-loading-not-working-well-for-me/90261 "2007-04-02T05:49:23Z")

</div>

Man my app is causing me so much grief lately. Okay let’s say I have: class Discussion has\_many :posts end class Post belongs\_to :discussion acts\_as\_tree end Then let’s say I grab a discussion object and try to …

---

## [Form\_for vs remote\_form\_for](https://www.ruby-forum.com/t/form-for-vs-remote-form-for/90828)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 0\
**Last updated:** [April 2, 2007, 5:39am UTC](https://www.ruby-forum.com/t/form-for-vs-remote-form-for/90828 "2007-04-02T05:39:59Z")

</div>

I currently have this form: \<% form\_for :workout\_file, :url =\> { :action =\> ‘create’ }, :html =\> { :multipart =\> true } do |f| -%\> \<%= f.file\_field :uploaded\_data %\> \<%= submit\_tag :Create %\> \<% end -%\> At the e…

---

## [Nested models](https://www.ruby-forum.com/t/nested-models/90701)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 2, 2007, 5:35am UTC](https://www.ruby-forum.com/t/nested-models/90701 "2007-04-02T05:35:58Z")

</div>

I wanted to gather some feedback from people about nested models and the assumptions that they make about the underlying database structure. As I see it, the primary function of nesting model classes inside of module…

---

## [Active record always appending "order by created\_at desc"](https://www.ruby-forum.com/t/active-record-always-appending-order-by-created-at-desc/90745)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 4\
**Last updated:** [April 2, 2007, 5:09am UTC](https://www.ruby-forum.com/t/active-record-always-appending-order-by-created-at-desc/90745 "2007-04-02T05:09:57Z")

</div>

Hello all, I’m having a problem with activerecord and wondering if anyone else has encountered this. (using rails 1.2.3) I’m doing a find all and adding my own :order option, but whatever I add, AR still adds another …

---

## [STI and has\_many](https://www.ruby-forum.com/t/sti-and-has-many/90825)

<div class="topic-metadata">

**Author:** [@Russell\_N](https://www.ruby-forum.com/u/Russell_N)\
**Replies:** 0\
**Last updated:** [April 2, 2007, 4:50am UTC](https://www.ruby-forum.com/t/sti-and-has-many/90825 "2007-04-02T04:50:56Z")

</div>

I’m having a really hard time figuring out what’s wrong with this scenario. Here’s my setup My classes and their relationships… class Document \< ActiveRecord::Base has\_many :attachments, :dependent =\> :destroy end c…

---

## [The Hideout is open](https://www.ruby-forum.com/t/the-hideout-is-open/102730)

<div class="topic-metadata">

**Author:** [@S\_ugly](https://www.ruby-forum.com/u/S_ugly)\
**Replies:** 1\
**Last updated:** [April 2, 2007, 4:06am UTC](https://www.ruby-forum.com/t/the-hideout-is-open/102730 "2007-04-02T04:06:53Z")

</div>

finally had some time to write a rails app, man, this stuff is fun, i love ruby and rails: http://crookedhideout.com/

---

## [Link\_to\_remote external rails app?](https://www.ruby-forum.com/t/link-to-remote-external-rails-app/90819)

<div class="topic-metadata">

**Author:** [@dissolved](https://www.ruby-forum.com/u/dissolved)\
**Replies:** 0\
**Last updated:** [April 2, 2007, 2:50am UTC](https://www.ruby-forum.com/t/link-to-remote-external-rails-app/90819 "2007-04-02T02:50:57Z")

</div>

Is it possible to 2 have two seperate rails applications on the same server and use either link\_to\_remote or form\_remote\_tag to submit a form on the external app and process the response in the referring app? I was pl…

---

## [How to pass Radio Button selection to the controller?](https://www.ruby-forum.com/t/how-to-pass-radio-button-selection-to-the-controller/86543)

<div class="topic-metadata">

**Author:** [@sunny](https://www.ruby-forum.com/u/sunny)\
**Replies:** 4\
**Last updated:** [April 2, 2007, 2:33am UTC](https://www.ruby-forum.com/t/how-to-pass-radio-button-selection-to-the-controller/86543 "2007-04-02T02:33:24Z")

</div>

Hey guys, I have a loop that generates multiple radio buttons, here’s the code: \<% checked = true %\> \<% for address in @customer.addresses %\> \<%= radio\_button\_tag(“address”, address.id, checked = checked) %\> \<% che…

---

## [Remove habtm item?](https://www.ruby-forum.com/t/remove-habtm-item/90808)

<div class="topic-metadata">

**Author:** [@dankitania](https://www.ruby-forum.com/u/dankitania)\
**Replies:** 1\
**Last updated:** [April 2, 2007, 2:21am UTC](https://www.ruby-forum.com/t/remove-habtm-item/90808 "2007-04-02T02:21:25Z")

</div>

I’m making a website for a book club, and I’m trying to arrange it so that members can indicate their intention to attend the discussion of a given book. I’ve got that working, but I’m not able to remove these “votes…

---

## [ActionView::Helpers::TextHelper - auto\_link](https://www.ruby-forum.com/t/actionview-texthelper-auto-link/90098)

<div class="topic-metadata">

**Author:** [@Samantha](https://www.ruby-forum.com/u/Samantha)\
**Replies:** 4\
**Last updated:** [April 2, 2007, 2:20am UTC](https://www.ruby-forum.com/t/actionview-texthelper-auto-link/90098 "2007-04-02T02:20:28Z")

</div>

Hi there, I’m working on something in Rails (my first app, really) and attempting to use the auto\_link feature. Basically, one of the fields in my database is a url. I have successfully gotten it to format in the v…

---

## [Counter\_cache won't increment](https://www.ruby-forum.com/t/counter-cache-wont-increment/90740)

<div class="topic-metadata">

**Author:** [@eleo](https://www.ruby-forum.com/u/eleo)\
**Replies:** 2\
**Last updated:** [April 2, 2007, 2:13am UTC](https://www.ruby-forum.com/t/counter-cache-wont-increment/90740 "2007-04-02T02:13:18Z")

</div>

I’m having an odd problem. I’ve pinpointed what’s causing it, but it’s not making any sense. class Discussion \< ActiveRecord::Base has\_many :posts, :dependent =\> :destroy def bump update\_attribute(:bumped\_on, Time…

---

## [Adding a 'coupon-like' feature to a checkout process?](https://www.ruby-forum.com/t/adding-a-coupon-like-feature-to-a-checkout-process/90749)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 5\
**Last updated:** [April 2, 2007, 2:01am UTC](https://www.ruby-forum.com/t/adding-a-coupon-like-feature-to-a-checkout-process/90749 "2007-04-02T02:01:40Z")

</div>

I am not sure how to go about this. So far I only have my coupon model built. Basically what I am trying to achieve is simply being able to ‘use’ a coupon that is created, to knock the price down on the total of the …

---

## [Ajax response not evaluating?](https://www.ruby-forum.com/t/ajax-response-not-evaluating/90816)

<div class="topic-metadata">

**Author:** [@igrigorik](https://www.ruby-forum.com/u/igrigorik)\
**Replies:** 1\
**Last updated:** [April 2, 2007, 1:40am UTC](https://www.ruby-forum.com/t/ajax-response-not-evaluating/90816 "2007-04-02T01:40:21Z")

</div>

This is an odd one. I just noticed that for some odd reason, my ajax responses on graphics-world.com (rate a tutorial, report a tutorial, etc.) are not being evaluated. To make the puzzle even more interesting, it doe…

---

## [Is it a lot?](https://www.ruby-forum.com/t/is-it-a-lot/89923)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 7\
**Last updated:** [April 2, 2007, 12:13am UTC](https://www.ruby-forum.com/t/is-it-a-lot/89923 "2007-04-02T00:13:53Z")

</div>

hi, do you think is it a lot 0.4 sec (with rendering, db and other stuff) to load a page for a page that will be viewed a lot of time with a lot of requests/seconds ? (caching is not possible in this page :()

---

## [Adding actions/methods to a controller via a plugin](https://www.ruby-forum.com/t/adding-actions-methods-to-a-controller-via-a-plugin/88735)

<div class="topic-metadata">

**Author:** [@pixellover](https://www.ruby-forum.com/u/pixellover)\
**Replies:** 2\
**Last updated:** [April 1, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/adding-actions-methods-to-a-controller-via-a-plugin/88735 "2007-04-01T22:20:57Z")

</div>

Hi, I would like to develop a plugin, that if enabled in a controller, extends the controller with some basic methods (actions). Here’s what I’ve done so far: In init.rb: require ‘my\_scaffold’ ActionController::Ba…

---

## [Looking after an technical evangelist](https://www.ruby-forum.com/t/looking-after-an-technical-evangelist/90802)

<div class="topic-metadata">

**Author:** [@Sense\_S\_ValueSs\_sta](https://www.ruby-forum.com/u/Sense_S_ValueSs_sta)\
**Replies:** 0\
**Last updated:** [April 1, 2007, 10:19pm UTC](https://www.ruby-forum.com/t/looking-after-an-technical-evangelist/90802 "2007-04-01T22:19:09Z")

</div>

Hi all, Sense & value, a new web plaftorm editor (start-up) co-founded by 2 young guys from Yahoo! & Ebay looking after a passionate, ambitious, Communicative & responsible developper to become our CTO and co-founder. …

---

## [Replace value after retrieving from database](https://www.ruby-forum.com/t/replace-value-after-retrieving-from-database/90801)

<div class="topic-metadata">

**Author:** [@drlelon](https://www.ruby-forum.com/u/drlelon)\
**Replies:** 0\
**Last updated:** [April 1, 2007, 10:14pm UTC](https://www.ruby-forum.com/t/replace-value-after-retrieving-from-database/90801 "2007-04-01T22:14:37Z")

</div>

Hi, I have values in my database stored as integers: 1, 2, 3, 4, 5 When I retrieve and display these values in a List or Show, I want to map them to text such as: Text1, Text2, Text3, Text4, Text5 What’s the easies…

---

## [Validation with in\_place\_edit\_for](https://www.ruby-forum.com/t/validation-with-in-place-edit-for/56544)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 14\
**Last updated:** [April 1, 2007, 9:39pm UTC](https://www.ruby-forum.com/t/validation-with-in-place-edit-for/56544 "2007-04-01T21:39:24Z")

</div>

i’ve got an in place edit text box for some of my fields. my model has validates\_presence\_of for the field but nothing happens. it works fine in the scaffold when using the edit page, but nowhere else. anyone have a s…

---

## [How to handle all errors?](https://www.ruby-forum.com/t/how-to-handle-all-errors/90778)

<div class="topic-metadata">

**Author:** [@mix](https://www.ruby-forum.com/u/mix)\
**Replies:** 2\
**Last updated:** [April 1, 2007, 9:27pm UTC](https://www.ruby-forum.com/t/how-to-handle-all-errors/90778 "2007-04-01T21:27:14Z")

</div>

Hi, is it possible to handle all errors? for example, now if someone try to go to an url that doesn’t exist a page “no action responded to …” is shown, is it possible to redirect to a default page?

---

## [Daily Kos cancels Rails redesign](https://www.ruby-forum.com/t/daily-kos-cancels-rails-redesign/90798)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 1\
**Last updated:** [April 1, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/daily-kos-cancels-rails-redesign/90798 "2007-04-01T20:59:29Z")

</div>

Obviously they can decide how they like whether it’s worth the effort to redesign their backend completely or use an existing platform, but… “Ruby-based platforms were tossed out because the fact that integers are o…

---

## [Cannot change attribute with self\[:attribute\]= or write\_attr](https://www.ruby-forum.com/t/cannot-change-attribute-with-self-attribute-or-write-attr/90743)

<div class="topic-metadata">

**Author:** [@akrodha](https://www.ruby-forum.com/u/akrodha)\
**Replies:** 2\
**Last updated:** [April 1, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/cannot-change-attribute-with-self-attribute-or-write-attr/90743 "2007-04-01T20:37:20Z")

</div>

Hey, I have a model called Vocab with an integer variable named box. I defined a method named promote which increases box by one: def promote self\[:box\] += 1 end I put a link in the list.rhtml view created by scaff…

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

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