# Rails

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

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

---

## [Determine if record has been modified](https://www.ruby-forum.com/t/determine-if-record-has-been-modified/128535)

<div class="topic-metadata">

**Author:** [@fero](https://www.ruby-forum.com/u/fero)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 2:56pm UTC](https://www.ruby-forum.com/t/determine-if-record-has-been-modified/128535 "2008-02-08T14:56:07Z")

</div>

Hello How do I determine whether record has been modified since i loaded it from db? (without comparing it to database.) something like: my\_record.has\_changed? # return true if attribute was modified, false elsewhere …

---

## [Data Comparison](https://www.ruby-forum.com/t/data-comparison/128478)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 3\
**Last updated:** [February 8, 2008, 2:07pm UTC](https://www.ruby-forum.com/t/data-comparison/128478 "2008-02-08T14:07:24Z")

</div>

Hello, I am having trouble trying to get a data table comparison working… I have two database tables with their own models. Both contain phone number information. What I need the program to do is to read every phone …

---

## [Willing\_to\_join](https://www.ruby-forum.com/t/willing-to-join/128530)

<div class="topic-metadata">

**Author:** [@ezhil](https://www.ruby-forum.com/u/ezhil)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 1:46pm UTC](https://www.ruby-forum.com/t/willing-to-join/128530 "2008-02-08T13:46:07Z")

</div>

Hi group, I am also willing to join this group. I would like to post my questions based on mobile development with ruby.

---

## [Rails 2.0.2 form\_tag/InvalidAuthenticityToken/token\_tag](https://www.ruby-forum.com/t/rails-2-0-2-form-tag-invalidauthenticitytoken-token-tag/127136)

<div class="topic-metadata">

**Author:** [@soderic](https://www.ruby-forum.com/u/soderic)\
**Replies:** 2\
**Last updated:** [February 8, 2008, 1:23pm UTC](https://www.ruby-forum.com/t/rails-2-0-2-form-tag-invalidauthenticitytoken-token-tag/127136 "2008-02-08T13:23:40Z")

</div>

|I just upgraded to rails 2.0.2 and I’m having a problem when I switch from cookie based sessions to ActiveRecord based sessions. Apparently my login form which worked under rails 1.2.6 no longer includes the proper a…

---

## [Using ERB in $() function?](https://www.ruby-forum.com/t/using-erb-in-function/128524)

<div class="topic-metadata">

**Author:** [@hashpipe](https://www.ruby-forum.com/u/hashpipe)\
**Replies:** 3\
**Last updated:** [February 8, 2008, 1:16pm UTC](https://www.ruby-forum.com/t/using-erb-in-function/128524 "2008-02-08T13:16:02Z")

</div>

Hi, I am new to Ajax, and I was wondering if it is possible to have an id passed to a $() function in runtime. Like I am generating id for an article at runtime doing something like id=article-\<%= article.id %\> Now …

---

## [Installing Rails on Leopard](https://www.ruby-forum.com/t/installing-rails-on-leopard/128358)

<div class="topic-metadata">

**Author:** [@byronbay](https://www.ruby-forum.com/u/byronbay)\
**Replies:** 13\
**Last updated:** [February 8, 2008, 1:11pm UTC](https://www.ruby-forum.com/t/installing-rails-on-leopard/128358 "2008-02-08T13:11:54Z")

</div>

The installation process for Rails has 3 steps: Install the Apple Developer Tools (Xcode) found on the Mac OS X installation disk or downloaded from the Apple Developer Connection downloads page. Download and ins…

---

## [\[ANN\] Substruct Release 0.97 | RoR E-Commerce](https://www.ruby-forum.com/t/ann-substruct-release-0-97-ror-e-commerce/128528)

<div class="topic-metadata">

**Author:** [@subimage](https://www.ruby-forum.com/u/subimage)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 1:10pm UTC](https://www.ruby-forum.com/t/ann-substruct-release-0-97-ror-e-commerce/128528 "2008-02-08T13:10:08Z")

</div>

Yo people, just got done prepping a fairly major release of Substruct, the first and only open-source RoR e-commerce platform. http://dev.subimage.com/projects/substruct/ This release updates Substruct to Rails 2 / E…

---

## [Autocompleter - get rid of default selection?](https://www.ruby-forum.com/t/autocompleter-get-rid-of-default-selection/128527)

<div class="topic-metadata">

**Author:** [@andig](https://www.ruby-forum.com/u/andig)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 1:07pm UTC](https://www.ruby-forum.com/t/autocompleter-get-rid-of-default-selection/128527 "2008-02-08T13:07:46Z")

</div>

Running Scriptaculous 1.8.1 I’m experiencing an issue with the autocompleter. As part of a search page, I’ve added and autocomplete field. During entering text, the first entry in the autocomplete list is automatical…

---

## [Jaspersoft and its integration with RoR](https://www.ruby-forum.com/t/jaspersoft-and-its-integration-with-ror/128505)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 5\
**Last updated:** [February 8, 2008, 12:49pm UTC](https://www.ruby-forum.com/t/jaspersoft-and-its-integration-with-ror/128505 "2008-02-08T12:49:50Z")

</div>

Hi all I am working on a website where I would require use of JasperReports. So is there any one who has some guide for integration of RoR and jaspersoft…or has any one done the same in their project? It would be gr8…

---

## [Question:how to paginate comments?](https://www.ruby-forum.com/t/question-how-to-paginate-comments/128502)

<div class="topic-metadata">

**Author:** [@flychunjae](https://www.ruby-forum.com/u/flychunjae)\
**Replies:** 1\
**Last updated:** [February 8, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/question-how-to-paginate-comments/128502 "2008-02-08T12:30:50Z")

</div>

hello again, i’m trying to paginate comments with will\_paginate in order, newest on top, and i’m using the sample script from acts\_as\_commentable in my controller: def add\_comment commentable\_type = params\[:commenta…

---

## [Nil object error for "rake db:migrate"](https://www.ruby-forum.com/t/nil-object-error-for-rake-db-migrate/128522)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 12:21pm UTC](https://www.ruby-forum.com/t/nil-object-error-for-rake-db-migrate/128522 "2008-02-08T12:21:26Z")

</div>

I’m going to start removing relationships and data-entry during the migration, but where’s this nil object coming from? Is it because of the relationship, or is there something wrong with the way data is entered durin…

---

## [Javascript parameter problem with onsubmit](https://www.ruby-forum.com/t/javascript-parameter-problem-with-onsubmit/128521)

<div class="topic-metadata">

**Author:** [@KTU](https://www.ruby-forum.com/u/KTU)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 12:04pm UTC](https://www.ruby-forum.com/t/javascript-parameter-problem-with-onsubmit/128521 "2008-02-08T12:04:52Z")

</div>

Hi I have this problem: \<%= submit\_tag ‘Next’, {:onsubmit =\> ‘return validate\_options(param1,param2,param3);’} %\> function validate\_options(params) { alert (params); return false; } This does not seem to print…

---

## [REST API makes tests failed](https://www.ruby-forum.com/t/rest-api-makes-tests-failed/128517)

<div class="topic-metadata">

**Author:** [@MohsinHijazee](https://www.ruby-forum.com/u/MohsinHijazee)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 11:37am UTC](https://www.ruby-forum.com/t/rest-api-makes-tests-failed/128517 "2008-02-08T11:37:14Z")

</div>

I am building REST API on top of a rails application. Consider the following lines: respond\_to do |format| respond\_to do |format| if entity.details.collect{|d| d.detail\_id.to\_i}.include? params\[“detail\_id”\].to\_i fl…

---

## [Tbles with images into pdf](https://www.ruby-forum.com/t/tbles-with-images-into-pdf/126661)

<div class="topic-metadata">

**Author:** [@sreekar](https://www.ruby-forum.com/u/sreekar)\
**Replies:** 2\
**Last updated:** [February 8, 2008, 11:32am UTC](https://www.ruby-forum.com/t/tbles-with-images-into-pdf/126661 "2008-02-08T11:32:36Z")

</div>

Hi First of all I would like to thanks all those who have replied and provided their valuable suggestions for my earlier posts. Currently I am able to insert images into pdf.But what I need now is to insert tables wi…

---

## [Session nil in view](https://www.ruby-forum.com/t/session-nil-in-view/128423)

<div class="topic-metadata">

**Author:** [@MohsinHijazee](https://www.ruby-forum.com/u/MohsinHijazee)\
**Replies:** 4\
**Last updated:** [February 8, 2008, 11:30am UTC](https://www.ruby-forum.com/t/session-nil-in-view/128423 "2008-02-08T11:30:46Z")

</div>

I have to provide a link based on a value stored in session object but getting the session object nil in the view. Following is the error message: ActionView::TemplateError: You have a nil object when you didn’t expe…

---

## [Problems installing Rmagick on Ubuntu](https://www.ruby-forum.com/t/problems-installing-rmagick-on-ubuntu/128082)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 7\
**Last updated:** [February 8, 2008, 11:07am UTC](https://www.ruby-forum.com/t/problems-installing-rmagick-on-ubuntu/128082 "2008-02-08T11:07:08Z")

</div>

I want to install Rmagick on Ubuntu 7.10, but i am getting this error when running gem install rmagick: Can’t install RMagick 2.2.0. You must have ImageMagick 6.3.0 or later. (I installed imagemagick and libmagick9-de…

---

## [Challenge! How can I write a test to test the methods in ApplicationController?](https://www.ruby-forum.com/t/challenge-how-can-i-write-a-test-to-test-the-methods-in-applicationcontroller/128515)

<div class="topic-metadata">

**Author:** [@Henry\_Collingridge](https://www.ruby-forum.com/u/Henry_Collingridge)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 11:06am UTC](https://www.ruby-forum.com/t/challenge-how-can-i-write-a-test-to-test-the-methods-in-applicationcontroller/128515 "2008-02-08T11:06:33Z")

</div>

Hi all, I’ve been Googling this one for a while now, and haven’t found a satisfactory answer. It has been posted here before by someone else, but it seems to have got forgotten, so here goes - perhaps someone can thi…

---

## [Automating workflow](https://www.ruby-forum.com/t/automating-workflow/128300)

<div class="topic-metadata">

**Author:** [@donv](https://www.ruby-forum.com/u/donv)\
**Replies:** 3\
**Last updated:** [February 8, 2008, 10:49am UTC](https://www.ruby-forum.com/t/automating-workflow/128300 "2008-02-08T10:49:23Z")

</div>

Hi all! I have the following case: A user wants to perform a task that is destructive, so a POST request is issued. The controller action determines that another task before the first task can be completed, so t…

---

## [Unitialized local variable using fastercsv with sqlite3](https://www.ruby-forum.com/t/unitialized-local-variable-using-fastercsv-with-sqlite3/128510)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 10:11am UTC](https://www.ruby-forum.com/t/unitialized-local-variable-using-fastercsv-with-sqlite3/128510 "2008-02-08T10:11:04Z")

</div>

I want to import data into an sqlite3 db, but am fuzzy as to how to declare variables to get that done. For: :name =\> name Both of the above need to be initialized or defined somehow, but I don’t know how. thufir@a…

---

## [Creating an openid server in Rails](https://www.ruby-forum.com/t/creating-an-openid-server-in-rails/128436)

<div class="topic-metadata">

**Author:** [@uncle](https://www.ruby-forum.com/u/uncle)\
**Replies:** 3\
**Last updated:** [February 8, 2008, 9:45am UTC](https://www.ruby-forum.com/t/creating-an-openid-server-in-rails/128436 "2008-02-08T09:45:13Z")

</div>

Any one know a good starting place to create and OpenID server with rails? – Thanks!

---

## [Admin says no to Ruby on Rails](https://www.ruby-forum.com/t/admin-says-no-to-ruby-on-rails/128442)

<div class="topic-metadata">

**Author:** [@csci\_student](https://www.ruby-forum.com/u/csci_student)\
**Replies:** 1\
**Last updated:** [February 8, 2008, 9:35am UTC](https://www.ruby-forum.com/t/admin-says-no-to-ruby-on-rails/128442 "2008-02-08T09:35:12Z")

</div>

I need some info for an admin who is unwilling to support Ruby on Rails because he says it “uses a container that has to be bounced which can cause problems with the server.” The admin also says he has been reading an…

---

## [Conditional insertions to hbtm join tables](https://www.ruby-forum.com/t/conditional-insertions-to-hbtm-join-tables/127664)

<div class="topic-metadata">

**Author:** [@apramanik](https://www.ruby-forum.com/u/apramanik)\
**Replies:** 2\
**Last updated:** [February 8, 2008, 8:18am UTC](https://www.ruby-forum.com/t/conditional-insertions-to-hbtm-join-tables/127664 "2008-02-08T08:18:38Z")

</div>

Is there anyway I can prevent the collection\<\<(object, …) and similar methods from adding objects that do not satisfy a specific condition. This would be similar to the :condition option on the has\_and\_belongs\_to\_many…

---

## [Checkout flow with regards to encryption/decryption](https://www.ruby-forum.com/t/checkout-flow-with-regards-to-encryption-decryption/128506)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 8:11am UTC](https://www.ruby-forum.com/t/checkout-flow-with-regards-to-encryption-decryption/128506 "2008-02-08T08:11:10Z")

</div>

In the past I connect to the user to an SSL-secured portion of my site, asked for or updated their details. I used their credit card’s security code plus the customer’s ID in the database as the pass phrase to encrypt…

---

## [Pdf generation](https://www.ruby-forum.com/t/pdf-generation/128499)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [February 8, 2008, 7:16am UTC](https://www.ruby-forum.com/t/pdf-generation/128499 "2008-02-08T07:16:28Z")

</div>

Hi Can anybody tell which is the best pdf generator in rails.There are many like \* HTMLDOC \* PdfWriter \* PDF::Writer (Austin Z.) \* Ruby FPDF \* JasperReports \* PDF Form Fill \* PDFlib and PDFlib-Lite \* Rfpdf I hav…

---

## [MP3,video Streamimg](https://www.ruby-forum.com/t/mp3-video-streamimg/128406)

<div class="topic-metadata">

**Author:** [@envynicky](https://www.ruby-forum.com/u/envynicky)\
**Replies:** 2\
**Last updated:** [February 8, 2008, 6:25am UTC](https://www.ruby-forum.com/t/mp3-video-streamimg/128406 "2008-02-08T06:25:28Z")

</div>

hii, anyone can you plz point me out good and simple resources to learn or see an demo for uploading and streaming of video and mp3 files in rails appliaction. i am a very new to this perticular application. plz hel…

---

## [How to use fastcsv?](https://www.ruby-forum.com/t/how-to-use-fastcsv/127696)

<div class="topic-metadata">

**Author:** [@thiel](https://www.ruby-forum.com/u/thiel)\
**Replies:** 2\
**Last updated:** [February 8, 2008, 5:51am UTC](https://www.ruby-forum.com/t/how-to-use-fastcsv/127696 "2008-02-08T05:51:30Z")

</div>

Hi, I am a newbie and I want to export an excel-file using fastcsv. This is an example program from book Practical Ruby Gems: ================= #!/usr/local/bin/ruby -w #fastercsv.rb Created by James Edward G. II …

---

## [Migration between versions](https://www.ruby-forum.com/t/migration-between-versions/128380)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 4\
**Last updated:** [February 8, 2008, 5:05am UTC](https://www.ruby-forum.com/t/migration-between-versions/128380 "2008-02-08T05:05:28Z")

</div>

Hi how to migrate in between versions ? suppose if i have version 1-76 . if i want to revert from 57-65 then what should i do ?without affecting data of migrations from 66-76.Please help Sijo

---

## [Web Developer's Wiki - Please Participate](https://www.ruby-forum.com/t/web-developers-wiki-please-participate/128494)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 4:18am UTC](https://www.ruby-forum.com/t/web-developers-wiki-please-participate/128494 "2008-02-08T04:18:51Z")

</div>

I am putting together a Web D.'s Information Exchange site by developers for developers where we can all share ideas, tips, techniques, tools, sample code and any other relevant material to Web development. http://we…

---

## [Programmatically ftp from rails app](https://www.ruby-forum.com/t/programmatically-ftp-from-rails-app/128439)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 3\
**Last updated:** [February 8, 2008, 4:02am UTC](https://www.ruby-forum.com/t/programmatically-ftp-from-rails-app/128439 "2008-02-08T04:02:27Z")

</div>

I would like to create the functionality to ftp a file from my rails CMS system, does anyone have some insight on FTP functionality/code?

---

## [Testing/Specing rss feed generation validity?](https://www.ruby-forum.com/t/testing-specing-rss-feed-generation-validity/128470)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 1\
**Last updated:** [February 8, 2008, 2:26am UTC](https://www.ruby-forum.com/t/testing-specing-rss-feed-generation-validity/128470 "2008-02-08T02:26:15Z")

</div>

I’m working on a rails site with an RSS feed. We were testing last night, and I found that although Safari on my Mac was perfectly happy with the feed, my colleagues Mac wasn’t. So I ran it through the w3 validation…

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

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