# Rails

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

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

---

## [Noticing db changes that don't happen in rails?](https://www.ruby-forum.com/t/noticing-db-changes-that-dont-happen-in-rails/127406)

<div class="topic-metadata">

**Author:** [@ledelste](https://www.ruby-forum.com/u/ledelste)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 11:11pm UTC](https://www.ruby-forum.com/t/noticing-db-changes-that-dont-happen-in-rails/127406 "2008-01-28T23:11:22Z")

</div>

I am working on a rails application using MySQL as the database. The customer has a legacy application which can update records in the database. I want rails to know when this happens but things like callbacks or ob…

---

## [Three levels of indirection](https://www.ruby-forum.com/t/three-levels-of-indirection/127376)

<div class="topic-metadata">

**Author:** [@gsterndale](https://www.ruby-forum.com/u/gsterndale)\
**Replies:** 1\
**Last updated:** [January 28, 2008, 11:10pm UTC](https://www.ruby-forum.com/t/three-levels-of-indirection/127376 "2008-01-28T23:10:46Z")

</div>

In the following hypothetical scenario, I’d like to associate Books with Clubs without using finder\_sql. Apparently, if you use finder\_sql, all the find\_in\_collection methods are not added to the associated objects. W…

---

## [In\_place\_editor question](https://www.ruby-forum.com/t/in-place-editor-question/127404)

<div class="topic-metadata">

**Author:** [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 10:54pm UTC](https://www.ruby-forum.com/t/in-place-editor-question/127404 "2008-01-28T22:54:49Z")

</div>

Is there a way to force the in\_place\_editor plugin to only use external\_control? I’m using in\_place\_editor to allow my users to edit their tags on an object, so when the tags are not being edited, I want them to be l…

---

## [Why are parameter values getting lost?](https://www.ruby-forum.com/t/why-are-parameter-values-getting-lost/127391)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 28, 2008, 10:50pm UTC](https://www.ruby-forum.com/t/why-are-parameter-values-getting-lost/127391 "2008-01-28T22:50:21Z")

</div>

Hi, I have this login form (app/views/register/start.rhtml): \<% form\_tag ‘session/new’ do -%\> Login \<%= text\_field\_tag 'login' %\> Password \<%= password\_field\_tag 'password' %\> \<%= submit\_tag 'Log in' %\> \<% end -%\>…

---

## [Conditional association](https://www.ruby-forum.com/t/conditional-association/127255)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 6\
**Last updated:** [January 28, 2008, 10:26pm UTC](https://www.ruby-forum.com/t/conditional-association/127255 "2008-01-28T22:26:28Z")

</div>

hello , i have an association as follows. A user is of type “author” or “reader”. In the user table is a column called user\_type\_id that references a user\_type table of 2 records, author, reader. What i am trying t…

---

## [Dynamic finds](https://www.ruby-forum.com/t/dynamic-finds/127379)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [January 28, 2008, 10:13pm UTC](https://www.ruby-forum.com/t/dynamic-finds/127379 "2008-01-28T22:13:22Z")

</div>

HI! Is there any posibility to make a dynamic find that search with “like” sentense? For example: In my table there are records with values: Disc 0, Disc 1, Disc 2, Disc 3, etc… and i want to search all the records …

---

## [Plotting/Charting tools for a LARGE set of points (25k+)](https://www.ruby-forum.com/t/plotting-charting-tools-for-a-large-set-of-points-25k/127397)

<div class="topic-metadata">

**Author:** [@lucas](https://www.ruby-forum.com/u/lucas)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 10:04pm UTC](https://www.ruby-forum.com/t/plotting-charting-tools-for-a-large-set-of-points-25k/127397 "2008-01-28T22:04:59Z")

</div>

I’ve been looking around the web for a plotting tool to use w/ my RoR app. I’ve tried already amCharts and PlotKit, and I know about the existence of XML/SWF, FusionCharts, Gruff, Scruffy, ChartDirector (never tested …

---

## [How do I find the size of a folder](https://www.ruby-forum.com/t/how-do-i-find-the-size-of-a-folder/127394)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 9:48pm UTC](https://www.ruby-forum.com/t/how-do-i-find-the-size-of-a-folder/127394 "2008-01-28T21:48:22Z")

</div>

Hi, I am trying to work out the size of a folder using File.size(location of the folder), but this does not seem to return the correct size. How can I find the size of a folder? Kind regards, Dave.

---

## [In\_place\_editor\_field using onComplete](https://www.ruby-forum.com/t/in-place-editor-field-using-oncomplete/127393)

<div class="topic-metadata">

**Author:** [@SmallPaul](https://www.ruby-forum.com/u/SmallPaul)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 9:46pm UTC](https://www.ruby-forum.com/t/in-place-editor-field-using-oncomplete/127393 "2008-01-28T21:46:01Z")

</div>

Can someone please show correct usage of the Rails in\_place\_editor\_field in conjuction with onComplete? (Actually what I really want is onSuccess, but I can check the response code.) Thanks

---

## [Missing table with test:units](https://www.ruby-forum.com/t/missing-table-with-test-units/127148)

<div class="topic-metadata">

**Author:** [@kula](https://www.ruby-forum.com/u/kula)\
**Replies:** 2\
**Last updated:** [January 28, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/missing-table-with-test-units/127148 "2008-01-28T21:43:18Z")

</div>

hi all, I’m trying to create tests for my app but “rake test:units” doesn’t create one table, even if other ware created properly. Migration file for this table is present, but if I create this table from finger and …

---

## [Default routes do not seem to be working](https://www.ruby-forum.com/t/default-routes-do-not-seem-to-be-working/127380)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 1\
**Last updated:** [January 28, 2008, 8:27pm UTC](https://www.ruby-forum.com/t/default-routes-do-not-seem-to-be-working/127380 "2008-01-28T20:27:10Z")

</div>

i don’t know if something has changed or if there is something i have just overlooked. i set up the restful authentication plugin and all works fine except for the fact that when i go to a page that requires authentic…

---

## [Ruby on Rails mailer](https://www.ruby-forum.com/t/ruby-on-rails-mailer/225982)

<div class="topic-metadata">

**Author:** [@franz](https://www.ruby-forum.com/u/franz)\
**Replies:** 4\
**Last updated:** [January 28, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-mailer/225982 "2008-01-28T19:40:29Z")

</div>

Today I made a first attempt to make use of ruby mailer. A volunteer fills out a form and the information is then sent to an administrator. I generated a mailer called notifier and added the following: class Notifier…

---

## [Nester routes issue](https://www.ruby-forum.com/t/nester-routes-issue/127378)

<div class="topic-metadata">

**Author:** [@sotirac](https://www.ruby-forum.com/u/sotirac)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/nester-routes-issue/127378 "2008-01-28T19:24:52Z")

</div>

This is a snippet of my routes.rb file map.resources :users do |users| users.resources :blogs do |blogs| blogs.resources :articles do |articles| articles.resources :comments end blogs.resources :comments end end …

---

## [OT: Building a store locator with Google Map API](https://www.ruby-forum.com/t/ot-building-a-store-locator-with-google-map-api/127377)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/ot-building-a-store-locator-with-google-map-api/127377 "2008-01-28T19:23:58Z")

</div>

Can anyone refer me to good resources for using the Google Map API to build a mini store locator app.? Thanks, Wes

---

## [Model Best Practices](https://www.ruby-forum.com/t/model-best-practices/127112)

<div class="topic-metadata">

**Author:** [@KumaZatheef](https://www.ruby-forum.com/u/KumaZatheef)\
**Replies:** 10\
**Last updated:** [January 28, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/model-best-practices/127112 "2008-01-28T19:07:06Z")

</div>

Ok, although not entirely new to RoR, myself and a colleague have been “discussing” some best practices for find. The scenario: table of users table of companies a user can belong to multiple companies end result is …

---

## [Creating a profile with after\_create](https://www.ruby-forum.com/t/creating-a-profile-with-after-create/127367)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 2\
**Last updated:** [January 28, 2008, 6:53pm UTC](https://www.ruby-forum.com/t/creating-a-profile-with-after-create/127367 "2008-01-28T18:53:29Z")

</div>

I have a User and a Profile model, and want to use the last one for storing some settings and preferences. I think i have the relationships right (User…has\_one :profile, Profile…belongs\_to :user) and a user\_id field i…

---

## [Problems with MS SQL Server and ruby on rails](https://www.ruby-forum.com/t/problems-with-ms-sql-server-and-ruby-on-rails/127373)

<div class="topic-metadata">

**Author:** [@arnoldorl](https://www.ruby-forum.com/u/arnoldorl)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 6:34pm UTC](https://www.ruby-forum.com/t/problems-with-ms-sql-server-and-ruby-on-rails/127373 "2008-01-28T18:34:06Z")

</div>

I have a problem when I save data in the database. The problem is because I send some characters with accent or any other latin character like Ã±, I have changed some configuration like the encoding in the application…

---

## [Conditional validation](https://www.ruby-forum.com/t/conditional-validation/127277)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [January 28, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/conditional-validation/127277 "2008-01-28T17:22:53Z")

</div>

Hi, How can I validate user info under certain conditions? For example, I just downloaded a plug-in that allows me to validate phone numbers, but what I would like is to only validate the phone number if it is not b…

---

## [Best blogging app?](https://www.ruby-forum.com/t/best-blogging-app/127324)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 1\
**Last updated:** [January 28, 2008, 5:14pm UTC](https://www.ruby-forum.com/t/best-blogging-app/127324 "2008-01-28T17:14:37Z")

</div>

I know this is a dumb question, but I am about to start a blog and wanted to know the best app to do this that is done in rails. Thanks!

---

## [Am I doing it right?](https://www.ruby-forum.com/t/am-i-doing-it-right/127364)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 5:12pm UTC](https://www.ruby-forum.com/t/am-i-doing-it-right/127364 "2008-01-28T17:12:56Z")

</div>

I’m finding I’m increasingly creating sites in a similar form and I’d like to clarify if I’m doing it in the most efficient manner for security management and generally a railsey approach. I make a welcome controller …

---

## [Rails 2.0.2 - quoted\_table\_name problem](https://www.ruby-forum.com/t/rails-2-0-2-quoted-table-name-problem/127103)

<div class="topic-metadata">

**Author:** [@kxkannan](https://www.ruby-forum.com/u/kxkannan)\
**Replies:** 5\
**Last updated:** [January 28, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/rails-2-0-2-quoted-table-name-problem/127103 "2008-01-28T16:32:23Z")

</div>

Hello, I am trying to upgrade existing Rails codebase from Rails 1.2.5 to Rails 2.0.2. My db is mysql. I ran into a “table not found” error after upgrading in one of the test cases which works perfectly under 1.2.…

---

## [Gettext 1.10: uninitialized constant ApplicationController](https://www.ruby-forum.com/t/gettext-1-10-uninitialized-constant-applicationcontroller/127358)

<div class="topic-metadata">

**Author:** [@shayantani](https://www.ruby-forum.com/u/shayantani)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 4:09pm UTC](https://www.ruby-forum.com/t/gettext-1-10-uninitialized-constant-applicationcontroller/127358 "2008-01-28T16:09:43Z")

</div>

When running rake updatepo with gettext 1.10, for several controllers it gives Ignored ‘app/controllers/sample\_controller.rb’. Solve dependencies first. /Users/sava/code/sht/trunk/vendor/rails/activerecord/lib/…/…/ac…

---

## [Updating model in migration not working](https://www.ruby-forum.com/t/updating-model-in-migration-not-working/127357)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/updating-model-in-migration-not-working/127357 "2008-01-28T15:57:57Z")

</div>

Hi there I have a model that needs to get an extra field. So, I created a migration to add the field add\_column :my\_models, :my\_field, :string This works fine as per usual. However, I want to populate the field with …

---

## [Where did capistrano 2 'update\_current' go?](https://www.ruby-forum.com/t/where-did-capistrano-2-update-current-go/127355)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 3:34pm UTC](https://www.ruby-forum.com/t/where-did-capistrano-2-update-current-go/127355 "2008-01-28T15:34:41Z")

</div>

This is annoying, changeset 6313 in rubyonrails just deleted the methods (http://dev.rubyonrails.org/changeset/6313#file4). What was the idea behind this decision ? How are we supposed to create an ‘update\_current’ ta…

---

## [Help with PDF:Writer (write in new page)](https://www.ruby-forum.com/t/help-with-pdf-writer-write-in-new-page/127341)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 2\
**Last updated:** [January 28, 2008, 3:25pm UTC](https://www.ruby-forum.com/t/help-with-pdf-writer-write-in-new-page/127341 "2008-01-28T15:25:29Z")

</div>

I want to do a list of reports, so each report should be in a different pdf page. How can I make that I want to finishing writing in the current page and I want the rest of the pdf in another page, but in the same do…

---

## [Reading Validation fields](https://www.ruby-forum.com/t/reading-validation-fields/127354)

<div class="topic-metadata">

**Author:** [@Anup\_Narkhede](https://www.ruby-forum.com/u/Anup_Narkhede)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 3:24pm UTC](https://www.ruby-forum.com/t/reading-validation-fields/127354 "2008-01-28T15:24:37Z")

</div>

Hey Guys, I am wondering if there is a way to read validation attributes from an activerecord model. For example: I write validates\_presence\_of :user, :email, :password Can I access these attributes as an array in r…

---

## [POST params recognised but NULs entered in table?](https://www.ruby-forum.com/t/post-params-recognised-but-nuls-entered-in-table/127088)

<div class="topic-metadata">

**Author:** [@petem](https://www.ruby-forum.com/u/petem)\
**Replies:** 13\
**Last updated:** [January 28, 2008, 3:05pm UTC](https://www.ruby-forum.com/t/post-params-recognised-but-nuls-entered-in-table/127088 "2008-01-28T15:05:49Z")

</div>

Can someone please help. I do HTTP POST with 3 data items the log below shows they are recognised but the save into the table is enterng NULs. Indeed a query on the db then shows a bunch of NULs. Why isn’t the correct …

---

## [New Admin Generator based on EXTJS](https://www.ruby-forum.com/t/new-admin-generator-based-on-extjs/127343)

<div class="topic-metadata">

**Author:** [@ventura](https://www.ruby-forum.com/u/ventura)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 2:19pm UTC](https://www.ruby-forum.com/t/new-admin-generator-based-on-extjs/127343 "2008-01-28T14:19:32Z")

</div>

Hello world, I make a usefull plugin is like a scaffold but it create an entirely backend for yours admin apps. The layout of page, grids, and other things are build on EXT JS framework with prototype adapter so u do…

---

## [Localization optimizing issue](https://www.ruby-forum.com/t/localization-optimizing-issue/127342)

<div class="topic-metadata">

**Author:** [@myst\_tt](https://www.ruby-forum.com/u/myst_tt)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 1:53pm UTC](https://www.ruby-forum.com/t/localization-optimizing-issue/127342 "2008-01-28T13:53:37Z")

</div>

Hello, there: My website would like to offer both Chinese and English version, and “Localization” plug-in is utilized. However, by the site growing up, I am more and more realizing that the translation file is a mess …

---

## [Problem in Attachement\_fu... help](https://www.ruby-forum.com/t/problem-in-attachement-fu-help/126881)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 9\
**Last updated:** [January 28, 2008, 1:31pm UTC](https://www.ruby-forum.com/t/problem-in-attachement-fu-help/126881 "2008-01-28T13:31:22Z")

</div>

Hello, i’m using the very popular attachment\_fu plugin, almost everything is awesome. But I spend all day to make attachment\_fu update a existing file with no success. I’m doing simple upload where my model product …

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

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