# Rails

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

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

---

## [Help on Spreadsheet::Excel](https://www.ruby-forum.com/t/help-on-spreadsheet-excel/183985)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 2\
**Last updated:** [February 24, 2010, 8:52am UTC](https://www.ruby-forum.com/t/help-on-spreadsheet-excel/183985 "2010-02-24T08:52:12Z")

</div>

Dear all, For the export to excel functionality i have used Spreadsheet::Excel gem it works fine. i would like to design the excel sheet with html ,css.(i want to give color and height and width to each cell of the ex…

---

## [Link\_to\_unless\_current](https://www.ruby-forum.com/t/link-to-unless-current/184048)

<div class="topic-metadata">

**Author:** [@SachinJ](https://www.ruby-forum.com/u/SachinJ)\
**Replies:** 0\
**Last updated:** [February 24, 2010, 8:47am UTC](https://www.ruby-forum.com/t/link-to-unless-current/184048 "2010-02-24T08:47:52Z")

</div>

Hello Experts, I have a tabbed navigation in side which there are sub menus. For the tab, to look selected i have used the link\_to\_unless\_current which assigns appropriate css to the tab when it doesn’t have a URL. W…

---

## [Ror coding standard](https://www.ruby-forum.com/t/ror-coding-standard/184041)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 2\
**Last updated:** [February 24, 2010, 7:06am UTC](https://www.ruby-forum.com/t/ror-coding-standard/184041 "2010-02-24T07:06:01Z")

</div>

Hi Could anyone please suggest the best ROR coding standard document(url). When googled I got a numer of links. If get the most reliable one that would be helpful. We are just beginning the project. So need this to c…

---

## [Undefined method \`scaffold' for AdminController:Class](https://www.ruby-forum.com/t/undefined-method-scaffold-for-admincontroller-class/184023)

<div class="topic-metadata">

**Author:** [@kevinkusf](https://www.ruby-forum.com/u/kevinkusf)\
**Replies:** 1\
**Last updated:** [February 24, 2010, 5:20am UTC](https://www.ruby-forum.com/t/undefined-method-scaffold-for-admincontroller-class/184023 "2010-02-24T05:20:43Z")

</div>

Hello everyone! I think a little background is necessary. I’ve been a web-developer and linux user for a little over 4 years now, primarily working with PHP and MySQL. I’ve tried several other frameworks like Django a…

---

## [Cucumber, Rails, and Sending Emails](https://www.ruby-forum.com/t/cucumber-rails-and-sending-emails/184036)

<div class="topic-metadata">

**Author:** [@mercurykjb](https://www.ruby-forum.com/u/mercurykjb)\
**Replies:** 0\
**Last updated:** [February 24, 2010, 4:09am UTC](https://www.ruby-forum.com/t/cucumber-rails-and-sending-emails/184036 "2010-02-24T04:09:19Z")

</div>

Anyone had any problems sending emails (performing the delivery) using Cucumber. When I set “config.action\_mailer.perform\_deliveries = true”, in cucumber.rb, the emails don’t actually get sent to my inbox. I’ve tried…

---

## [Case INsensitive urls?](https://www.ruby-forum.com/t/case-insensitive-urls/183953)

<div class="topic-metadata">

**Author:** [@GoodGets](https://www.ruby-forum.com/u/GoodGets)\
**Replies:** 7\
**Last updated:** [February 24, 2010, 2:23am UTC](https://www.ruby-forum.com/t/case-insensitive-urls/183953 "2010-02-24T02:23:24Z")

</div>

I’ve mapped my users’ usernames off my root path to give them vanity urls, (i.e. example.com/username), but if you capitalize any of the letters of their username, rails throws an exception. It’s looking for the case…

---

## [Rails 1.2.6: "can't convert Enumerator into Array"](https://www.ruby-forum.com/t/rails-1-2-6-cant-convert-enumerator-into-array/184026)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [February 24, 2010, 2:05am UTC](https://www.ruby-forum.com/t/rails-1-2-6-cant-convert-enumerator-into-array/184026 "2010-02-24T02:05:16Z")

</div>

I was recently using the latest version of rails, until I found out that the book I was using required an older version. I uninstalled my other versions and installed rails 1.2.6, however, I get the following message…

---

## [Best way to go for ajax / UI interface design and Ror?](https://www.ruby-forum.com/t/best-way-to-go-for-ajax-ui-interface-design-and-ror/183486)

<div class="topic-metadata">

**Author:** [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Replies:** 3\
**Last updated:** [February 24, 2010, 1:13am UTC](https://www.ruby-forum.com/t/best-way-to-go-for-ajax-ui-interface-design-and-ror/183486 "2010-02-24T01:13:42Z")

</div>

Tryed several JS and java frameworks for adding a nice set of UI elements to ror applications. I know there is Jquery, Jquery widgets for Ror, The jquery UI but all those lack in some way or the other. Would there be…

---

## [Capistrano still asks for the 1st password even though I've set up an ssh key?](https://www.ruby-forum.com/t/capistrano-still-asks-for-the-1st-password-even-though-ive-set-up-an-ssh-key/183956)

<div class="topic-metadata">

**Author:** [@greghauptmann](https://www.ruby-forum.com/u/greghauptmann)\
**Replies:** 2\
**Last updated:** [February 24, 2010, 12:38am UTC](https://www.ruby-forum.com/t/capistrano-still-asks-for-the-1st-password-even-though-ive-set-up-an-ssh-key/183956 "2010-02-24T00:38:34Z")

</div>

Hi, Background: I’ve setup an ssh key to avoid having to use passwords with capistrano per http://www.picky-ricky.com/2009/01/ssh-keys-with-capistrano.html. A basic ssh to my server does work fine without asking for…

---

## [Couldn't find without an ID](https://www.ruby-forum.com/t/couldnt-find-without-an-id/183992)

<div class="topic-metadata">

**Author:** [@Butterson](https://www.ruby-forum.com/u/Butterson)\
**Replies:** 11\
**Last updated:** [February 23, 2010, 10:36pm UTC](https://www.ruby-forum.com/t/couldnt-find-without-an-id/183992 "2010-02-23T22:36:13Z")

</div>

Hello all. I’m new to RoR. I am having trouble trying to get a simple edit/update going. Everytime I hit submit, I get the following error: +++++++++++++++++++++ Couldn’t find Content without an ID Request Parameter…

---

## [Searchlogic to check whether two arrays intersect](https://www.ruby-forum.com/t/searchlogic-to-check-whether-two-arrays-intersect/184016)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 0\
**Last updated:** [February 23, 2010, 10:18pm UTC](https://www.ruby-forum.com/t/searchlogic-to-check-whether-two-arrays-intersect/184016 "2010-02-23T22:18:38Z")

</div>

How can I use searchlogic to check whether two arrays intersect? I have User.array\_1\[\] and the search criteria are in Search.array\_2\[\]. I want to search for all users whose has an array\_1\[\] that intersects with Sear…

---

## ["the change you want was rejected. Maybe you changed something you didn't have access to.""](https://www.ruby-forum.com/t/the-change-you-want-was-rejected-maybe-you-changed-something-you-didnt-have-access-to/183945)

<div class="topic-metadata">

**Author:** [@salamander](https://www.ruby-forum.com/u/salamander)\
**Replies:** 4\
**Last updated:** [February 23, 2010, 10:14pm UTC](https://www.ruby-forum.com/t/the-change-you-want-was-rejected-maybe-you-changed-something-you-didnt-have-access-to/183945 "2010-02-23T22:14:33Z")

</div>

Anyone ever get an error message such as this? “the change you want was rejected. Maybe you changed something you didn’t have access to.”" I haven’t been able to see this in testing, but I’m getting reports out on …

---

## [ORA-01704 string literal too long](https://www.ruby-forum.com/t/ora-01704-string-literal-too-long/183946)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 5\
**Last updated:** [February 23, 2010, 10:03pm UTC](https://www.ruby-forum.com/t/ora-01704-string-literal-too-long/183946 "2010-02-23T22:03:56Z")

</div>

Hello all, I’m stuck again. I’m in my 5th month of Ruby on Rails and getting better but… I’m uploading a .csv file using Paperclip and FasterCSV, then processing the file after the upload is complete. Small files w…

---

## [How to validate uniqueness across multiple columns in ActiveRecord?](https://www.ruby-forum.com/t/how-to-validate-uniqueness-across-multiple-columns-in-activerecord/183944)

<div class="topic-metadata">

**Author:** [@Grary](https://www.ruby-forum.com/u/Grary)\
**Replies:** 9\
**Last updated:** [February 23, 2010, 10:01pm UTC](https://www.ruby-forum.com/t/how-to-validate-uniqueness-across-multiple-columns-in-activerecord/183944 "2010-02-23T22:01:56Z")

</div>

Hi, From a model class, what is the standard way of ensuring uniqueness across multiple columns (attributes) simultaneously? In other words, I want to ensure only unique “rows” are persisted to storage. I feel like t…

---

## [How a js script can get the current locale from my rails app?](https://www.ruby-forum.com/t/how-a-js-script-can-get-the-current-locale-from-my-rails-app/197122)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [February 23, 2010, 9:56pm UTC](https://www.ruby-forum.com/t/how-a-js-script-can-get-the-current-locale-from-my-rails-app/197122 "2010-02-23T21:56:59Z")

</div>

I am not very fluent in JS, so I don’t see how to transfer the rails app current locale … I have a JS script able to detect the default browser language … running fine I can also modify the JS language, passing a glo…

---

## [Logging and Exceptions with Script Runner](https://www.ruby-forum.com/t/logging-and-exceptions-with-script-runner/184015)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 23, 2010, 9:56pm UTC](https://www.ruby-forum.com/t/logging-and-exceptions-with-script-runner/184015 "2010-02-23T21:56:24Z")

</div>

I have two questions about code that is executed from the script/ runner: Should calls to logger show up in the log? Can it be configured so exceptions call the exception\_notification plugin? Thanks! Tom

---

## [De-normalized table associations](https://www.ruby-forum.com/t/de-normalized-table-associations/184010)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 8\
**Last updated:** [February 23, 2010, 9:40pm UTC](https://www.ruby-forum.com/t/de-normalized-table-associations/184010 "2010-02-23T21:40:35Z")

</div>

Hi, Working with legacy DB here… 2 tables: Projects Workers A worker record has many fields in it to hold project codes as in: project1, project2, project3, … project30 (great, isn’t it?..) Normalizing the DB is o…

---

## [Password recovery?](https://www.ruby-forum.com/t/password-recovery/197123)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [February 23, 2010, 9:25pm UTC](https://www.ruby-forum.com/t/password-recovery/197123 "2010-02-23T21:25:07Z")

</div>

Hi there, I am looking to implement a password recovery feature so users on my site can request a password when they forget theirs… My passwords are one way encrypted, using a sha1 hexdigest so currently users would …

---

## [Conditional order field in has\_many](https://www.ruby-forum.com/t/conditional-order-field-in-has-many/184006)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [February 23, 2010, 8:43pm UTC](https://www.ruby-forum.com/t/conditional-order-field-in-has-many/184006 "2010-02-23T20:43:15Z")

</div>

I’d like the change the order field in a has\_many relationship based on the value of one of my other fields. Is this possible? In this case my parent model is Quiz and the child is QuizQuestion. If a quiz’s ‘style’ …

---

## [Logging and Exceptions with Script Runner](https://www.ruby-forum.com/t/logging-and-exceptions-with-script-runner/184009)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 23, 2010, 8:35pm UTC](https://www.ruby-forum.com/t/logging-and-exceptions-with-script-runner/184009 "2010-02-23T20:35:35Z")

</div>

I have cron jobs that run script/runner commands and I have two questions: Should logging be working when calling the logger methods from an object within the script? Should Exception Notification work when an ex…

---

## [Gem + passenger throw error](https://www.ruby-forum.com/t/gem-passenger-throw-error/183960)

<div class="topic-metadata">

**Author:** [@ggironda](https://www.ruby-forum.com/u/ggironda)\
**Replies:** 7\
**Last updated:** [February 23, 2010, 8:26pm UTC](https://www.ruby-forum.com/t/gem-passenger-throw-error/183960 "2010-02-23T20:26:12Z")

</div>

Hi Bonjour, I’ve followed different tutos : https://help.ubuntu.com/community/RubyOnRails http://blog.lelevier.fr/redmine-sous-apache-avec-passenger/ http://doc.ubuntu-fr.org/redmine#servir\_redmine\_via\_apache tryin…

---

## [Internationalize a Array of strings](https://www.ruby-forum.com/t/internationalize-a-array-of-strings/183939)

<div class="topic-metadata">

**Author:** [@andresgutgon](https://www.ruby-forum.com/u/andresgutgon)\
**Replies:** 5\
**Last updated:** [February 23, 2010, 8:25pm UTC](https://www.ruby-forum.com/t/internationalize-a-array-of-strings/183939 "2010-02-23T20:25:02Z")

</div>

Hi, i have a model User. Inside this model i have an Array: JOB\_CATEGORIES = \[‘Undergraduate student’, ‘Graduate student’ , ‘Pre-doctoral student’, ‘Postdoctoral student’,‘Asociate profesor’, ‘Assistant profesor’, ‘Re…

---

## [Rails Migration Live w/mysql](https://www.ruby-forum.com/t/rails-migration-live-w-mysql/184008)

<div class="topic-metadata">

**Author:** [@cuspendlove](https://www.ruby-forum.com/u/cuspendlove)\
**Replies:** 0\
**Last updated:** [February 23, 2010, 8:19pm UTC](https://www.ruby-forum.com/t/rails-migration-live-w-mysql/184008 "2010-02-23T20:19:46Z")

</div>

Hi - I’m wondering what people are doing about large tables and adding columns / dropping columns on a site that cannot be taken down.

---

## [Can't install RMagick 2.12.2](https://www.ruby-forum.com/t/cant-install-rmagick-2-12-2/183980)

<div class="topic-metadata">

**Author:** [@shyam\_mohan](https://www.ruby-forum.com/u/shyam_mohan)\
**Replies:** 3\
**Last updated:** [February 23, 2010, 8:18pm UTC](https://www.ruby-forum.com/t/cant-install-rmagick-2-12-2/183980 "2010-02-23T20:18:35Z")

</div>

Hi all When i use this rake gems:install i face this problem \[root@localhost trunk\]# rake gems:install (in /root/shyam/trunk) gem install rmagick --version “\>= 2.9.1” ERROR: Error installing rmagick: ERROR: …

---

## [Integrating non-sql](https://www.ruby-forum.com/t/integrating-non-sql/183979)

<div class="topic-metadata">

**Author:** [@Joan\_M](https://www.ruby-forum.com/u/Joan_M)\
**Replies:** 4\
**Last updated:** [February 23, 2010, 7:42pm UTC](https://www.ruby-forum.com/t/integrating-non-sql/183979 "2010-02-23T19:42:51Z")

</div>

Will be there integration with non-sql DBMS?

---

## [Problem: The command "rake db:create:all" crashes](https://www.ruby-forum.com/t/problem-the-command-rake-dball-crashes/183958)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 2\
**Last updated:** [February 23, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/problem-the-command-rake-dball-crashes/183958 "2010-02-23T18:03:57Z")

</div>

Hi All, I’m running: Rails 2.3.5 MySQL 5.1.44 WindowsXP-Pro/SP3 Following Noel Rappin’s book, Pro RoR, I successfully got past the point of creating my first scaffold: ruby script/generate scaffold supplier nickna…

---

## [Using div with an image](https://www.ruby-forum.com/t/using-div-with-an-image/183986)

<div class="topic-metadata">

**Author:** [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Replies:** 1\
**Last updated:** [February 23, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/using-div-with-an-image/183986 "2010-02-23T16:26:31Z")

</div>

Hi everybody IÂ´m using div tag for refresh some part of my webpage, at the moment IÂ´m working with text, but I want to refresh an image and I donÂ´t have any idea about how do that. Anyone can give any tip. Thanks a…

---

## [Graph/ Charting Tool for RoR](https://www.ruby-forum.com/t/graph-charting-tool-for-ror/183973)

<div class="topic-metadata">

**Author:** [@shiran](https://www.ruby-forum.com/u/shiran)\
**Replies:** 1\
**Last updated:** [February 23, 2010, 10:30am UTC](https://www.ruby-forum.com/t/graph-charting-tool-for-ror/183973 "2010-02-23T10:30:20Z")

</div>

Hi, I’m evaluating some charting tools (free) to be used with RoR web application. Those should be easy to use and yet have some elegant features. At the moment I’m using Open Flash chart. But I’m on evaluating follo…

---

## [Linking 3 Models with has\_many relationships](https://www.ruby-forum.com/t/linking-3-models-with-has-many-relationships/183969)

<div class="topic-metadata">

**Author:** [@James\_Trowbridge](https://www.ruby-forum.com/u/James_Trowbridge)\
**Replies:** 2\
**Last updated:** [February 23, 2010, 9:44am UTC](https://www.ruby-forum.com/t/linking-3-models-with-has-many-relationships/183969 "2010-02-23T09:44:41Z")

</div>

Hello, i’ve been searching for a solution to a problem i’ve come across and have not been able to find it yet. I’m working on a website that returns the closest delivery restaurants to you based on your location. I’…

---

## [Implementing a custom dashboard](https://www.ruby-forum.com/t/implementing-a-custom-dashboard/183972)

<div class="topic-metadata">

**Author:** [@madhusudhan](https://www.ruby-forum.com/u/madhusudhan)\
**Replies:** 0\
**Last updated:** [February 23, 2010, 9:40am UTC](https://www.ruby-forum.com/t/implementing-a-custom-dashboard/183972 "2010-02-23T09:40:20Z")

</div>

Hello, I want to develop a custom dashboard from a list of modules. The selected modules has to be displayed in the dashboard which can be customised. This may be similar to iGoogle or my Yahoo, where i should be abl…

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

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