# Rails

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

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

---

## [How to incorporate any chart in a rails application](https://www.ruby-forum.com/t/how-to-incorporate-any-chart-in-a-rails-application/196997)

<div class="topic-metadata">

**Author:** [@soutom](https://www.ruby-forum.com/u/soutom)\
**Replies:** 3\
**Last updated:** [September 8, 2009, 6:46pm UTC](https://www.ruby-forum.com/t/how-to-incorporate-any-chart-in-a-rails-application/196997 "2009-09-08T18:46:10Z")

</div>

i just want to incorporate a chat in a my rails application… please help me how to incorporate a chart in my rails application

---

## [\* Please Help - Session problem \*](https://www.ruby-forum.com/t/please-help-session-problem/175098)

<div class="topic-metadata">

**Author:** [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Replies:** 2\
**Last updated:** [September 8, 2009, 6:00pm UTC](https://www.ruby-forum.com/t/please-help-session-problem/175098 "2009-09-08T18:00:30Z")

</div>

Hi There, I am setting a session, whilst following the rails-space tutorial. When i hit register, I can see there is a new row inserted to the sessions table, but now - for some reason, I don’t get the flash message…

---

## [Rails inserting NULL values instead of actual values](https://www.ruby-forum.com/t/rails-inserting-null-values-instead-of-actual-values/175049)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [September 8, 2009, 4:30pm UTC](https://www.ruby-forum.com/t/rails-inserting-null-values-instead-of-actual-values/175049 "2009-09-08T16:30:20Z")

</div>

I have an odd issue that I am having a difficult time solving. When I attempt to create or edit data in my rails app; it INSERTs NULL values instead of the values I eintered in the form. Same with editing the data; it…

---

## [Calling a commandline function using the onclick button](https://www.ruby-forum.com/t/calling-a-commandline-function-using-the-onclick-button/175092)

<div class="topic-metadata">

**Author:** [@pl\_helpme](https://www.ruby-forum.com/u/pl_helpme)\
**Replies:** 6\
**Last updated:** [September 8, 2009, 4:21pm UTC](https://www.ruby-forum.com/t/calling-a-commandline-function-using-the-onclick-button/175092 "2009-09-08T16:21:33Z")

</div>

Hello everyone, I’ll start by describing what I’m doing and saying that I am a newbie. In my ROR (2.1.2) application, would like to send read data from a text field using the onclick tag to a python script I wrote. …

---

## [How to incorporate any chart in a rails application](https://www.ruby-forum.com/t/how-to-incorporate-any-chart-in-a-rails-application/175119)

<div class="topic-metadata">

**Author:** [@soutom](https://www.ruby-forum.com/u/soutom)\
**Replies:** 0\
**Last updated:** [September 8, 2009, 12:15pm UTC](https://www.ruby-forum.com/t/how-to-incorporate-any-chart-in-a-rails-application/175119 "2009-09-08T12:15:08Z")

</div>

i just want to incorporate a chat in a my rails application… please help me how to incorporate a chart in my rails application

---

## [RoR-Sql query](https://www.ruby-forum.com/t/ror-sql-query/175110)

<div class="topic-metadata">

**Author:** [@anandhkumar](https://www.ruby-forum.com/u/anandhkumar)\
**Replies:** 2\
**Last updated:** [September 8, 2009, 10:35am UTC](https://www.ruby-forum.com/t/ror-sql-query/175110 "2009-09-08T10:35:03Z")

</div>

Hi everyone Consider there are three tables book,money,card in database. Book has got column names name,price. Money has got column names price,type. Card has got column names type,id. Now based on the ‘id’ of the ‘…

---

## [How to validate\_uniqueness\_of the joint of two attributes?](https://www.ruby-forum.com/t/how-to-validate-uniqueness-of-the-joint-of-two-attributes/175106)

<div class="topic-metadata">

**Author:** [@Anh\_Hung\_N](https://www.ruby-forum.com/u/Anh_Hung_N)\
**Replies:** 1\
**Last updated:** [September 8, 2009, 9:17am UTC](https://www.ruby-forum.com/t/how-to-validate-uniqueness-of-the-joint-of-two-attributes/175106 "2009-09-08T09:17:12Z")

</div>

Hi, I have a form that asks users to put in their :first\_name and :last\_name. How do I validate that their full\_name (first\_name + last\_name) is unique? Thanks! Nguyen Anh Hung Assistant Project Manager/ Consultan…

---

## [Hpricot search](https://www.ruby-forum.com/t/hpricot-search/175105)

<div class="topic-metadata">

**Author:** [@prashanth\_hiremath](https://www.ruby-forum.com/u/prashanth_hiremath)\
**Replies:** 3\
**Last updated:** [September 8, 2009, 9:01am UTC](https://www.ruby-forum.com/t/hpricot-search/175105 "2009-09-08T09:01:24Z")

</div>

I have an html like Red\< …… blue … I have to write code in such way that i wanna search text until between 2 span Ex: …

---

## [Controller Actions](https://www.ruby-forum.com/t/controller-actions/175109)

<div class="topic-metadata">

**Author:** [@avantec](https://www.ruby-forum.com/u/avantec)\
**Replies:** 1\
**Last updated:** [September 8, 2009, 7:59am UTC](https://www.ruby-forum.com/t/controller-actions/175109 "2009-09-08T07:59:20Z")

</div>

Hi All, How do I get all the actions & methods from a no. of controllers & export it into excel. Thanks in Advance, Avantec

---

## [Producing URL friendly encoded params?](https://www.ruby-forum.com/t/producing-url-friendly-encoded-params/175101)

<div class="topic-metadata">

**Author:** [@uberllama](https://www.ruby-forum.com/u/uberllama)\
**Replies:** 0\
**Last updated:** [September 8, 2009, 1:40am UTC](https://www.ruby-forum.com/t/producing-url-friendly-encoded-params/175101 "2009-09-08T01:40:41Z")

</div>

Hi folks. Looking for a simple, yet face-punchingly evasive bit of functionality. Basically, I want to encrypt/decrypt an action parameter, such as: foo.com/users/encodedvalue/action I feel I have the hard part done,…

---

## [ActiveRecord find on legacy database having enum columns problem](https://www.ruby-forum.com/t/activerecord-find-on-legacy-database-having-enum-columns-problem/175093)

<div class="topic-metadata">

**Author:** [@Bob\_O](https://www.ruby-forum.com/u/Bob_O)\
**Replies:** 2\
**Last updated:** [September 8, 2009, 12:24am UTC](https://www.ruby-forum.com/t/activerecord-find-on-legacy-database-having-enum-columns-problem/175093 "2009-09-08T00:24:36Z")

</div>

hello, Im interfacing a PHP app with my rails app and one of the tables im trying to do a find on has an enum column. So when i run the find, its adding an extra condition. This is my first time interfacing with a DB …

---

## [Using a generator to handle migrations](https://www.ruby-forum.com/t/using-a-generator-to-handle-migrations/175085)

<div class="topic-metadata">

**Author:** [@arjackson](https://www.ruby-forum.com/u/arjackson)\
**Replies:** 4\
**Last updated:** [September 7, 2009, 11:13pm UTC](https://www.ruby-forum.com/t/using-a-generator-to-handle-migrations/175085 "2009-09-07T23:13:11Z")

</div>

James, on your presentation at railsconf ( http://rails-engines.org/news/2009/05/18/engines-at-railsconf/) you suggest (for now) making your own generator to handle the migrations issue. Can you elaborate on that m…

---

## [Actionmailer 2.3.4 error](https://www.ruby-forum.com/t/actionmailer-2-3-4-error/175020)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 1\
**Last updated:** [September 7, 2009, 11:01pm UTC](https://www.ruby-forum.com/t/actionmailer-2-3-4-error/175020 "2009-09-07T23:01:29Z")

</div>

Hello - I’m using action mailer in a SVN post-commit script to send out emails. Everything was working fine with actionmailer 2.2.2. Now that U upgraded to actionmailer 2.3.4 I’m getting errors. This is the code I’m…

---

## [Mysql problem](https://www.ruby-forum.com/t/mysql-problem/175041)

<div class="topic-metadata">

**Author:** [@player123](https://www.ruby-forum.com/u/player123)\
**Replies:** 3\
**Last updated:** [September 7, 2009, 9:55pm UTC](https://www.ruby-forum.com/t/mysql-problem/175041 "2009-09-07T21:55:20Z")

</div>

hi. im new to rails. how do i set mysql to be my default database? when i open the .yml file its always set to sqllite. im following this book called ‘railsspace’ and it says i should use mysql but i cant because its …

---

## [Routing based on browser width](https://www.ruby-forum.com/t/routing-based-on-browser-width/175021)

<div class="topic-metadata">

**Author:** [@dansinker](https://www.ruby-forum.com/u/dansinker)\
**Replies:** 5\
**Last updated:** [September 7, 2009, 9:10pm UTC](https://www.ruby-forum.com/t/routing-based-on-browser-width/175021 "2009-09-07T21:10:16Z")

</div>

I have a site that’s directed toward mobile use. As a result, the basic structure consists of pages that render exclusively on mobile devices, and then corresponding pages for desktop browsers that explain that they n…

---

## [Format of a string, array or hash](https://www.ruby-forum.com/t/format-of-a-string-array-or-hash/175048)

<div class="topic-metadata">

**Author:** [@hugues](https://www.ruby-forum.com/u/hugues)\
**Replies:** 4\
**Last updated:** [September 7, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/format-of-a-string-array-or-hash/175048 "2009-09-07T20:48:27Z")

</div>

Hello there, I do not know if my topic is right so I’ll explain the problem : I have a Project model : class Project \< ActiveRecord::Base has\_and\_belongs\_to\_many :services end In my views. I would like to list the …

---

## [Errors with actionmailer + gmail](https://www.ruby-forum.com/t/errors-with-actionmailer-gmail/175050)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 3\
**Last updated:** [September 7, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/errors-with-actionmailer-gmail/175050 "2009-09-07T20:45:28Z")

</div>

trying to get a rails app to work with Gmail under ruby 1.8.6, but getting some weird errors, any help really appreciated. Basically I installed the openrain-tls gem from here: then added my settings to : smtp\_gmail.…

---

## [Using an IDE as just a text editor?](https://www.ruby-forum.com/t/using-an-ide-as-just-a-text-editor/174856)

<div class="topic-metadata">

**Author:** [@AlwaysCharging](https://www.ruby-forum.com/u/AlwaysCharging)\
**Replies:** 11\
**Last updated:** [September 7, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/using-an-ide-as-just-a-text-editor/174856 "2009-09-07T20:21:02Z")

</div>

I’ve been messing around with RadRails and Netbeans, and I can’t seem to find out how to import all of the folders of my rails project. I can find each file and open it up and edit them in each of the IDEs, but I can…

---

## [Trying to delete all but most recent 10](https://www.ruby-forum.com/t/trying-to-delete-all-but-most-recent-10/175046)

<div class="topic-metadata">

**Author:** [@RVince](https://www.ruby-forum.com/u/RVince)\
**Replies:** 8\
**Last updated:** [September 7, 2009, 8:12pm UTC](https://www.ruby-forum.com/t/trying-to-delete-all-but-most-recent-10/175046 "2009-09-07T20:12:10Z")

</div>

I have a table where I am trying to delete all but the 10 most recent records. My code is as follows: cnotes = Channelnote.find(:all, :order =\> ‘tstamp DESC’, :limit =\> 10, :conditions =\> \[“deleted=0”\]) Channelnote…

---

## [New db:seed feature... any howto out there already?](https://www.ruby-forum.com/t/new-db-seed-feature-any-howto-out-there-already/175088)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 1\
**Last updated:** [September 7, 2009, 8:08pm UTC](https://www.ruby-forum.com/t/new-db-seed-feature-any-howto-out-there-already/175088 "2009-09-07T20:08:13Z")

</div>

Hello, I just found out that 2.3.4 includes a db:seed feature to load seed data into the application. Couldn’t find anything that explains how to use it. Does anyone know a howto or something like that? Thanks, Hein…

---

## [Recommend an open-source Ruby on Rails E-Commerce](https://www.ruby-forum.com/t/recommend-an-open-source-ruby-on-rails-e-commerce/175019)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 3\
**Last updated:** [September 7, 2009, 5:16pm UTC](https://www.ruby-forum.com/t/recommend-an-open-source-ruby-on-rails-e-commerce/175019 "2009-09-07T17:16:06Z")

</div>

Hi all Could you please recommend an open-source Ruby on Rails E-Commerce? Something that I can use as a framework, or as a template to build an e-store thanks j

---

## [Recommend an open-source RonR to sreate surveys](https://www.ruby-forum.com/t/recommend-an-open-source-ronr-to-sreate-surveys/175045)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 2\
**Last updated:** [September 7, 2009, 3:57pm UTC](https://www.ruby-forum.com/t/recommend-an-open-source-ronr-to-sreate-surveys/175045 "2009-09-07T15:57:41Z")

</div>

Hi all I am looking for any template or application that will help me setting up a survey for statistical analysis thanks

---

## [Form field contains spurious text when it should be blank](https://www.ruby-forum.com/t/form-field-contains-spurious-text-when-it-should-be-blank/175083)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [September 7, 2009, 3:23pm UTC](https://www.ruby-forum.com/t/form-field-contains-spurious-text-when-it-should-be-blank/175083 "2009-09-07T15:23:53Z")

</div>

I have one form, for the field User expiry\_page\_url. The rails code looks like this \<div class='field'\> \<label for="user\_expiry\_page\_url"\>Expiry page url - make sure you include the full url, starting with ‘http://…

---

## [How to save a RSS to a file in public directory](https://www.ruby-forum.com/t/how-to-save-a-rss-to-a-file-in-public-directory/175081)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [September 7, 2009, 3:16pm UTC](https://www.ruby-forum.com/t/how-to-save-a-rss-to-a-file-in-public-directory/175081 "2009-09-07T15:16:46Z")

</div>

I’m trying to do something like a wget of a RSS and save the file with an specific name on public directoty. I’ll appreciate any help.

---

## [What includes do I need in a Ruby script to have access to Rails methods?](https://www.ruby-forum.com/t/what-includes-do-i-need-in-a-ruby-script-to-have-access-to-rails-methods/174985)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [September 7, 2009, 12:45pm UTC](https://www.ruby-forum.com/t/what-includes-do-i-need-in-a-ruby-script-to-have-access-to-rails-methods/174985 "2009-09-07T12:45:39Z")

</div>

Hi, BACKGROUND: I have a Ruby file I use via cron that makes use of my Ruby on Rails application code (e.g. it uses a model file to create records in the database). When I run this via cron I use “./script/runner …

---

## [\[ browsercms \] drag and droppable portlets](https://www.ruby-forum.com/t/browsercms-drag-and-droppable-portlets/175074)

<div class="topic-metadata">

**Author:** [@san2821](https://www.ruby-forum.com/u/san2821)\
**Replies:** 0\
**Last updated:** [September 7, 2009, 12:42pm UTC](https://www.ruby-forum.com/t/browsercms-drag-and-droppable-portlets/175074 "2009-09-07T12:42:08Z")

</div>

Hello, browsercms supports portlets which can be added to pages dynamically. Is there any way we can organise these portlets. ( drag and drop just like igoogle. ) Thanks for any ideas ? Sandip R~ – Ruby on Rails …

---

## [Best Practice: Delete Method](https://www.ruby-forum.com/t/best-practice-delete-method/175016)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 5\
**Last updated:** [September 7, 2009, 12:35pm UTC](https://www.ruby-forum.com/t/best-practice-delete-method/175016 "2009-09-07T12:35:41Z")

</div>

Hey, I was just wondering what the best practice for this situation would be. I’ve got two models(word, definition) both with destroy methods in the controllers that just change the model.status to “deleted”. In the …

---

## [Tag Search Showing, Best Method](https://www.ruby-forum.com/t/tag-search-showing-best-method/175029)

<div class="topic-metadata">

**Author:** [@Darquirrin](https://www.ruby-forum.com/u/Darquirrin)\
**Replies:** 2\
**Last updated:** [September 7, 2009, 11:13am UTC](https://www.ruby-forum.com/t/tag-search-showing-best-method/175029 "2009-09-07T11:13:09Z")

</div>

First, please allow me to say I am very new to Rails and Ruby in general. I have only been working with it… For about one month. I’ve read every book and watched every screencast I could find on the subject and as a r…

---

## [Which plugin to use for (image) files](https://www.ruby-forum.com/t/which-plugin-to-use-for-image-files/174952)

<div class="topic-metadata">

**Author:** [@jarl](https://www.ruby-forum.com/u/jarl)\
**Replies:** 2\
**Last updated:** [September 7, 2009, 11:08am UTC](https://www.ruby-forum.com/t/which-plugin-to-use-for-image-files/174952 "2009-09-07T11:08:28Z")

</div>

Hi. I hope I don’t start a religiuos war now. I am looking for a plugin to handle files (images actually). Here is a list of features that I would like I would like many images for a single model. (has\_many) I would…

---

## [WARNING: You don't have /Users/sammat/.gem/ruby /1.8/bin in your PATH, 	 gem executables will not](https://www.ruby-forum.com/t/warning-you-dont-have-users-sammat-gem-ruby-1-8-bin-in-your-path-gem-executables-will-not/175040)

<div class="topic-metadata">

**Author:** [@sammat](https://www.ruby-forum.com/u/sammat)\
**Replies:** 2\
**Last updated:** [September 7, 2009, 9:52am UTC](https://www.ruby-forum.com/t/warning-you-dont-have-users-sammat-gem-ruby-1-8-bin-in-your-path-gem-executables-will-not/175040 "2009-09-07T09:52:22Z")

</div>

Hello, I’m new to OS X and I’m new to RoR. Here’s what I see when going through my first tutorial on RoR. “WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and /usr/bin aren’t both writable. WARNING: You…

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

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