# Rails

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

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

---

## [REST Route how to avoid hacking routes](https://www.ruby-forum.com/t/rest-route-how-to-avoid-hacking-routes/108233)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [June 30, 2007, 11:08pm UTC](https://www.ruby-forum.com/t/rest-route-how-to-avoid-hacking-routes/108233 "2007-06-30T23:08:33Z")

</div>

what’s the best protection against someone trying to modify an URL in a named route /users/25/posts if the user enter another URL /users/26/posts, he can get acces to user 26 posts unless … a before\_filter is checki…

---

## [Postgres + Tests + Permissions = Confusion](https://www.ruby-forum.com/t/postgres-tests-permissions-confusion/108212)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 5\
**Last updated:** [June 30, 2007, 10:54pm UTC](https://www.ruby-forum.com/t/postgres-tests-permissions-confusion/108212 "2007-06-30T22:54:56Z")

</div>

Hi, I’m trying PostgreSQL for the first time and writing a Rails app for the first time in a long time. I have PostgreSQL installed on my Mac with owner user “postgres”. The password for this user on my Mac is also “…

---

## [Getting a mysql error connection error](https://www.ruby-forum.com/t/getting-a-mysql-error-connection-error/108241)

<div class="topic-metadata">

**Author:** [@abhishekkh](https://www.ruby-forum.com/u/abhishekkh)\
**Replies:** 1\
**Last updated:** [June 30, 2007, 10:54pm UTC](https://www.ruby-forum.com/t/getting-a-mysql-error-connection-error/108241 "2007-06-30T22:54:09Z")

</div>

Hi I was jus trying to get the tutorial 1 on lamp.com to get working. I am using mysql 5.1. I have the setup the mysql with a username:root and a password:\*\*\*\*\*\* But when I am trying to acess the databse I get a conne…

---

## [HABTM ReadOnlyRecord](https://www.ruby-forum.com/t/habtm-readonlyrecord/108238)

<div class="topic-metadata">

**Author:** [@emuen](https://www.ruby-forum.com/u/emuen)\
**Replies:** 1\
**Last updated:** [June 30, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/habtm-readonlyrecord/108238 "2007-06-30T22:33:06Z")

</div>

Hi. I get this error: \*\* ActiveRecord::ReadOnlyRecord \*\* When i try to update a table called characters\_learning\_abls that is a habtm relation between characters and learning\_abls. The characters\_learning\_abls table…

---

## [Phpinfo for RoR?](https://www.ruby-forum.com/t/phpinfo-for-ror/108198)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 5\
**Last updated:** [June 30, 2007, 9:11pm UTC](https://www.ruby-forum.com/t/phpinfo-for-ror/108198 "2007-06-30T21:11:56Z")

</div>

Dear all, Is there something like phpinfo() for RoR? I have a dual install of ruby and would like to know which version I am actually using. Thanks in advance! Harm

---

## [ActionController::Filters, any methods to execute the chain?](https://www.ruby-forum.com/t/actioncontroller-filters-any-methods-to-execute-the-chain/108228)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 1\
**Last updated:** [June 30, 2007, 7:01pm UTC](https://www.ruby-forum.com/t/actioncontroller-filters-any-methods-to-execute-the-chain/108228 "2007-06-30T19:01:13Z")

</div>

Does anyone know if there is a method to execute a target method on a controller, through the filter logic. Say I want to execute the “list” method, but first have it go through the all the filter logic. Is there a me…

---

## [Rendering now!](https://www.ruby-forum.com/t/rendering-now/108121)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 5\
**Last updated:** [June 30, 2007, 5:45pm UTC](https://www.ruby-forum.com/t/rendering-now/108121 "2007-06-30T17:45:39Z")

</div>

anyone got a slicker way to do this? http://drawohara.tumblr.com/post/4517961 thanks. -a we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama …

---

## [Country list & file\_field in other languages](https://www.ruby-forum.com/t/country-list-file-field-in-other-languages/108126)

<div class="topic-metadata">

**Author:** [@darrenevans](https://www.ruby-forum.com/u/darrenevans)\
**Replies:** 1\
**Last updated:** [June 30, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/country-list-file-field-in-other-languages/108126 "2007-06-30T17:35:59Z")

</div>

Hi I couln’t find anything else posted on these issues anywhere, but someone must have encountered this… Is it possible to use country\_options\_for\_select or county\_select to generate a dropdown menu of countries in d…

---

## [Has\_one](https://www.ruby-forum.com/t/has-one/108227)

<div class="topic-metadata">

**Author:** [@jonas](https://www.ruby-forum.com/u/jonas)\
**Replies:** 1\
**Last updated:** [June 30, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/has-one/108227 "2007-06-30T15:16:26Z")

</div>

I got two models: Extension and User. User has a foreign key called extension\_id. Extension has not key to user since it can be used by various models. My user model has “has\_one :extension” Why do the following code…

---

## [App for team codding?](https://www.ruby-forum.com/t/app-for-team-codding/107981)

<div class="topic-metadata">

**Author:** [@Gn0m3r](https://www.ruby-forum.com/u/Gn0m3r)\
**Replies:** 5\
**Last updated:** [June 30, 2007, 1:20pm UTC](https://www.ruby-forum.com/t/app-for-team-codding/107981 "2007-06-30T13:20:18Z")

</div>

Hi I was searhing for some app that was designed for team programming/codding but i have\`t find anything :frowning: do you know any kind of this application (RoR) ? it would be nice if i could work on it directly fr…

---

## [Validate for a groups of at least 4 items](https://www.ruby-forum.com/t/validate-for-a-groups-of-at-least-4-items/108222)

<div class="topic-metadata">

**Author:** [@hfoobar](https://www.ruby-forum.com/u/hfoobar)\
**Replies:** 0\
**Last updated:** [June 30, 2007, 11:16am UTC](https://www.ruby-forum.com/t/validate-for-a-groups-of-at-least-4-items/108222 "2007-06-30T11:16:08Z")

</div>

HI all, I have 2 tables: groups and items. The relation is 1-\* (each group has many items). In reality each groups should have at least 4 items. How can I implement an input form so I can input 4 items at the same ti…

---

## [Generating a textfield with an array as arguments](https://www.ruby-forum.com/t/generating-a-textfield-with-an-array-as-arguments/108220)

<div class="topic-metadata">

**Author:** [@T-Parent](https://www.ruby-forum.com/u/T-Parent)\
**Replies:** 0\
**Last updated:** [June 30, 2007, 8:44am UTC](https://www.ruby-forum.com/t/generating-a-textfield-with-an-array-as-arguments/108220 "2007-06-30T08:44:00Z")

</div>

Hi everyone, I have an array which looks like this ( output taken from debug(display\_options) ): rows: “5” cols: “40” I am trying to generate a textfield using the ‘text\_field’ helper function and my array (let’s …

---

## [How to handle cardinality 1-to-2 with Associations?](https://www.ruby-forum.com/t/how-to-handle-cardinality-1-to-2-with-associations/108173)

<div class="topic-metadata">

**Author:** [@simon1](https://www.ruby-forum.com/u/simon1)\
**Replies:** 3\
**Last updated:** [June 30, 2007, 8:27am UTC](https://www.ruby-forum.com/t/how-to-handle-cardinality-1-to-2-with-associations/108173 "2007-06-30T08:27:59Z")

</div>

Hello, I am new to RoR and am coding a small budgetting app with two tables (see below). As you can see every account has\_many transactions and every transaction has 2 accounts. How can I best respresent this using A…

---

## [Text\_field uneditable](https://www.ruby-forum.com/t/text-field-uneditable/108197)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [June 30, 2007, 8:10am UTC](https://www.ruby-forum.com/t/text-field-uneditable/108197 "2007-06-30T08:10:46Z")

</div>

Anyone know how to make a text fields uneditable through a helper method? Thanks S

---

## [Accessing http raw post data?](https://www.ruby-forum.com/t/accessing-http-raw-post-data/108213)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 3\
**Last updated:** [June 30, 2007, 6:58am UTC](https://www.ruby-forum.com/t/accessing-http-raw-post-data/108213 "2007-06-30T06:58:43Z")

</div>

how can I access http raw post data in a controller?

---

## [Return custom http responses from a controller?](https://www.ruby-forum.com/t/return-custom-http-responses-from-a-controller/108217)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 3\
**Last updated:** [June 30, 2007, 6:55am UTC](https://www.ruby-forum.com/t/return-custom-http-responses-from-a-controller/108217 "2007-06-30T06:55:32Z")

</div>

Is it possible to have a response to the browser triggered prematurely in a controller? like before rails does all it’s internal processing? also if so can I change the content-type for the response? thanks

---

## [Mysterious :action=\>"undefined" bug](https://www.ruby-forum.com/t/mysterious-action-undefined-bug/108218)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 0\
**Last updated:** [June 30, 2007, 6:28am UTC](https://www.ruby-forum.com/t/mysterious-action-undefined-bug/108218 "2007-06-30T06:28:54Z")

</div>

Has anyone ever had your RoR app try to reach an “undefined” action in one of your controllers. Its happening to me, but only from two different HTTP\_REFERER’s. Just curious if anyone has ever seen “undefined” stuck a…

---

## [Continuous\_builder question...PLEASE HELP!](https://www.ruby-forum.com/t/continuous-builder-question-please-help/108210)

<div class="topic-metadata">

**Author:** [@prathap](https://www.ruby-forum.com/u/prathap)\
**Replies:** 0\
**Last updated:** [June 30, 2007, 1:38am UTC](https://www.ruby-forum.com/t/continuous-builder-question-please-help/108210 "2007-06-30T01:38:38Z")

</div>

Hi, I am trying to build a simple (at least that is what I thought after reading Rails Recipes # 46) continuous integration process into my subversion source repository. I am working on windows by the way. I can get …

---

## [Acts\_as\_authenticated, reset\_session, and redirect\_back\_or\_d](https://www.ruby-forum.com/t/acts-as-authenticated-reset-session-and-redirect-back-or-d/108208)

<div class="topic-metadata">

**Author:** [@cmcfab](https://www.ruby-forum.com/u/cmcfab)\
**Replies:** 0\
**Last updated:** [June 30, 2007, 1:10am UTC](https://www.ruby-forum.com/t/acts-as-authenticated-reset-session-and-redirect-back-or-d/108208 "2007-06-30T01:10:36Z")

</div>

Just a question and an FYI I just installed rails and acts\_as\_authenticated and was setting up a site. Everything works fine except that in the AccountController that I generated the calls to the routine redirect\_bac…

---

## [Subversion Question](https://www.ruby-forum.com/t/subversion-question/108199)

<div class="topic-metadata">

**Author:** [@kwest](https://www.ruby-forum.com/u/kwest)\
**Replies:** 1\
**Last updated:** [June 30, 2007, 12:45am UTC](https://www.ruby-forum.com/t/subversion-question/108199 "2007-06-30T00:45:34Z")

</div>

Sorry for the subversion question…but it seems many of the subversion groups are not very active. I have a RoR app I have been working on and now when I attempt to commit I am getting this error: svn: Reference to no…

---

## [Using Mongrel,and Apache Alias](https://www.ruby-forum.com/t/using-mongrel-and-apache-alias/108207)

<div class="topic-metadata">

**Author:** [@JoeZach](https://www.ruby-forum.com/u/JoeZach)\
**Replies:** 0\
**Last updated:** [June 30, 2007, 12:09am UTC](https://www.ruby-forum.com/t/using-mongrel-and-apache-alias/108207 "2007-06-30T00:09:31Z")

</div>

I’m trying to bring my rail app into production on a server I have, but I keep running into problems getting Apache and Mongrel to play nicely. Short Summary: Mongrel is up and running fine (port 8000) and I can conn…

---

## [Quick Cash Loan: The Instant Source For Urgent Extra Cash](https://www.ruby-forum.com/t/quick-cash-loan-the-instant-source-for-urgent-extra-cash/108202)

<div class="topic-metadata">

**Author:** [@Moona\_Naeem](https://www.ruby-forum.com/u/Moona_Naeem)\
**Replies:** 0\
**Last updated:** [June 29, 2007, 11:16pm UTC](https://www.ruby-forum.com/t/quick-cash-loan-the-instant-source-for-urgent-extra-cash/108202 "2007-06-29T23:16:26Z")

</div>

Quick Cash Loan: The Instant Source For Urgent Extra Cash A cricket ball from the park smashed the windscreen of Richard’s car. His bank balance was nearly empty and the paycheck was still a fortnight away. http://on…

---

## [Find Models which's id does NOT appear in a collection](https://www.ruby-forum.com/t/find-models-whichs-id-does-not-appear-in-a-collection/108169)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 4\
**Last updated:** [June 29, 2007, 11:09pm UTC](https://www.ruby-forum.com/t/find-models-whichs-id-does-not-appear-in-a-collection/108169 "2007-06-29T23:09:25Z")

</div>

Dear all, I have a sticky problem and feel my knowledge of SQL is coming short. Basically I have two Models, Foo and FooTracker. Foo hass\_many FooTrackers and FooTracker belongs\_to Foo. So FooTracker has a field foo\_…

---

## [No idea where to start. - Filtering a grid :(](https://www.ruby-forum.com/t/no-idea-where-to-start-filtering-a-grid/108196)

<div class="topic-metadata">

**Author:** [@rjsquire](https://www.ruby-forum.com/u/rjsquire)\
**Replies:** 0\
**Last updated:** [June 29, 2007, 10:47pm UTC](https://www.ruby-forum.com/t/no-idea-where-to-start-filtering-a-grid/108196 "2007-06-29T22:47:53Z")

</div>

I wrote a simple app that displays the photos that I have stored in a specified album. The view, as we would expect, just drops them all into a grid table. In the database table, each photo has a record indicating the…

---

## [Attachment\_fu validation error](https://www.ruby-forum.com/t/attachment-fu-validation-error/108182)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 1\
**Last updated:** [June 29, 2007, 10:38pm UTC](https://www.ruby-forum.com/t/attachment-fu-validation-error/108182 "2007-06-29T22:38:22Z")

</div>

I have this class: class Logo \< ActiveRecord::Base has\_one :something has\_attachment :content\_type =\> :image, :storage =\> :db\_file, :max\_size =\> 500.kilobytes …

---

## [Re: save question](https://www.ruby-forum.com/t/re-save-question/108193)

<div class="topic-metadata">

**Author:** [@Jonathan\_Bradley](https://www.ruby-forum.com/u/Jonathan_Bradley)\
**Replies:** 0\
**Last updated:** [June 29, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/re-save-question/108193 "2007-06-29T22:36:22Z")

</div>

Ok i need to add a lost password feature. i need to generate a random password, then hash it and then save the hashed password and in turn mail then their new password. here is the code i was trying to use, but havin…

---

## [Routing issues with special characters](https://www.ruby-forum.com/t/routing-issues-with-special-characters/108175)

<div class="topic-metadata">

**Author:** [@Serengeti](https://www.ruby-forum.com/u/Serengeti)\
**Replies:** 3\
**Last updated:** [June 29, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/routing-issues-with-special-characters/108175 "2007-06-29T21:18:12Z")

</div>

I am using acts\_as\_taggable according to the examples in the Rails Recipes book. Everything works fine except for cases where I want to use a tag with a dot (like .NET) or a slash (like COM/OLE). The problem is not r…

---

## [RESTfully updating multiple objects](https://www.ruby-forum.com/t/restfully-updating-multiple-objects/108186)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 0\
**Last updated:** [June 29, 2007, 9:10pm UTC](https://www.ruby-forum.com/t/restfully-updating-multiple-objects/108186 "2007-06-29T21:10:11Z")

</div>

I need to update severall different ‘enrollment’ models from one form, the form looks like this: Enrollment Requests: John D.: oApprove oDecline Jane Doe: oApprove oDecline I’m using a REST architecture. My as…

---

## [Auto\_complete\_field problem](https://www.ruby-forum.com/t/auto-complete-field-problem/108096)

<div class="topic-metadata">

**Author:** [@Digimage](https://www.ruby-forum.com/u/Digimage)\
**Replies:** 4\
**Last updated:** [June 29, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/auto-complete-field-problem/108096 "2007-06-29T20:56:06Z")

</div>

Will anyone tell me why the following code is not calling into :Controller=\> portal :action=\> venue\_site\_live\_search when I typed any characters into the text field? I apprecated … \<%= javascript\_include\_tag “prototy…

---

## [Help with accessing DB for general purpose on Active Record](https://www.ruby-forum.com/t/help-with-accessing-db-for-general-purpose-on-active-record/108184)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 0\
**Last updated:** [June 29, 2007, 8:54pm UTC](https://www.ruby-forum.com/t/help-with-accessing-db-for-general-purpose-on-active-record/108184 "2007-06-29T20:54:06Z")

</div>

Hello, I’m converting data from a db to another. It’s kinda complex migration. I need to merge some tables into one and change some column values by rules. I want to use ActiveRecord instead of DBI (For some reason,…

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

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