# Rails

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

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

---

## [Database modelling tool for Mac](https://www.ruby-forum.com/t/database-modelling-tool-for-mac/139268)

<div class="topic-metadata">

**Author:** [@johan](https://www.ruby-forum.com/u/johan)\
**Replies:** 2\
**Last updated:** [June 2, 2008, 10:24pm UTC](https://www.ruby-forum.com/t/database-modelling-tool-for-mac/139268 "2008-06-02T22:24:56Z")

</div>

Hi all! My first post to the list. I’m looking for a database modeling tool for Mac. I’m running a mysql database for my rails app and I would like to be able to model my schema in a GUI and the export the model as S…

---

## [FasterCSV will not parse my data](https://www.ruby-forum.com/t/fastercsv-will-not-parse-my-data/139210)

<div class="topic-metadata">

**Author:** [@laserwhit](https://www.ruby-forum.com/u/laserwhit)\
**Replies:** 5\
**Last updated:** [June 2, 2008, 10:17pm UTC](https://www.ruby-forum.com/t/fastercsv-will-not-parse-my-data/139210 "2008-06-02T22:17:05Z")

</div>

I’m dumping my mysql data to a csv file using the following command: sql.execute( “SELECT \* FROM #{name} INTO OUTFILE ‘#{outfile}’ FIELDS ESCAPED BY ‘\\\\’ TERMINATED BY ‘,’ ENCLOSED BY '”’ LINES TERMINATED BY ‘\\n’") …

---

## [Updating data from a relation](https://www.ruby-forum.com/t/updating-data-from-a-relation/139317)

<div class="topic-metadata">

**Author:** [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Replies:** 0\
**Last updated:** [June 2, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/updating-data-from-a-relation/139317 "2008-06-02T22:05:10Z")

</div>

Hello i got this: Ex: Member name phone rel\_member\_id rel\_members id member\_id membership\_id Memberships id name another\_data Now in my edit.rhtml.erb i got al the stuff… and this: \<%=select ‘rel\_members’,‘m…

---

## [Best behaviour for an association builder](https://www.ruby-forum.com/t/best-behaviour-for-an-association-builder/139314)

<div class="topic-metadata">

**Author:** [@mjacobs](https://www.ruby-forum.com/u/mjacobs)\
**Replies:** 0\
**Last updated:** [June 2, 2008, 9:21pm UTC](https://www.ruby-forum.com/t/best-behaviour-for-an-association-builder/139314 "2008-06-02T21:21:33Z")

</div>

Hi there, I have a solution for this, but I don’t like the way it returns its result. listing.attach\_file(file, description, category\_ids) -\> \[“the file is not a valid type”, “category:17 doesn’t exist”\] in the ca…

---

## [Rails and DB2 for z/OS](https://www.ruby-forum.com/t/rails-and-db2-for-z-os/139299)

<div class="topic-metadata">

**Author:** [@Jorg\_L](https://www.ruby-forum.com/u/Jorg_L)\
**Replies:** 0\
**Last updated:** [June 2, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/rails-and-db2-for-z-os/139299 "2008-06-02T18:50:24Z")

</div>

I am new to RoR and I do like it a lot for dellivering data centric web applications. It is much better than what I’ve been used to. One area I am interested in is the behavior with DB2, including zOS. I have gotte…

---

## [Validate - message in the flash\[:error\]](https://www.ruby-forum.com/t/validate-message-in-the-flash-error/139292)

<div class="topic-metadata">

**Author:** [@eddy\_b](https://www.ruby-forum.com/u/eddy_b)\
**Replies:** 5\
**Last updated:** [June 2, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/validate-message-in-the-flash-error/139292 "2008-06-02T17:43:04Z")

</div>

Hi, I want to show the validate - message in the flash\[:error\] - field but I can’t find any options. An example: class UserPermission \< ActiveRecord::Base validates\_presence\_of :name, :message =\> “Please insert a n…

---

## [Immutable migrations and regular ruby code](https://www.ruby-forum.com/t/immutable-migrations-and-regular-ruby-code/139286)

<div class="topic-metadata">

**Author:** [@moisesmachado](https://www.ruby-forum.com/u/moisesmachado)\
**Replies:** 3\
**Last updated:** [June 2, 2008, 5:41pm UTC](https://www.ruby-forum.com/t/immutable-migrations-and-regular-ruby-code/139286 "2008-06-02T17:41:34Z")

</div>

Guys, I was working on a rails project and run into a nasty problem, I was writing a migration that saved a model’s data in another model and then destroys it’s table the up code looks like AnotherModel.find(:all) …

---

## [Keyword search](https://www.ruby-forum.com/t/keyword-search/139272)

<div class="topic-metadata">

**Author:** [@staypufd](https://www.ruby-forum.com/u/staypufd)\
**Replies:** 4\
**Last updated:** [June 2, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/keyword-search/139272 "2008-06-02T17:17:39Z")

</div>

I’m having trouble trying to implement a basic keyword search in my app. I’m trying to search through multiple tables. I m using a vendor plugin for the conditions(which should not effect the search). The associatio…

---

## [How do ROR developers work with designers?](https://www.ruby-forum.com/t/how-do-ror-developers-work-with-designers/139128)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 16\
**Last updated:** [June 2, 2008, 5:10pm UTC](https://www.ruby-forum.com/t/how-do-ror-developers-work-with-designers/139128 "2008-06-02T17:10:27Z")

</div>

Hi everyone- I’ve developed a site with ROR, I thought I was ready to launch after a few hours of design. Boy was I wrong. I finally hired a guy in Pakistan to do the design. He came back with a beautiful design for …

---

## [RESTful controllers... seriously?](https://www.ruby-forum.com/t/restful-controllers-seriously/139245)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 5\
**Last updated:** [June 2, 2008, 5:08pm UTC](https://www.ruby-forum.com/t/restful-controllers-seriously/139245 "2008-06-02T17:08:37Z")

</div>

I’m in an argument with a developer I’m working with. We’re developing an app with no API and quite a bit of AJAX. He wants to use restful controllers everywhere. This annoys me. Right now we have one page that is ref…

---

## [Another rewrite question](https://www.ruby-forum.com/t/another-rewrite-question/139284)

<div class="topic-metadata">

**Author:** [@der\_guido](https://www.ruby-forum.com/u/der_guido)\
**Replies:** 0\
**Last updated:** [June 2, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/another-rewrite-question/139284 "2008-06-02T16:54:23Z")

</div>

Hi there, my rewrite-rule is RewriteRule ^01,(\[0-9\]\*).html$ shop/event/$1/ \[L\] itÂ´s an old rule from my php-site RewriteRule ^01,(\[0-9\]\*).html$ index2.php?event=$1 \[L\] but it doesÂ´nt work the normal url is myapp.…

---

## [Problem deploying on Site5](https://www.ruby-forum.com/t/problem-deploying-on-site5/139194)

<div class="topic-metadata">

**Author:** [@naevity](https://www.ruby-forum.com/u/naevity)\
**Replies:** 3\
**Last updated:** [June 2, 2008, 4:21pm UTC](https://www.ruby-forum.com/t/problem-deploying-on-site5/139194 "2008-06-02T16:21:39Z")

</div>

I’m finally ready to deploy my site, and I’m having some problems. I’ve been able to upload the application and SSH in to run the commands to put it into production mode, but when I try to run the rake db:migrate comm…

---

## [How would you suggest ADMIN update non-attr\_accessible fields?](https://www.ruby-forum.com/t/how-would-you-suggest-admin-update-non-attr-accessible-fields/139195)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [June 2, 2008, 4:13pm UTC](https://www.ruby-forum.com/t/how-would-you-suggest-admin-update-non-attr-accessible-fields/139195 "2008-06-02T16:13:19Z")

</div>

I am using Restful\_Authentication and stumbled upon their use of attr\_accessible in the USER model. When I tried to migrate test USER records into my database and found that any non-attr\_accessible field could not be …

---

## [Site is Down! Please help!](https://www.ruby-forum.com/t/site-is-down-please-help/139277)

<div class="topic-metadata">

**Author:** [@Vertigo](https://www.ruby-forum.com/u/Vertigo)\
**Replies:** 2\
**Last updated:** [June 2, 2008, 3:37pm UTC](https://www.ruby-forum.com/t/site-is-down-please-help/139277 "2008-06-02T15:37:50Z")

</div>

Hi everyone! I sort of inherited the management of a Ruby Website running on a Mac and I have not had too much time to get onboard the rails! Long story short, we had a power failure and upon restarting the server…ou…

---

## [Books belongs\_to authors. How to find only author with books](https://www.ruby-forum.com/t/books-belongs-to-authors-how-to-find-only-author-with-books/139212)

<div class="topic-metadata">

**Author:** [@ferblape](https://www.ruby-forum.com/u/ferblape)\
**Replies:** 7\
**Last updated:** [June 2, 2008, 3:34pm UTC](https://www.ruby-forum.com/t/books-belongs-to-authors-how-to-find-only-author-with-books/139212 "2008-06-02T15:34:16Z")

</div>

Hello I have a table called Books And a table called Authors Books belong\_to authors How can I find only authors that have books? Thanks

---

## [Globalite](https://www.ruby-forum.com/t/globalite/139276)

<div class="topic-metadata">

**Author:** [@sneha](https://www.ruby-forum.com/u/sneha)\
**Replies:** 1\
**Last updated:** [June 2, 2008, 3:33pm UTC](https://www.ruby-forum.com/t/globalite/139276 "2008-06-02T15:33:40Z")

</div>

Hi, I am new at ruby on rails. Currently i am working on an rails 2.0.2 application which needs to be globalised. For the purpose i am using globalite plugin. I do have a fair idea about using it But my problem is t…

---

## [How to send an email with an Attachment?](https://www.ruby-forum.com/t/how-to-send-an-email-with-an-attachment/139270)

<div class="topic-metadata">

**Author:** [@shani1984](https://www.ruby-forum.com/u/shani1984)\
**Replies:** 0\
**Last updated:** [June 2, 2008, 2:39pm UTC](https://www.ruby-forum.com/t/how-to-send-an-email-with-an-attachment/139270 "2008-06-02T14:39:17Z")

</div>

Hi… I try to send an email with an attachment. I could be able to send the Attachment. But it was an empty one . What could be the problem . Here is the code that i have used . Please help me to solve this problem . d…

---

## [Evaluate ruby code inside javascript](https://www.ruby-forum.com/t/evaluate-ruby-code-inside-javascript/139262)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [June 2, 2008, 12:42pm UTC](https://www.ruby-forum.com/t/evaluate-ruby-code-inside-javascript/139262 "2008-06-02T12:42:31Z")

</div>

Hi I was trying to call a javascript function.I have text areas like transfer\_reason1 transfer\_reason2 etc in each divs div number is available as variable div\_no in the page…How can I pass the textarea content to …

---

## [Automating user-specific stamps on records](https://www.ruby-forum.com/t/automating-user-specific-stamps-on-records/139141)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 8\
**Last updated:** [June 2, 2008, 12:26pm UTC](https://www.ruby-forum.com/t/automating-user-specific-stamps-on-records/139141 "2008-06-02T12:26:03Z")

</div>

So, given the opinion of Rails-core regarding the it’s-a-feature-not- a-bug lack of access of the session to models, what has been the “rails way” of dealing with these cases: – stamping records with created\_by and up…

---

## [Text\_area\_tag](https://www.ruby-forum.com/t/text-area-tag/139258)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [June 2, 2008, 11:58am UTC](https://www.ruby-forum.com/t/text-area-tag/139258 "2008-06-02T11:58:58Z")

</div>

Hi How can I set value for text\_area\_tag…I tried \<%= text\_area\_tag “transfer\_reason#{div\_no}”, nil, :size =\> “50x1”, “value”=\>params\[:transfer\_reason\] %\> But not working Thanks in advance Sijo

---

## [Helper :all does not include Modules](https://www.ruby-forum.com/t/helper-all-does-not-include-modules/139244)

<div class="topic-metadata">

**Author:** [@Thomas\_E](https://www.ruby-forum.com/u/Thomas_E)\
**Replies:** 2\
**Last updated:** [June 2, 2008, 11:24am UTC](https://www.ruby-forum.com/t/helper-all-does-not-include-modules/139244 "2008-06-02T11:24:49Z")

</div>

Greetings list, I was wondering if any of you are unable to call “helper” methods in your controllers even though application.rb has a call to “helper :all”? My views are able to call the methods but my controllers a…

---

## [Rails 2.1 and render :action](https://www.ruby-forum.com/t/rails-2-1-and-render-action/139230)

<div class="topic-metadata">

**Author:** [@rubynuby](https://www.ruby-forum.com/u/rubynuby)\
**Replies:** 1\
**Last updated:** [June 2, 2008, 11:22am UTC](https://www.ruby-forum.com/t/rails-2-1-and-render-action/139230 "2008-06-02T11:22:26Z")

</div>

I just updated to rails 2.1 and it seems render :action with a relative path no longer works. I.e., render :action =\> ‘dosomething’ is okay, but render :action =\> ‘…/shared/dosomething’ throws a template not found …

---

## [Rails 2.0.2, routes with id and slug separated?](https://www.ruby-forum.com/t/rails-2-0-2-routes-with-id-and-slug-separated/139133)

<div class="topic-metadata">

**Author:** [@laserwhit](https://www.ruby-forum.com/u/laserwhit)\
**Replies:** 9\
**Last updated:** [June 2, 2008, 11:04am UTC](https://www.ruby-forum.com/t/rails-2-0-2-routes-with-id-and-slug-separated/139133 "2008-06-02T11:04:46Z")

</div>

I have a route like so: map.resources :articles And I need to be able to have a URL like: /article/:id/:slug Is there any way to do this without messing with view code? I’ve looked around at route documentation and…

---

## [Updating Rubygems package in Ubuntu Hardy - help please](https://www.ruby-forum.com/t/updating-rubygems-package-in-ubuntu-hardy-help-please/139253)

<div class="topic-metadata">

**Author:** [@neilw](https://www.ruby-forum.com/u/neilw)\
**Replies:** 0\
**Last updated:** [June 2, 2008, 10:27am UTC](https://www.ruby-forum.com/t/updating-rubygems-package-in-ubuntu-hardy-help-please/139253 "2008-06-02T10:27:33Z")

</div>

I’ve started the process to backport the Rubygems 1.1.1 package to Ubuntu Hardy and I need lots of people to test out the new package before I can get the archivists to update the repository. (See UbuntuBackports - Co…

---

## [Storing search results of user in database](https://www.ruby-forum.com/t/storing-search-results-of-user-in-database/138861)

<div class="topic-metadata">

**Author:** [@remco123](https://www.ruby-forum.com/u/remco123)\
**Replies:** 3\
**Last updated:** [June 2, 2008, 10:18am UTC](https://www.ruby-forum.com/t/storing-search-results-of-user-in-database/138861 "2008-06-02T10:18:55Z")

</div>

Hi, I just implemented the advanced search functionality described in Does someone you have some links where i can find information about storing the user’s search results in the database and show them when they log…

---

## [Passing a text area value with link\_to\_remote](https://www.ruby-forum.com/t/passing-a-text-area-value-with-link-to-remote/139239)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 3\
**Last updated:** [June 2, 2008, 9:53am UTC](https://www.ruby-forum.com/t/passing-a-text-area-value-with-link-to-remote/139239 "2008-06-02T09:53:23Z")

</div>

Hi I have a link\_to\_re,ote function as \<%= link\_to\_remote( “Select”, {:update=\>“div\_inside\_transfer\_reason#{div\_no}”,:url =\>{ :controller =\> ‘popup’, :action =\> ‘search\_primary\_group\_ui’,:flow\_item=\>flow\_item.flow\_i…

---

## [RESTful controllers... seriously?](https://www.ruby-forum.com/t/restful-controllers-seriously/139248)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 0\
**Last updated:** [June 2, 2008, 9:14am UTC](https://www.ruby-forum.com/t/restful-controllers-seriously/139248 "2008-06-02T09:14:32Z")

</div>

Back during private beta I think someone told me that mint is using yodlee for account aggregation (yodlee’s moneycenter has awesome functionality, crap UI). How does yodlee do it? No idea. Oh, this is interesting: h…

---

## [SimpleRSS how do you read dc:date attribute](https://www.ruby-forum.com/t/simplerss-how-do-you-read-dc-date-attribute/139247)

<div class="topic-metadata">

**Author:** [@Kriya](https://www.ruby-forum.com/u/Kriya)\
**Replies:** 0\
**Last updated:** [June 2, 2008, 9:14am UTC](https://www.ruby-forum.com/t/simplerss-how-do-you-read-dc-date-attribute/139247 "2008-06-02T09:14:32Z")

</div>

I used simpleRSS to parse my rss and I need to read feedburner:origLink tag. But simpleRSS doesn’t have that. I added this to @@item\_tags in the source code. But once I read the feed, the RSS content that is returned …

---

## [Rails Framework](https://www.ruby-forum.com/t/rails-framework/139246)

<div class="topic-metadata">

**Author:** [@murs](https://www.ruby-forum.com/u/murs)\
**Replies:** 0\
**Last updated:** [June 2, 2008, 9:14am UTC](https://www.ruby-forum.com/t/rails-framework/139246 "2008-06-02T09:14:32Z")

</div>

Hi, I am looking for the class hierarchy diagram of rails framework. Does any body know about it? Thanks Murs

---

## [Exec format error during globalize plugin install](https://www.ruby-forum.com/t/exec-format-error-during-globalize-plugin-install/139137)

<div class="topic-metadata">

**Author:** [@kampers](https://www.ruby-forum.com/u/kampers)\
**Replies:** 2\
**Last updated:** [June 2, 2008, 7:59am UTC](https://www.ruby-forum.com/t/exec-format-error-during-globalize-plugin-install/139137 "2008-06-02T07:59:52Z")

</div>

While trying to install the globalize plugin (website down? – http://www.globalize-rails.org/globalize/) for Rails, all the files seem to be transferred and placed properly, but I get the following error when install.…

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

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