# Rails

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

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

---

## [Adding an onclick option to link\_to method](https://www.ruby-forum.com/t/adding-an-onclick-option-to-link-to-method/129555)

<div class="topic-metadata">

**Author:** [@tblack06](https://www.ruby-forum.com/u/tblack06)\
**Replies:** 1\
**Last updated:** [February 19, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/adding-an-onclick-option-to-link-to-method/129555 "2008-02-19T19:31:15Z")

</div>

Hello, I’m trying to use the rail link\_to to open a popup window and then print the popup window at the same time. Is there a way to add another “onclick” option to tell the popup to print? I know how to do this in…

---

## [Database queries using autocomplete](https://www.ruby-forum.com/t/database-queries-using-autocomplete/129565)

<div class="topic-metadata">

**Author:** [@kkkkkk](https://www.ruby-forum.com/u/kkkkkk)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/database-queries-using-autocomplete/129565 "2008-02-19T18:59:55Z")

</div>

Hello All, I am new to Rails and am unable to figure out how to do multiple table queries to a database using autocomplete forms. I have : Author habtm Books through Works || Book has\_many Chapters || Chapter …

---

## [Tackling Double Rendering](https://www.ruby-forum.com/t/tackling-double-rendering/129524)

<div class="topic-metadata">

**Author:** [@MohsinHijazee](https://www.ruby-forum.com/u/MohsinHijazee)\
**Replies:** 3\
**Last updated:** [February 19, 2008, 6:47pm UTC](https://www.ruby-forum.com/t/tackling-double-rendering/129524 "2008-02-19T18:47:31Z")

</div>

Hi! I am calling a method like this: def index() json = super.get\_customers() respond\_to do |format| format.json { render :json =\> json and return } end end But the problem is that the underlying method …

---

## [ActiveResource for Rails 1.2.6](https://www.ruby-forum.com/t/activeresource-for-rails-1-2-6/129567)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 6:43pm UTC](https://www.ruby-forum.com/t/activeresource-for-rails-1-2-6/129567 "2008-02-19T18:43:30Z")

</div>

Hi there, I am trying to find a plugin for ActiveResource so that we can use in an exisiting Rails 1.2.6 app. We’re not quite ready to upgrade and we need to slot in the AR functionality in the short term. Does anyon…

---

## [Attachment\_fu dynamic max\_size](https://www.ruby-forum.com/t/attachment-fu-dynamic-max-size/129561)

<div class="topic-metadata">

**Author:** [@n1c](https://www.ruby-forum.com/u/n1c)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/attachment-fu-dynamic-max-size/129561 "2008-02-19T18:09:41Z")

</div>

I’m using attachment\_fu for uploading photos. I’d like to set the max\_size parameter based on the user’s account level. So I have a field in the account\_plans table that stores the max\_size allowed for that plan. Thi…

---

## [Multiple Views within subfolders](https://www.ruby-forum.com/t/multiple-views-within-subfolders/128429)

<div class="topic-metadata">

**Author:** [@lundie](https://www.ruby-forum.com/u/lundie)\
**Replies:** 11\
**Last updated:** [February 19, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/multiple-views-within-subfolders/128429 "2008-02-19T17:45:11Z")

</div>

Hi, I am creating an application in which I am allowing users to have customized views of a form. These forms do not have to be customized at this point by the user, but will for now be customized by us, and uploaded…

---

## [Doing find\_by\_sql outside an ActiveRecord object?](https://www.ruby-forum.com/t/doing-find-by-sql-outside-an-activerecord-object/129501)

<div class="topic-metadata">

**Author:** [@pahagon](https://www.ruby-forum.com/u/pahagon)\
**Replies:** 7\
**Last updated:** [February 19, 2008, 5:42pm UTC](https://www.ruby-forum.com/t/doing-find-by-sql-outside-an-activerecord-object/129501 "2008-02-19T17:42:14Z")

</div>

Hi there. I have a little problem here. I have 2 different models. Download: create\_table :downloads do |t| t.column :name, :string, :null =\> false t.column :user, :string, :null =\> false t.column :size, :integer, …

---

## [Run an sql query](https://www.ruby-forum.com/t/run-an-sql-query/129522)

<div class="topic-metadata">

**Author:** [@amitjain](https://www.ruby-forum.com/u/amitjain)\
**Replies:** 6\
**Last updated:** [February 19, 2008, 5:13pm UTC](https://www.ruby-forum.com/t/run-an-sql-query/129522 "2008-02-19T17:13:14Z")

</div>

Hello All, Iam new to Ruby on Rails. I am moving my application to Ruby on rails. Is there an way i can call C++ API from ruby, so that i dont have to do much porting on Ruby on Rails. I have alread an DB and i want …

---

## [Css and ActionMailer](https://www.ruby-forum.com/t/css-and-actionmailer/126641)

<div class="topic-metadata">

**Author:** [@alexr](https://www.ruby-forum.com/u/alexr)\
**Replies:** 8\
**Last updated:** [February 19, 2008, 5:12pm UTC](https://www.ruby-forum.com/t/css-and-actionmailer/126641 "2008-02-19T17:12:20Z")

</div>

Hello! I’ve been trying to send html with css emails with ActionMailer, the html part goes perfect, but the css doesn’t seem to work. I have tried using and also embeding it in the html, like this: body { .... } b…

---

## [Attachment\_fu - public\_filename in Controller](https://www.ruby-forum.com/t/attachment-fu-public-filename-in-controller/129514)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 19, 2008, 4:58pm UTC](https://www.ruby-forum.com/t/attachment-fu-public-filename-in-controller/129514 "2008-02-19T16:58:27Z")

</div>

My brain hurts, please help. I’ve beaten my head against the wall for hours trying to figure out why I cant get the public\_filename is only accessible from the views? I need to get the full file path in the controlle…

---

## [Apache with fastCGI or Apache mod proxy with mongrel](https://www.ruby-forum.com/t/apache-with-fastcgi-or-apache-mod-proxy-with-mongrel/129540)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [February 19, 2008, 4:57pm UTC](https://www.ruby-forum.com/t/apache-with-fastcgi-or-apache-mod-proxy-with-mongrel/129540 "2008-02-19T16:57:51Z")

</div>

Hi I would like to setup a new production server on rails.I prefer apache for web server.Can anybody suggest me that apache web server with Fast CGI or Apache with mod proxy + mongrel which is the best ?Also please s…

---

## [Css to text\_field](https://www.ruby-forum.com/t/css-to-text-field/129361)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 3\
**Last updated:** [February 19, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/css-to-text-field/129361 "2008-02-19T16:30:42Z")

</div>

Hello, I know it is very simple but please can anyone tell me how do i add a css style to a text box… This is the css style .textbox1 { font-family:verdana; font-size: large; font-weight:bold…

---

## [Adding permissions](https://www.ruby-forum.com/t/adding-permissions/129486)

<div class="topic-metadata">

**Author:** [@trejkaz](https://www.ruby-forum.com/u/trejkaz)\
**Replies:** 2\
**Last updated:** [February 19, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/adding-permissions/129486 "2008-02-19T16:17:42Z")

</div>

Hi all. I have an app which already uses a user table for authentication. In the early days I added extra boolean columns for flags indicating user permissions (admin, etc.) which worked quite well up to a point. No…

---

## [Beast download](https://www.ruby-forum.com/t/beast-download/129507)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 11\
**Last updated:** [February 19, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/beast-download/129507 "2008-02-19T15:08:15Z")

</div>

hi all I want to download and implement beast is it possible to do so? can u give me the url from where i can download .i checked on http://beast.caboo.se but then its not available for download there thanks

---

## [Rubycas-server installation](https://www.ruby-forum.com/t/rubycas-server-installation/129553)

<div class="topic-metadata">

**Author:** [@bkempers](https://www.ruby-forum.com/u/bkempers)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 2:53pm UTC](https://www.ruby-forum.com/t/rubycas-server-installation/129553 "2008-02-19T14:53:34Z")

</div>

Hi, I’m not sure if i’m here in the right place but i have some questions about installing the rubycas-server. I have found some good documentation on how to install ‘ruby’ and ‘ruby on rails’ and that works fine :).…

---

## [Need help auth against current ASP.NET passwords using new rails site](https://www.ruby-forum.com/t/need-help-auth-against-current-asp-net-passwords-using-new-rails-site/129229)

<div class="topic-metadata">

**Author:** [@ray](https://www.ruby-forum.com/u/ray)\
**Replies:** 4\
**Last updated:** [February 19, 2008, 2:37pm UTC](https://www.ruby-forum.com/t/need-help-auth-against-current-asp-net-passwords-using-new-rails-site/129229 "2008-02-19T14:37:32Z")

</div>

I have an existing ASP.NET site that I am converting to rails. The passwords are sha1 hash generated and stored. I want the new site to authenticate against these passwords so the user do not have to reset thier passw…

---

## [Sending mail \[not the ActionMailer way?\]](https://www.ruby-forum.com/t/sending-mail-not-the-actionmailer-way/129539)

<div class="topic-metadata">

**Author:** [@ashwin](https://www.ruby-forum.com/u/ashwin)\
**Replies:** 2\
**Last updated:** [February 19, 2008, 12:48pm UTC](https://www.ruby-forum.com/t/sending-mail-not-the-actionmailer-way/129539 "2008-02-19T12:48:03Z")

</div>

Hi folks, I’ve recently stepped away from PHP web dev and I’m trying out ROR now. I like it so far. But there’s something I cannot figure out on my own. Searching on the API of ROR and Google about the possibilities o…

---

## [Nginx, mongrel\_cluster, multiple virtual hosts pointing to one application but each to a different](https://www.ruby-forum.com/t/nginx-mongrel-cluster-multiple-virtual-hosts-pointing-to-one-application-but-each-to-a-different/129240)

<div class="topic-metadata">

**Author:** [@roller8](https://www.ruby-forum.com/u/roller8)\
**Replies:** 3\
**Last updated:** [February 19, 2008, 12:04pm UTC](https://www.ruby-forum.com/t/nginx-mongrel-cluster-multiple-virtual-hosts-pointing-to-one-application-but-each-to-a-different/129240 "2008-02-19T12:04:09Z")

</div>

Hi all, I have one rails app running on this setup: Centos nginx a mongrel\_cluster Setting up virtual hosts with nginx is easy enough, but I’d like to point different hosts to different controllers. For example, I h…

---

## [Has\_many :through](https://www.ruby-forum.com/t/has-many-through/129397)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 10\
**Last updated:** [February 19, 2008, 11:31am UTC](https://www.ruby-forum.com/t/has-many-through/129397 "2008-02-19T11:31:10Z")

</div>

I have the 3 tables 1)service\_desk\_tickets id integer not null default nextval(‘public.service\_desk\_tickets\_id\_seq’: :text) number character varying(15) title character varying(100) service\_desk\_status\_id …

---

## [Discussion on are-you-in-christ-and-prayer-language](https://www.ruby-forum.com/t/discussion-on-are-you-in-christ-and-prayer-language/129534)

<div class="topic-metadata">

**Author:** [@vel](https://www.ruby-forum.com/u/vel)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 11:25am UTC](https://www.ruby-forum.com/t/discussion-on-are-you-in-christ-and-prayer-language/129534 "2008-02-19T11:25:12Z")

</div>

thank you

---

## [Caching database data that doesn't change](https://www.ruby-forum.com/t/caching-database-data-that-doesnt-change/129318)

<div class="topic-metadata">

**Author:** [@xavi](https://www.ruby-forum.com/u/xavi)\
**Replies:** 7\
**Last updated:** [February 19, 2008, 11:19am UTC](https://www.ruby-forum.com/t/caching-database-data-that-doesnt-change/129318 "2008-02-19T11:19:18Z")

</div>

what is the best way to cache database data that doesn’t change? I was caching it in a constant that I set in a file in config/initializers/ . More concretely, I have a file config/initializers/db\_cache\_constants.rb t…

---

## [Time to rewrite DBMS, says Ingres founder](https://www.ruby-forum.com/t/time-to-rewrite-dbms-says-ingres-founder/129532)

<div class="topic-metadata">

**Author:** [@antonaylward](https://www.ruby-forum.com/u/antonaylward)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 11:17am UTC](https://www.ruby-forum.com/t/time-to-rewrite-dbms-says-ingres-founder/129532 "2008-02-19T11:17:31Z")

</div>

Stonebraker and his group also advocate abandoning SQL because they see no need for a separate data manipulation language. Data manipulation, they said, can be performed with other tasks using languages such as Ruby.…

---

## [Language changes](https://www.ruby-forum.com/t/language-changes/129533)

<div class="topic-metadata">

**Author:** [@shiva](https://www.ruby-forum.com/u/shiva)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 10:57am UTC](https://www.ruby-forum.com/t/language-changes/129533 "2008-02-19T10:57:16Z")

</div>

Hi all, I am developing a multiple language website. If they change the language all the font should change based on that language…if any one knows how to do this one …help me with regards shiva

---

## [Deploy from development machine to server](https://www.ruby-forum.com/t/deploy-from-development-machine-to-server/129521)

<div class="topic-metadata">

**Author:** [@amckee](https://www.ruby-forum.com/u/amckee)\
**Replies:** 1\
**Last updated:** [February 19, 2008, 10:52am UTC](https://www.ruby-forum.com/t/deploy-from-development-machine-to-server/129521 "2008-02-19T10:52:12Z")

</div>

I cannot for the life of me seem to figure out or even find a decent guide on what needs done to deploy a rails app to my server. I do mean an actual web server, but for now I’d be happy just getting it to run on my h…

---

## [Transaction block](https://www.ruby-forum.com/t/transaction-block/129528)

<div class="topic-metadata">

**Author:** [@shiva](https://www.ruby-forum.com/u/shiva)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 10:45am UTC](https://www.ruby-forum.com/t/transaction-block/129528 "2008-02-19T10:45:49Z")

</div>

Hi, I am using sql server2005 as a database for my application…I want to use transaction block in my code…if i use it is not roll backing if anything went wrong…whether sqlserver2005 will support transaction block or…

---

## [Anyone know how to index Chinese passages by ferret](https://www.ruby-forum.com/t/anyone-know-how-to-index-chinese-passages-by-ferret/129525)

<div class="topic-metadata">

**Author:** [@WL\_Hong](https://www.ruby-forum.com/u/WL_Hong)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 10:13am UTC](https://www.ruby-forum.com/t/anyone-know-how-to-index-chinese-passages-by-ferret/129525 "2008-02-19T10:13:19Z")

</div>

It seems the built-in analyzer cannot tokenize Chinese words from sentences, anyone know how to do it? Thanks, Wai-lun

---

## [Any recommendations for 2D Charting controls for a Rails App?](https://www.ruby-forum.com/t/any-recommendations-for-2d-charting-controls-for-a-rails-app/129497)

<div class="topic-metadata">

**Author:** [@Gishu\_Pillai](https://www.ruby-forum.com/u/Gishu_Pillai)\
**Replies:** 2\
**Last updated:** [February 19, 2008, 10:04am UTC](https://www.ruby-forum.com/t/any-recommendations-for-2d-charting-controls-for-a-rails-app/129497 "2008-02-19T10:04:30Z")

</div>

Hi, I would soon need some basic trends / barcharts / piecharts on my rails views. So I am currently scouting for some components on the web. If someone has used and found certain components to be very good in this…

---

## [Help for newbies and developers in ror](https://www.ruby-forum.com/t/help-for-newbies-and-developers-in-ror/129520)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 7:10am UTC](https://www.ruby-forum.com/t/help-for-newbies-and-developers-in-ror/129520 "2008-02-19T07:10:45Z")

</div>

Hi all, I m a rails developer from last an year and collected much data about ruby and rails development… those i m pasting on this site… pls refer in case of any help for newbies, and also for all… in case of any he…

---

## [Get all What you want](https://www.ruby-forum.com/t/get-all-what-you-want/129517)

<div class="topic-metadata">

**Author:** [@LionKing1.5](https://www.ruby-forum.com/u/LionKing1.5)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 7:02am UTC](https://www.ruby-forum.com/t/get-all-what-you-want/129517 "2008-02-19T07:02:06Z")

</div>

1)Men! are you not up to the mark is your marrige breaking due to your performance in bed. then you must visit : Visiting this Men will learn how to master their own bodies. They will learn how to have complete, pow…

---

## [Beginner s question](https://www.ruby-forum.com/t/beginner-s-question/129500)

<div class="topic-metadata">

**Author:** [@casid](https://www.ruby-forum.com/u/casid)\
**Replies:** 4\
**Last updated:** [February 19, 2008, 6:44am UTC](https://www.ruby-forum.com/t/beginner-s-question/129500 "2008-02-19T06:44:16Z")

</div>

Hello, I think I have logical problem about rails. I want to integrate my plugin to my rails project. the plugin is kind of converter.the plugin takes datas from database and convert into xml file. I have a selecti…

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

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