# Rails

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

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

---

## [Redirecting in Mongrel](https://www.ruby-forum.com/t/redirecting-in-mongrel/108639)

<div class="topic-metadata">

**Author:** [@maurice-gladwell](https://www.ruby-forum.com/u/maurice-gladwell)\
**Replies:** 0\
**Last updated:** [July 5, 2007, 3:39pm UTC](https://www.ruby-forum.com/t/redirecting-in-mongrel/108639 "2007-07-05T15:39:21Z")

</div>

I’m setting up a website with Mongrel. One of the requirements is for URLs to be redirected to different files than they usually would, e.g.: http://example.com/users/show/123-king-kong Would actually look for the ca…

---

## [Deprec + usermod invalid option -a](https://www.ruby-forum.com/t/deprec-usermod-invalid-option-a/108627)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 2\
**Last updated:** [July 5, 2007, 3:38pm UTC](https://www.ruby-forum.com/t/deprec-usermod-invalid-option-a/108627 "2007-07-05T15:38:06Z")

</div>

Hi, i currently try to setup an rails project with deprec (http://deprec.org). i have executed the command “deprec --apply-to .” in my rails project directory and edited the condig/deploy.rb. Then i have tried “cap i…

---

## [Binding an array to multiple text fields in a form](https://www.ruby-forum.com/t/binding-an-array-to-multiple-text-fields-in-a-form/108584)

<div class="topic-metadata">

**Author:** [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Replies:** 2\
**Last updated:** [July 5, 2007, 3:37pm UTC](https://www.ruby-forum.com/t/binding-an-array-to-multiple-text-fields-in-a-form/108584 "2007-07-05T15:37:20Z")

</div>

I have a model that has the following classes: ShoppingList, Item and Product. – Product is just a list of product names: Apple, Orange, Banana, Pear, Grape. The table has two columns: ID and NAME. – A ShoppingLis…

---

## [Problem with Redbox](https://www.ruby-forum.com/t/problem-with-redbox/108599)

<div class="topic-metadata">

**Author:** [@unnikrishnanes](https://www.ruby-forum.com/u/unnikrishnanes)\
**Replies:** 21\
**Last updated:** [July 5, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599 "2007-07-05T15:11:12Z")

</div>

I have the following code \<%= stylesheet\_link\_tag ‘redbox’ %\> \<%= javascript\_include\_tag :defaults %\> \<%= javascript\_include\_tag ‘redbox’ %\> \<%= link\_to\_redbox 'Login','magic' %\> unnikrishnan but when i run th…

---

## [Foreign Keys in Migrations](https://www.ruby-forum.com/t/foreign-keys-in-migrations/108623)

<div class="topic-metadata">

**Author:** [@rawn027](https://www.ruby-forum.com/u/rawn027)\
**Replies:** 1\
**Last updated:** [July 5, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/foreign-keys-in-migrations/108623 "2007-07-05T15:08:17Z")

</div>

Is there a way to create the db schema completely through the ruby syntax in a migration? If i want a relation between table there doesnt seem a way to create it when having the environment table set to :ruby instead …

---

## [Printable Version of a Page](https://www.ruby-forum.com/t/printable-version-of-a-page/108625)

<div class="topic-metadata">

**Author:** [@rafael](https://www.ruby-forum.com/u/rafael)\
**Replies:** 4\
**Last updated:** [July 5, 2007, 2:16pm UTC](https://www.ruby-forum.com/t/printable-version-of-a-page/108625 "2007-07-05T14:16:11Z")

</div>

Hi everybody, may somebody has already an aproach and could help me? I have a app (REST Design) and what I would like to have is a link like “print page” where the actual view can be displayed in a popup and another …

---

## [Install Simplelog for me? (On MT gridserver)](https://www.ruby-forum.com/t/install-simplelog-for-me-on-mt-gridserver/108624)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 5, 2007, 1:59pm UTC](https://www.ruby-forum.com/t/install-simplelog-for-me-on-mt-gridserver/108624 "2007-07-05T13:59:09Z")

</div>

Hi, I really want to use simplelog but i dont know how to install it. I’m looking for someone to help me out and do an install for me. Please let me know if you can do it at removed\_email\_address@domain.invalid Thank…

---

## [How to send a friend request](https://www.ruby-forum.com/t/how-to-send-a-friend-request/108502)

<div class="topic-metadata">

**Author:** [@gow](https://www.ruby-forum.com/u/gow)\
**Replies:** 5\
**Last updated:** [July 5, 2007, 11:20am UTC](https://www.ruby-forum.com/t/how-to-send-a-friend-request/108502 "2007-07-05T11:20:53Z")

</div>

create table friends ( id int not null auto\_increment, user\_id int, friend\_id int, constraint fk\_friends\_accounts foreign key (user\_id) references accounts(id), foreign key (friend\_id) references accounts(id), pr…

---

## [Videos from railsconf 2007](https://www.ruby-forum.com/t/videos-from-railsconf-2007/108616)

<div class="topic-metadata">

**Author:** [@kajism](https://www.ruby-forum.com/u/kajism)\
**Replies:** 0\
**Last updated:** [July 5, 2007, 10:25am UTC](https://www.ruby-forum.com/t/videos-from-railsconf-2007/108616 "2007-07-05T10:25:47Z")

</div>

Hi guys, I am searching in vain for the videos from the railsconf 2007. Does anybody know if there are any plans to put it on the web? Thanks, Karel

---

## [Activerecord time problem](https://www.ruby-forum.com/t/activerecord-time-problem/108588)

<div class="topic-metadata">

**Author:** [@Antti\_Akonniemi](https://www.ruby-forum.com/u/Antti_Akonniemi)\
**Replies:** 1\
**Last updated:** [July 5, 2007, 10:22am UTC](https://www.ruby-forum.com/t/activerecord-time-problem/108588 "2007-07-05T10:22:32Z")

</div>

Hi, I have a strange problem in my hands. My application works correctly for a while (I don’t know actual time but it is hours), but then suddenly created\_at/updated\_at timestamps are stored in UTC and not in the cor…

---

## [Extjs on rails - return value](https://www.ruby-forum.com/t/extjs-on-rails-return-value/108605)

<div class="topic-metadata">

**Author:** [@nesanhere](https://www.ruby-forum.com/u/nesanhere)\
**Replies:** 0\
**Last updated:** [July 5, 2007, 9:39am UTC](https://www.ruby-forum.com/t/extjs-on-rails-return-value/108605 "2007-07-05T09:39:15Z")

</div>

working on extjs on rails for tree structure when creating a node, no value should be returned to the json its giving an alert of the return value def additem @return\_val = Tree.new(:parent\_id=\>params\[:parentID\],:nod…

---

## [Check box id](https://www.ruby-forum.com/t/check-box-id/108601)

<div class="topic-metadata">

**Author:** [@raja](https://www.ruby-forum.com/u/raja)\
**Replies:** 0\
**Last updated:** [July 5, 2007, 8:02am UTC](https://www.ruby-forum.com/t/check-box-id/108601 "2007-07-05T08:02:41Z")

</div>

Hi guys I would like to get the check box id from two different document in iframe? Can i get the check box id? If any body knows just let me know ok Bye By Raja

---

## [Web api question](https://www.ruby-forum.com/t/web-api-question/108589)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 3\
**Last updated:** [July 5, 2007, 5:48am UTC](https://www.ruby-forum.com/t/web-api-question/108589 "2007-07-05T05:48:25Z")

</div>

I’m looking at the best type of api to create for a particular project. Although this isn’t really ruby/rails specific other then it will be written in ruby, it’s probably an area that many people on this list deal w…

---

## [Easy question](https://www.ruby-forum.com/t/easy-question/108585)

<div class="topic-metadata">

**Author:** [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Replies:** 2\
**Last updated:** [July 5, 2007, 5:05am UTC](https://www.ruby-forum.com/t/easy-question/108585 "2007-07-05T05:05:23Z")

</div>

How can I get the list of available fonts on a system in Ruby? It seems like there should be a built-in function that does it. Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.

---

## [Sqlite3.3.7 gives "SQL logic error or missing database"](https://www.ruby-forum.com/t/sqlite3-3-7-gives-sql-logic-error-or-missing-database/108587)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 0\
**Last updated:** [July 5, 2007, 4:48am UTC](https://www.ruby-forum.com/t/sqlite3-3-7-gives-sql-logic-error-or-missing-database/108587 "2007-07-05T04:48:21Z")

</div>

Railsters: I ported a working project to a new hard drive, and had such a pleasant afternoon with this issue: http://www.railsweenie.com/forums/5/topics/1496 The bug report says the problem is pilot error. However, …

---

## [Content\_type from a local file?](https://www.ruby-forum.com/t/content-type-from-a-local-file/108563)

<div class="topic-metadata">

**Author:** [@trevorturk](https://www.ruby-forum.com/u/trevorturk)\
**Replies:** 2\
**Last updated:** [July 5, 2007, 4:26am UTC](https://www.ruby-forum.com/t/content-type-from-a-local-file/108563 "2007-07-05T04:26:52Z")

</div>

I’m using a Rake task to add local files into a database designed for use with attachment\_fu. http://eldorado.googlecode.com/svn/trunk/db/migrate/039\_create\_avatars.rb http://eldorado.googlecode.com/svn/trunk/lib/task…

---

## [Method chaining and RJS templates](https://www.ruby-forum.com/t/method-chaining-and-rjs-templates/108458)

<div class="topic-metadata">

**Author:** [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Replies:** 13\
**Last updated:** [July 5, 2007, 4:14am UTC](https://www.ruby-forum.com/t/method-chaining-and-rjs-templates/108458 "2007-07-05T04:14:53Z")

</div>

Hi Ex, how do I get the empty\_cart.rjs template to be ‘fired’ when I do this in my controller. my Controller class SomeController \< ApplicationController def remove\_from\_cart if quantity \<= 0 empty\_care else foo …

---

## [CLDR and Globalize](https://www.ruby-forum.com/t/cldr-and-globalize/108581)

<div class="topic-metadata">

**Author:** [@Patrick\_Hall](https://www.ruby-forum.com/u/Patrick_Hall)\
**Replies:** 0\
**Last updated:** [July 5, 2007, 12:41am UTC](https://www.ruby-forum.com/t/cldr-and-globalize/108581 "2007-07-05T00:41:10Z")

</div>

Hi folks, I have been digging around in various i18n packages, and so far my team is leaning toward Globalize, it seems like an active and usable project. Question: How is the data in globalize/trunk/data/ populated…

---

## [\[ANN\] flatulent-0.0.2 - ajax gets stinky](https://www.ruby-forum.com/t/ann-flatulent-0-0-2-ajax-gets-stinky/108580)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 0\
**Last updated:** [July 4, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/ann-flatulent-0-0-2-ajax-gets-stinky/108580 "2007-07-04T23:55:08Z")

</div>

NAME flatulent : CAPTCHA for FIGLET. SYNOPSIS the flatulent gem provides brain dead simple to use, but internally cunning, ascii art captcha for ruby. URI http://codeforpeople.com/lib/ruby http://rubyforge.org/pr…

---

## [Basic question about belongs\_to](https://www.ruby-forum.com/t/basic-question-about-belongs-to/108564)

<div class="topic-metadata">

**Author:** [@surge](https://www.ruby-forum.com/u/surge)\
**Replies:** 3\
**Last updated:** [July 4, 2007, 8:49pm UTC](https://www.ruby-forum.com/t/basic-question-about-belongs-to/108564 "2007-07-04T20:49:45Z")

</div>

Hello, I’ve got three tables: site { id name, customer\_id } building { id, site\_id, name } equipment { id, building\_id, name } In my building model I have “belongs\_to :site” and in my equipment model I …

---

## [HOW I: Wrap content sections using blocks and then nest them](https://www.ruby-forum.com/t/how-i-wrap-content-sections-using-blocks-and-then-nest-them/108566)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 0\
**Last updated:** [July 4, 2007, 7:47pm UTC](https://www.ruby-forum.com/t/how-i-wrap-content-sections-using-blocks-and-then-nest-them/108566 "2007-07-04T19:47:40Z")

</div>

This is the type of code that I’m excited when it works but hopefully will get some suggestions on how to do it better. Last time, the code was a bit to “ferocious” and I was missing out on a built in feature to rai…

---

## [Stack level too deep](https://www.ruby-forum.com/t/stack-level-too-deep/108515)

<div class="topic-metadata">

**Author:** [@mpalluat](https://www.ruby-forum.com/u/mpalluat)\
**Replies:** 5\
**Last updated:** [July 4, 2007, 7:27pm UTC](https://www.ruby-forum.com/t/stack-level-too-deep/108515 "2007-07-04T19:27:38Z")

</div>

Hi, I have a SystemStackError. Here is the stack (sorry if it’s a little long) : app/models/line\_item.rb:14:in \`product’ app/models/line\_item.rb:14:in \`product’ app/controllers/store\_controller.rb:188:in \`redirect\_t…

---

## [Delete help needed](https://www.ruby-forum.com/t/delete-help-needed/108560)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 0\
**Last updated:** [July 4, 2007, 5:56pm UTC](https://www.ruby-forum.com/t/delete-help-needed/108560 "2007-07-04T17:56:26Z")

</div>

I have a contact management system where I have “items” and “relationships”. The relationship is the glue between items. It has two polymorphic belongs\_to called parent and child that link to an item. An item can be…

---

## [Using link\_to in the controller, or, how do I embed a link i](https://www.ruby-forum.com/t/using-link-to-in-the-controller-or-how-do-i-embed-a-link-i/108555)

<div class="topic-metadata">

**Author:** [@Spence\_Akiri](https://www.ruby-forum.com/u/Spence_Akiri)\
**Replies:** 0\
**Last updated:** [July 4, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/using-link-to-in-the-controller-or-how-do-i-embed-a-link-i/108555 "2007-07-04T17:40:27Z")

</div>

For things like flash\[:etc\], and other dynamic text sent from the controller, how do you embed links? I’ve currently fallen back on actually embedding HTML, but as routes may change, this doesn’t seem like a good prac…

---

## [Rails + Gettext problem](https://www.ruby-forum.com/t/rails-gettext-problem/108488)

<div class="topic-metadata">

**Author:** [@guilherme](https://www.ruby-forum.com/u/guilherme)\
**Replies:** 7\
**Last updated:** [July 4, 2007, 5:14pm UTC](https://www.ruby-forum.com/t/rails-gettext-problem/108488 "2007-07-04T17:14:24Z")

</div>

Hello, I had to format my pc, and now i can´t get Rails + Gettext to work… Any ideas? Tnx for the help, Guilherme NameError uninitialized constant System RAILS\_ROOT: ./script/…/config/… Application Trace | Framew…

---

## [facebook.notifications.sendRequest related question](https://www.ruby-forum.com/t/facebook-notifications-sendrequest-related-question/108010)

<div class="topic-metadata">

**Author:** [@arjun\_ghosh](https://www.ruby-forum.com/u/arjun_ghosh)\
**Replies:** 4\
**Last updated:** [July 4, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/facebook-notifications-sendrequest-related-question/108010 "2007-07-04T17:11:12Z")

</div>

Hi, Has any one successfully used facebook.notifications.sendRequest in sending request in rails. If any one can throw any light it would be a great help. When ever i googled this i get only in PHP based. I am doing …

---

## [Validation on special characters](https://www.ruby-forum.com/t/validation-on-special-characters/108549)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 0\
**Last updated:** [July 4, 2007, 4:33pm UTC](https://www.ruby-forum.com/t/validation-on-special-characters/108549 "2007-07-04T16:33:19Z")

</div>

Hello, I'm trying to make a validation that catches special latin chars that cause Mysql errors. Here’s what I’ve been trying so far: validates\_format\_of :title, :with=\>/\\A\[^#\]/, :message=\>‘must not start with a …

---

## [List image](https://www.ruby-forum.com/t/list-image/108537)

<div class="topic-metadata">

**Author:** [@abdulKamel](https://www.ruby-forum.com/u/abdulKamel)\
**Replies:** 6\
**Last updated:** [July 4, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/list-image/108537 "2007-07-04T16:30:18Z")

</div>

Hi, i’m trying to list an image taking the url from the DB. The code is: \<img src=’\<%= image.image\_url %\>’ width="50"height=“75”\> but it doesn’t show nothing… Can somebody help me?? thanks in advance

---

## [Escaping/stripping all user HTML input](https://www.ruby-forum.com/t/escaping-stripping-all-user-html-input/108074)

<div class="topic-metadata">

**Author:** [@luis](https://www.ruby-forum.com/u/luis)\
**Replies:** 1\
**Last updated:** [July 4, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/escaping-stripping-all-user-html-input/108074 "2007-07-04T16:27:18Z")

</div>

(Some of you may be reading this twice as I accidentally posted this to ruby talk) I am writing an application where I know that I do not need to allow any HTML input from a user. I am considering using before\_filter…

---

## [How to process request from another domain](https://www.ruby-forum.com/t/how-to-process-request-from-another-domain/108462)

<div class="topic-metadata">

**Author:** [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Replies:** 2\
**Last updated:** [July 4, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/how-to-process-request-from-another-domain/108462 "2007-07-04T16:23:17Z")

</div>

Hi, In my application a mobile device sends a request to tomcat servlet, and then the servlet needs to send a request to a rails controller method for some processing to be done. After the processing the rails will se…

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

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