# Rails

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

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

---

## [Is there any User Interface Library for rails?](https://www.ruby-forum.com/t/is-there-any-user-interface-library-for-rails/122616)

<div class="topic-metadata">

**Author:** [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Replies:** 10\
**Last updated:** [January 8, 2008, 3:01pm UTC](https://www.ruby-forum.com/t/is-there-any-user-interface-library-for-rails/122616 "2008-01-08T15:01:59Z")

</div>

Hi guys, I ever used YUI(Yahoo User Interface Library). It’s great. But it is hard to use within Rails. I wants to implement the modal dialogs using such a library. Is there any User Interface Library for rails?

---

## [Rails 2.0 compatible plugins / addons / libs](https://www.ruby-forum.com/t/rails-2-0-compatible-plugins-addons-libs/125263)

<div class="topic-metadata">

**Author:** [@Sazima](https://www.ruby-forum.com/u/Sazima)\
**Replies:** 5\
**Last updated:** [January 8, 2008, 2:58pm UTC](https://www.ruby-forum.com/t/rails-2-0-compatible-plugins-addons-libs/125263 "2008-01-08T14:58:28Z")

</div>

Guys! Is there any list of Rails 2.0 compatible plugins/addons/libs? I searched a lot, but couldn’t find anything. Would you know which ones were ported to Rails 2.0 (or at least are “safe”)? I think this compilation…

---

## [Return variables on GET-request](https://www.ruby-forum.com/t/return-variables-on-get-request/196565)

<div class="topic-metadata">

**Author:** [@gustav](https://www.ruby-forum.com/u/gustav)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 2:45pm UTC](https://www.ruby-forum.com/t/return-variables-on-get-request/196565 "2008-01-08T14:45:56Z")

</div>

I’m making a GET-request to http://url/check, and would like return either “&show=1&” or “&show=2&”, depending on if an IF statement in my check-method is true or not. Anyone know how to make this happen?

---

## [Return variables on request](https://www.ruby-forum.com/t/return-variables-on-request/125353)

<div class="topic-metadata">

**Author:** [@gustav](https://www.ruby-forum.com/u/gustav)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 2:45pm UTC](https://www.ruby-forum.com/t/return-variables-on-request/125353 "2008-01-08T14:45:15Z")

</div>

I’m making a GET-request to http://url/check, and would like return either “&show=1&” or “&show=2&”, depending on if an IF statement in my check-method is true or not. Anyone know how to make this happen?

---

## [Function to find extension in file name string](https://www.ruby-forum.com/t/function-to-find-extension-in-file-name-string/125342)

<div class="topic-metadata">

**Author:** [@bartee](https://www.ruby-forum.com/u/bartee)\
**Replies:** 2\
**Last updated:** [January 8, 2008, 2:02pm UTC](https://www.ruby-forum.com/t/function-to-find-extension-in-file-name-string/125342 "2008-01-08T14:02:33Z")

</div>

I am very new to regular expressions. ( and RoR ). I need to find the extension in a filename on a string. I tried several RE’s but cannot get one to work that will find the 1st dot from the end of a file name. Also…

---

## [Error in validation](https://www.ruby-forum.com/t/error-in-validation/125350)

<div class="topic-metadata">

**Author:** [@venu](https://www.ruby-forum.com/u/venu)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 1:57pm UTC](https://www.ruby-forum.com/t/error-in-validation/125350 "2008-01-08T13:57:59Z")

</div>

I have the following model class SoftwareCi \< ActiveRecord::Base has\_one :ci, :as =\> :content has\_one :primary\_group validates\_presence\_of :name, :message =\> “can’t be empty” end The controller def create @software…

---

## [Security question - erb (erubis)](https://www.ruby-forum.com/t/security-question-erb-erubis/125348)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 1:25pm UTC](https://www.ruby-forum.com/t/security-question-erb-erubis/125348 "2008-01-08T13:25:36Z")

</div>

Hi, I’m tinkering with the idea of providing a client of mine with the ability to edit pages, using erb. I’ve setup a couple of nice helpers and things actually work surprisingly well. I’m using render\_to\_string main…

---

## [How do I call the exception\_notifier from my own rescue\_action\_in\_public?](https://www.ruby-forum.com/t/how-do-i-call-the-exception-notifier-from-my-own-rescue-action-in-public/125345)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 1:12pm UTC](https://www.ruby-forum.com/t/how-do-i-call-the-exception-notifier-from-my-own-rescue-action-in-public/125345 "2008-01-08T13:12:43Z")

</div>

Hi all! I’ve been using the excellent exception\_nofitier ( http://agilewebdevelopment.com/plugins/exception\_notifier ) a while now, but want to change the way it interacts with my application. I now have my own rescu…

---

## [Webservices with RoR | Urgent](https://www.ruby-forum.com/t/webservices-with-ror-urgent/125339)

<div class="topic-metadata">

**Author:** [@Haris\_G](https://www.ruby-forum.com/u/Haris_G)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 12:41pm UTC](https://www.ruby-forum.com/t/webservices-with-ror-urgent/125339 "2008-01-08T12:41:35Z")

</div>

Hello all, I have to make a sample application that consumes webservices. I have been googling since morning but the examples I found either dont work, or their wsdl isnt accessible or have some problem or the other…

---

## [Exporting to text file with rails](https://www.ruby-forum.com/t/exporting-to-text-file-with-rails/125333)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 3\
**Last updated:** [January 8, 2008, 11:58am UTC](https://www.ruby-forum.com/t/exporting-to-text-file-with-rails/125333 "2008-01-08T11:58:42Z")

</div>

Hi, I have a list of emails in a users table in my database and my client wants me to export a list of these users to a format which they can paste into outlook so that they can bulk email them. Does anyone have any …

---

## [Just one session for one user](https://www.ruby-forum.com/t/just-one-session-for-one-user/125330)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 11:53am UTC](https://www.ruby-forum.com/t/just-one-session-for-one-user/125330 "2008-01-08T11:53:25Z")

</div>

I want one user to have one session only. If user signs in again on some other station, it should automatically log off from previous session. I really dont know how to implement this. Somebody please guide me. I am s…

---

## [How can I detect from the controller which database adaptor is in use?](https://www.ruby-forum.com/t/how-can-i-detect-from-the-controller-which-database-adaptor-is-in-use/125335)

<div class="topic-metadata">

**Author:** [@jose](https://www.ruby-forum.com/u/jose)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 11:49am UTC](https://www.ruby-forum.com/t/how-can-i-detect-from-the-controller-which-database-adaptor-is-in-use/125335 "2008-01-08T11:49:52Z")

</div>

I’m using Postgres in development and MySQL in production. They use different SQL syntax in some places in my code. How can I detect from the controller which adaptor is in use? I’ll be migrating the production site …

---

## [What does '$' mean in a .rb file?](https://www.ruby-forum.com/t/what-does-mean-in-a-rb-file/125332)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 10:59am UTC](https://www.ruby-forum.com/t/what-does-mean-in-a-rb-file/125332 "2008-01-08T10:59:27Z")

</div>

I am embarrassed to have to ask what is probably a very simple question, but, I’ve come across some code in a library that says this: logger.debug("$language\_id = #{$language\_id}") what does putting $ in front of a va…

---

## [Base.connection.execute with params](https://www.ruby-forum.com/t/base-connection-execute-with-params/125271)

<div class="topic-metadata">

**Author:** [@elmy-liddiard](https://www.ruby-forum.com/u/elmy-liddiard)\
**Replies:** 2\
**Last updated:** [January 8, 2008, 10:34am UTC](https://www.ruby-forum.com/t/base-connection-execute-with-params/125271 "2008-01-08T10:34:30Z")

</div>

Hi, I am trying to implement Base.connection.execute using a passed parameter from the calling view:- In my controller I have the following code:- def addnewsoa2 ActiveRecord::Base.connection.execute “INSERT INTO so…

---

## [The file uploading doesn't work in remote\_form\_for tag](https://www.ruby-forum.com/t/the-file-uploading-doesnt-work-in-remote-form-for-tag/125225)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 4\
**Last updated:** [January 8, 2008, 10:33am UTC](https://www.ruby-forum.com/t/the-file-uploading-doesnt-work-in-remote-form-for-tag/125225 "2008-01-08T10:33:08Z")

</div>

Hi all, Greetings, i have tried to upload a file through the remote\_form\_for tag, but not getting the file uploaded, and getting number of errors, Pls guide me in this directions Regards Saurabh P. +919922907342 …

---

## [WEBrick.. won't start and showing '/rails-2.0.2/lib/initializer.rb:159:in \`require\_frameworks': Cou](https://www.ruby-forum.com/t/webrick-wont-start-and-showing-rails-2-0-2-lib-initializer-rbin-require-frameworks-cou/124402)

<div class="topic-metadata">

**Author:** [@amitkumar](https://www.ruby-forum.com/u/amitkumar)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 9:46am UTC](https://www.ruby-forum.com/t/webrick-wont-start-and-showing-rails-2-0-2-lib-initializer-rbin-require-frameworks-cou/124402 "2008-01-08T09:46:19Z")

</div>

Hi WEBric won’t strat and showing the following errors:- =\> Booting WEBrick… /mnt/slash/home/akumar/jruby-1.1b1/lib/ruby/gems/1.8/gems/rails-2.0.2/ lib/initializer.rb:159:in \`require\_frameworks’: Could not find RubyG…

---

## [Csrf attacks](https://www.ruby-forum.com/t/csrf-attacks/121950)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 12\
**Last updated:** [January 8, 2008, 8:22am UTC](https://www.ruby-forum.com/t/csrf-attacks/121950 "2008-01-08T08:22:32Z")

</div>

Hi, i’m not really aware about security, i just want to know when should i use protect\_from\_forgery. Should i use it even on form just available for logged in user? And the second question is how can i pass the authe…

---

## [Cant see files on ftp](https://www.ruby-forum.com/t/cant-see-files-on-ftp/125322)

<div class="topic-metadata">

**Author:** [@ravindralokhande](https://www.ruby-forum.com/u/ravindralokhande)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 7:12am UTC](https://www.ruby-forum.com/t/cant-see-files-on-ftp/125322 "2008-01-08T07:12:10Z")

</div>

I am newbie at ruby on rails. I have to do modifications in a ruby on rail project. website is running. to get source code, I connected to ftp. i am able to see folders but not able to see a single file. WHere are fil…

---

## [Problem With Drop Down LIst](https://www.ruby-forum.com/t/problem-with-drop-down-list/125312)

<div class="topic-metadata">

**Author:** [@nad](https://www.ruby-forum.com/u/nad)\
**Replies:** 2\
**Last updated:** [January 8, 2008, 5:38am UTC](https://www.ruby-forum.com/t/problem-with-drop-down-list/125312 "2008-01-08T05:38:54Z")

</div>

Hi , i have two drop down list where the data of it retrieve from the DB table. this one is working 100% . bt now i want do some thin like this. when the fist drop down list is selected the second one values should b…

---

## [Problem deploying Rails 2.0.2 app with Dreamhost](https://www.ruby-forum.com/t/problem-deploying-rails-2-0-2-app-with-dreamhost/125311)

<div class="topic-metadata">

**Author:** [@supasta](https://www.ruby-forum.com/u/supasta)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 4:59am UTC](https://www.ruby-forum.com/t/problem-deploying-rails-2-0-2-app-with-dreamhost/125311 "2008-01-08T04:59:42Z")

</div>

Has anyone deployed a rails 2.0.2 application to dreamhost with any success? I have an app that works fine in my cygwin environment but when I try to migrate my databases on dreamhost, I get the following error. uni…

---

## [Why I can't get the date value?](https://www.ruby-forum.com/t/why-i-cant-get-the-date-value/125303)

<div class="topic-metadata">

**Author:** [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 2:50am UTC](https://www.ruby-forum.com/t/why-i-cant-get-the-date-value/125303 "2008-01-08T02:50:24Z")

</div>

On rails 2.0.2, I debug: raise @person.inspect I got: #\<Person id: 102, created\_at: “2006-08-16 00:37:50”, updated\_at: “2008-01-07 10:46:49”, points\_count: 0\> raise @person.id.inspect I got “102” raise @person.po…

---

## [More visual effect questions?](https://www.ruby-forum.com/t/more-visual-effect-questions/125299)

<div class="topic-metadata">

**Author:** [@spokra](https://www.ruby-forum.com/u/spokra)\
**Replies:** 3\
**Last updated:** [January 8, 2008, 2:34am UTC](https://www.ruby-forum.com/t/more-visual-effect-questions/125299 "2008-01-08T02:34:02Z")

</div>

I have my divs fading and appearing… BUT!! they all fade the first time even if they are checked… guess that is because im using toggle… \<%= f.check\_box :monday, :onclick =\> visual\_effect(:toggle\_appear, ‘mondaydiv’…

---

## [:dependent =\> :destroy and before\_destroy](https://www.ruby-forum.com/t/dependent-destroy-and-before-destroy/125296)

<div class="topic-metadata">

**Author:** [@William\_P](https://www.ruby-forum.com/u/William_P)\
**Replies:** 4\
**Last updated:** [January 8, 2008, 2:10am UTC](https://www.ruby-forum.com/t/dependent-destroy-and-before-destroy/125296 "2008-01-08T02:10:39Z")

</div>

I have a problem with one of my models. The parent object has 2 polymorphic relationships both specifying :dependent =\> :destroy. This all works fine until you attempt to delete the parent and the parent’s before\_dest…

---

## [Rails Issue](https://www.ruby-forum.com/t/rails-issue/125128)

<div class="topic-metadata">

**Author:** [@blake](https://www.ruby-forum.com/u/blake)\
**Replies:** 3\
**Last updated:** [January 8, 2008, 2:04am UTC](https://www.ruby-forum.com/t/rails-issue/125128 "2008-01-08T02:04:46Z")

</div>

When doing db:migrate I got this error dyld: NSLinkModule() error dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient. 15.dylib Referenced from: /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/ mysql…

---

## [Modifying deploy recipe for ferret DRb?](https://www.ruby-forum.com/t/modifying-deploy-recipe-for-ferret-drb/125301)

<div class="topic-metadata">

**Author:** [@acampos](https://www.ruby-forum.com/u/acampos)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 2:03am UTC](https://www.ruby-forum.com/t/modifying-deploy-recipe-for-ferret-drb/125301 "2008-01-08T02:03:36Z")

</div>

I’m pretty new to Rails and Capistrano, but I have managed to get my application deployed to a remote server with Capistrano. What I’d like to do next is automate the start/stop of the ferret DRb process, but I’m not…

---

## [Date\_select in a collection](https://www.ruby-forum.com/t/date-select-in-a-collection/125298)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 1:47am UTC](https://www.ruby-forum.com/t/date-select-in-a-collection/125298 "2008-01-08T01:47:48Z")

</div>

I have a multi model form with a collection of ‘child’ objects. When the form gets posed back the children are all nicely in child\_attributes but the dates are not. I can see from the HTML that the \[\] of the other fie…

---

## [Capistrano 2.1 ssh/svn checkout problem](https://www.ruby-forum.com/t/capistrano-2-1-ssh-svn-checkout-problem/123386)

<div class="topic-metadata">

**Author:** [@t\_chheng](https://www.ruby-forum.com/u/t_chheng)\
**Replies:** 6\
**Last updated:** [January 8, 2008, 1:41am UTC](https://www.ruby-forum.com/t/capistrano-2-1-ssh-svn-checkout-problem/123386 "2008-01-08T01:41:38Z")

</div>

Hi, I’m trying to deploy via Capistrano 2.1 I have the SVN repos. on the same deployed server. In my deploy.rb: I tried this set :repository, “file:///home/#{user}/svn\_repos/trunk” This gives an error of: execut…

---

## [Currently looking for ROR Developers for the Glendale](https://www.ruby-forum.com/t/currently-looking-for-ror-developers-for-the-glendale/125293)

<div class="topic-metadata">

**Author:** [@RORinLos\_A](https://www.ruby-forum.com/u/RORinLos_A)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 1:16am UTC](https://www.ruby-forum.com/t/currently-looking-for-ror-developers-for-the-glendale/125293 "2008-01-08T01:16:15Z")

</div>

Currently looking for ROR Developers for the Glendale Ca. Considering both Jr. and Sr. level candidates. Please forward resume to llee @ i- hire. com

---

## [Currently looking for ROR Developers for the Glendale, CA](https://www.ruby-forum.com/t/currently-looking-for-ror-developers-for-the-glendale-ca/197057)

<div class="topic-metadata">

**Author:** [@RORinLos\_A](https://www.ruby-forum.com/u/RORinLos_A)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 12:11am UTC](https://www.ruby-forum.com/t/currently-looking-for-ror-developers-for-the-glendale-ca/197057 "2008-01-08T00:11:54Z")

</div>

Currently looking for ROR Developers for the Glendale area in California. Please forward your resume to removed\_email\_address@domain.invalid. Looking for both Sr. and Jr. level candidates.

---

## [ROR Jobs, Glendale Ca](https://www.ruby-forum.com/t/ror-jobs-glendale-ca/196563)

<div class="topic-metadata">

**Author:** [@RORinLos\_A](https://www.ruby-forum.com/u/RORinLos_A)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 12:09am UTC](https://www.ruby-forum.com/t/ror-jobs-glendale-ca/196563 "2008-01-08T00:09:33Z")

</div>

Currently looking for ROR Developers for the Glendale area in California. Please forward your resume to removed\_email\_address@domain.invalid. Looking for both Sr. and Jr. level candidates.

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

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