# Rails

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

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

---

## [In place edit for date field](https://www.ruby-forum.com/t/in-place-edit-for-date-field/115446)

<div class="topic-metadata">

**Author:** [@basha](https://www.ruby-forum.com/u/basha)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 1:14pm UTC](https://www.ruby-forum.com/t/in-place-edit-for-date-field/115446 "2007-09-25T13:14:01Z")

</div>

Hi I am newbie for rails. I developed a single page with three fields. The fields are name, content and created\_on I have installed the calendar\_date\_select plugin. I am using in-place edit for all the fields. If i …

---

## [Is it magic?](https://www.ruby-forum.com/t/is-it-magic/115204)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 12:56pm UTC](https://www.ruby-forum.com/t/is-it-magic/115204 "2007-09-25T12:56:55Z")

</div>

Ok, I have a silly question. How does Rails know to generate SQL from this: @comment = @post.comments.find(params\[:id\]) If @post.comments.class is Array then how does Array know to write SQL with something like my\_ar…

---

## [SVN and distributed shared projects?](https://www.ruby-forum.com/t/svn-and-distributed-shared-projects/115382)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 6\
**Last updated:** [September 25, 2007, 12:51pm UTC](https://www.ruby-forum.com/t/svn-and-distributed-shared-projects/115382 "2007-09-25T12:51:54Z")

</div>

I thought I asked this question before, but now I can’t find it! Maybe I didn’t succesfully navigate a capcha or something. So I’ll try again and try to make the question simpler and more concise. Let’s say I have an …

---

## [Strip White spaces](https://www.ruby-forum.com/t/strip-white-spaces/115377)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [September 25, 2007, 12:45pm UTC](https://www.ruby-forum.com/t/strip-white-spaces/115377 "2007-09-25T12:45:51Z")

</div>

Hello All, I am trying to strip white spaces out of a html file or a very long string and am coming up a blank. Does anyone have some suggestions as to how to tackle this? Regards, j

---

## [Validation controls](https://www.ruby-forum.com/t/validation-controls/115426)

<div class="topic-metadata">

**Author:** [@vamsii](https://www.ruby-forum.com/u/vamsii)\
**Replies:** 1\
**Last updated:** [September 25, 2007, 12:37pm UTC](https://www.ruby-forum.com/t/validation-controls/115426 "2007-09-25T12:37:38Z")

</div>

This is vamsi presently working on rubyon rails.I would like to know how to use the validation controls and in how many ways i can secure the things

---

## [Is "has\_many ... :through" faster?](https://www.ruby-forum.com/t/is-has-many-through-faster/115414)

<div class="topic-metadata">

**Author:** [@Mozmonkey](https://www.ruby-forum.com/u/Mozmonkey)\
**Replies:** 1\
**Last updated:** [September 25, 2007, 12:21pm UTC](https://www.ruby-forum.com/t/is-has-many-through-faster/115414 "2007-09-25T12:21:49Z")

</div>

I have a table which maps users to photo album as hosts: | Album table | =\> | Hosts | \<=\> | Users | Sometimes I need to query if a user is a host of an album: if album.hosts.include? user Which I cannot do becau…

---

## [Autocomplete with \_id (if query exists), else create new](https://www.ruby-forum.com/t/autocomplete-with-id-if-query-exists-else-create-new/115438)

<div class="topic-metadata">

**Author:** [@gustav](https://www.ruby-forum.com/u/gustav)\
**Replies:** 1\
**Last updated:** [September 25, 2007, 12:05pm UTC](https://www.ruby-forum.com/t/autocomplete-with-id-if-query-exists-else-create-new/115438 "2007-09-25T12:05:47Z")

</div>

Hi guys, I’m trying to wrap my head around the rails autocompletion-functionality. I’m building a simple form for creating tasks, in which I would like to substitute a dropdown-list consisting of a collection of proje…

---

## [Hacking,anti-hacking,registry tweaks,compter tricks](https://www.ruby-forum.com/t/hacking-anti-hacking-registry-tweaks-compter-tricks/115447)

<div class="topic-metadata">

**Author:** [@dracula](https://www.ruby-forum.com/u/dracula)\
**Replies:** 0\
**Last updated:** [September 25, 2007, 11:32am UTC](https://www.ruby-forum.com/t/hacking-anti-hacking-registry-tweaks-compter-tricks/115447 "2007-09-25T11:32:42Z")

</div>

check this out buddies. kool website for: hacking and anti hacking tricks anti hackng tricks. registry tweaks orkut tricks small virus computer tricks and loads of different tricks… www.realm-of-tricks.blogspot.com w…

---

## [Has many through question](https://www.ruby-forum.com/t/has-many-through-question/115388)

<div class="topic-metadata">

**Author:** [@jonbaty](https://www.ruby-forum.com/u/jonbaty)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 10:52am UTC](https://www.ruby-forum.com/t/has-many-through-question/115388 "2007-09-25T10:52:57Z")

</div>

I am new to Rails and this is my first major project. I have a piece of content that can have multiple titles based on the language. I have four models Content, Titles, Language and TitleTranslation. class Content \< A…

---

## [DROP the :include key while generating the count query](https://www.ruby-forum.com/t/drop-the-include-key-while-generating-the-count-query/115398)

<div class="topic-metadata">

**Author:** [@SSnikhil\_gupte](https://www.ruby-forum.com/u/SSnikhil_gupte)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 9:38am UTC](https://www.ruby-forum.com/t/drop-the-include-key-while-generating-the-count-query/115398 "2007-09-25T09:38:34Z")

</div>

AFAIK, :include always results in a LEFT OUTER JOIN, which cannot impact the count and hence should be dropped from the count query since it slows down the query. For one LEFT OUTER JOINed object, on PostgreSQL 8.1, I…

---

## [Handling forms with arrays and their errors](https://www.ruby-forum.com/t/handling-forms-with-arrays-and-their-errors/115436)

<div class="topic-metadata">

**Author:** [@gga](https://www.ruby-forum.com/u/gga)\
**Replies:** 0\
**Last updated:** [September 25, 2007, 9:17am UTC](https://www.ruby-forum.com/t/handling-forms-with-arrays-and-their-errors/115436 "2007-09-25T09:17:27Z")

</div>

Hi, I’m building my first rails application and all has gone well so far. However, one area where I’m running into some trouble as I have not seen any explanation for is creating forms for models where the form input…

---

## [Recursive ajax call](https://www.ruby-forum.com/t/recursive-ajax-call/115348)

<div class="topic-metadata">

**Author:** [@shishir\_s](https://www.ruby-forum.com/u/shishir_s)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 9:17am UTC](https://www.ruby-forum.com/t/recursive-ajax-call/115348 "2007-09-25T09:17:27Z")

</div>

Hi, Is there any rails ajax tag or possibly any option with the existing ones , to set the recursive ajax calls. For e.g. If I wish to automatically send the next ajax request only when the response from the first o…

---

## [\[ANN\] singapore.rb meeting for Sept 2007](https://www.ruby-forum.com/t/ann-singapore-rb-meeting-for-sept-2007/115429)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 25, 2007, 8:21am UTC](https://www.ruby-forum.com/t/ann-singapore-rb-meeting-for-sept-2007/115429 "2007-09-25T08:21:20Z")

</div>

Hi folks, Please take note of the details for the next singapore.rb meeting in Sept 2007. It will be held on the 27th of Sept with meeting facilities generously provided by Bezurk.com Seating is limited to 25 people,…

---

## [Default controller in RESTful Rails application](https://www.ruby-forum.com/t/default-controller-in-restful-rails-application/115427)

<div class="topic-metadata">

**Author:** [@Martin\_Henriksson](https://www.ruby-forum.com/u/Martin_Henriksson)\
**Replies:** 0\
**Last updated:** [September 25, 2007, 7:27am UTC](https://www.ruby-forum.com/t/default-controller-in-restful-rails-application/115427 "2007-09-25T07:27:15Z")

</div>

Hi! Anyone have any tips for naming relations in a restful way? My biggest problem using the RESTful approach is coming up with all controller names for relations that basically are verbs converted to substantives wh…

---

## [Toggling a DIV based on a menu selection](https://www.ruby-forum.com/t/toggling-a-div-based-on-a-menu-selection/114637)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 5:42am UTC](https://www.ruby-forum.com/t/toggling-a-div-based-on-a-menu-selection/114637 "2007-09-25T05:42:12Z")

</div>

I have a situation where when the user selects a state for a model by choosing a particular menu item in the view, I want to either show or hide a DIV containing other relevant attribute choices… pretty basic stuff, b…

---

## [Validation in controllers](https://www.ruby-forum.com/t/validation-in-controllers/115342)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 6\
**Last updated:** [September 25, 2007, 5:39am UTC](https://www.ruby-forum.com/t/validation-in-controllers/115342 "2007-09-25T05:39:17Z")

</div>

Hi All, I am working on my first RoR application and running into an issue. I’ve been working through the authentication example in the AWDR book and have a question about the login form. Basically, there is a login p…

---

## [Validates\_uniqueness\_of on a facade column](https://www.ruby-forum.com/t/validates-uniqueness-of-on-a-facade-column/115419)

<div class="topic-metadata">

**Author:** [@spike666](https://www.ruby-forum.com/u/spike666)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 4:39am UTC](https://www.ruby-forum.com/t/validates-uniqueness-of-on-a-facade-column/115419 "2007-09-25T04:39:00Z")

</div>

Hey all… I’ve got a facade column set up (specifically, I’ve got a column in my database called ip\_address that stores an IP as a 32-bit integer rather than the dotted notation, but the model reads and writes as the d…

---

## [Variable + param](https://www.ruby-forum.com/t/variable-param/115421)

<div class="topic-metadata">

**Author:** [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 4:36am UTC](https://www.ruby-forum.com/t/variable-param/115421 "2007-09-25T04:36:54Z")

</div>

Hello i am iterating over one record: it schema is: id, name, content, content2, content3 and so on i tried to do with other table to normalize it but ok, the thing is that n the view to move to other content i send a …

---

## [Memcache client not connection](https://www.ruby-forum.com/t/memcache-client-not-connection/115417)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 1\
**Last updated:** [September 25, 2007, 3:16am UTC](https://www.ruby-forum.com/t/memcache-client-not-connection/115417 "2007-09-25T03:16:37Z")

</div>

Im trying to get the memcache-client working. Im not a development, windows environment and I tried doing: CACHE = MemCache.new ‘localhost:11211’, :namespace =\> ‘my\_namespace’ but the mem-cache server isnt connecting.…

---

## [Check out - live.gifttrap.com - an RoR Gift Exchange Social](https://www.ruby-forum.com/t/check-out-live-gifttrap-com-an-ror-gift-exchange-social/115410)

<div class="topic-metadata">

**Author:** [@Gone\_Boarding](https://www.ruby-forum.com/u/Gone_Boarding)\
**Replies:** 0\
**Last updated:** [September 25, 2007, 12:53am UTC](https://www.ruby-forum.com/t/check-out-live-gifttrap-com-an-ror-gift-exchange-social/115410 "2007-09-25T00:53:44Z")

</div>

I’ve just put my project into production at live.gifttrap.com "GiftTRAP Live is the first site to rate how well you know each friend! Who knows you best? Who do you know best? It’s a social collaborative game based on…

---

## [Question about link\_to helper](https://www.ruby-forum.com/t/question-about-link-to-helper/115404)

<div class="topic-metadata">

**Author:** [@skoppy](https://www.ruby-forum.com/u/skoppy)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 12:51am UTC](https://www.ruby-forum.com/t/question-about-link-to-helper/115404 "2007-09-25T00:51:44Z")

</div>

Hi all, I was wondering if someone might be able to answer a question for me. I’m working on a re-design of a magazine site and have models for both issue and article. Every article needs to belong to an issue, I’ve …

---

## [Questions about Software Used in Screencasts](https://www.ruby-forum.com/t/questions-about-software-used-in-screencasts/115405)

<div class="topic-metadata">

**Author:** [@Jared\_R](https://www.ruby-forum.com/u/Jared_R)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 12:40am UTC](https://www.ruby-forum.com/t/questions-about-software-used-in-screencasts/115405 "2007-09-25T00:40:44Z")

</div>

Hi, everyone → I’m brand new to this list, but have been bumbling my way through he Depot Shopping Cart tutorial from Agile Web D. With Rails, 2nd Edition. I handled that all right, for the most part. Now I’m look…

---

## [REST routes :has\_many , new style](https://www.ruby-forum.com/t/rest-routes-has-many-new-style/112996)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 12:22am UTC](https://www.ruby-forum.com/t/rest-routes-has-many-new-style/112996 "2007-09-25T00:22:42Z")

</div>

I am trying to write a nested route ‘new style’ map.resources :franchises, :has\_many =\> :documents in place of the : map.resources :franchises do |franchises| franchises.resources :documents, :name\_prefix =\> “franch…

---

## [1 table 2 models](https://www.ruby-forum.com/t/1-table-2-models/115392)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 12:13am UTC](https://www.ruby-forum.com/t/1-table-2-models/115392 "2007-09-25T00:13:41Z")

</div>

I have a single database which contains a single table. The general public will not have access to the table at all. I have 2 classes of users that will have access to the table. The ‘members’ class is to have read…

---

## [Automatic scoping in controller based on params\[\]](https://www.ruby-forum.com/t/automatic-scoping-in-controller-based-on-params/113948)

<div class="topic-metadata">

**Author:** [@Tarsoly\_AndrSSSSs](https://www.ruby-forum.com/u/Tarsoly_AndrSSSSs)\
**Replies:** 1\
**Last updated:** [September 25, 2007, 12:09am UTC](https://www.ruby-forum.com/t/automatic-scoping-in-controller-based-on-params/113948 "2007-09-25T00:09:41Z")

</div>

Hi guys, let’s say I have a nested route, like User \> Roles map.resources :user, :has\_many =\> \[ :roles \] In this case, calling new\_user\_role\_url gets me to the role controller’s :create method with a user\_id set in th…

---

## [Test and DB Functions](https://www.ruby-forum.com/t/test-and-db-functions/115406)

<div class="topic-metadata">

**Author:** [@jasonwold](https://www.ruby-forum.com/u/jasonwold)\
**Replies:** 0\
**Last updated:** [September 24, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/test-and-db-functions/115406 "2007-09-24T23:50:37Z")

</div>

I am using the DBFunction plugin writen by Mark Van H., http://agilewebdevelopment.com/plugins/activerecord\_database\_functions It works wonderfully but I’m having an issue with testing. My development postgres databa…

---

## [Structuring CSS and naming conventions](https://www.ruby-forum.com/t/structuring-css-and-naming-conventions/115402)

<div class="topic-metadata">

**Author:** [@tonypm](https://www.ruby-forum.com/u/tonypm)\
**Replies:** 0\
**Last updated:** [September 24, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/structuring-css-and-naming-conventions/115402 "2007-09-24T22:42:31Z")

</div>

Hi, I would be really interested if there is any convention or strategy to help with CSS in Rails. Currently my styles are in a couple of fairly large stylesheets and I use the single application layout throughout. …

---

## [Mysql-proxy vs. acts\_as\_readonlyable vs.?](https://www.ruby-forum.com/t/mysql-proxy-vs-acts-as-readonlyable-vs/115202)

<div class="topic-metadata">

**Author:** [@marcbey](https://www.ruby-forum.com/u/marcbey)\
**Replies:** 1\
**Last updated:** [September 24, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/mysql-proxy-vs-acts-as-readonlyable-vs/115202 "2007-09-24T21:21:20Z")

</div>

I have replicated my db (mysql) and have hit roadblocks with both mysql-proxy and with acts\_as\_readonlyable . Firstly, is there something else I should be using? What would be the advantages of mysql-proxy over in-rai…

---

## [What is the .rb.swap file for?](https://www.ruby-forum.com/t/what-is-the-rb-swap-file-for/115389)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 1\
**Last updated:** [September 24, 2007, 8:58pm UTC](https://www.ruby-forum.com/t/what-is-the-rb-swap-file-for/115389 "2007-09-24T20:58:16Z")

</div>

I generated a model “user” @ first. then i added some code into the model. after this, i generated a scaffold for model “user” and controller “admin”. but i dont need the scaffold again so i “ruby script/destroy scaf…

---

## [\*Chaos\* plugin](https://www.ruby-forum.com/t/chaos-plugin/115386)

<div class="topic-metadata">

**Author:** [@jon](https://www.ruby-forum.com/u/jon)\
**Replies:** 0\
**Last updated:** [September 24, 2007, 7:43pm UTC](https://www.ruby-forum.com/t/chaos-plugin/115386 "2007-09-24T19:43:02Z")

</div>

I do not know if I’m the unique one that thinks about this but I believe that there is a chaotic situation with respect to the Rails plugins. And it’s something frustrating for the newbies like I. I know that there ar…

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

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