# Rails

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

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

---

## [Protecting code and licensing for independently deployed Rails applications...?](https://www.ruby-forum.com/t/protecting-code-and-licensing-for-independently-deployed-rails-applications/172063)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 1\
**Last updated:** [July 14, 2009, 3:42am UTC](https://www.ruby-forum.com/t/protecting-code-and-licensing-for-independently-deployed-rails-applications/172063 "2009-07-14T03:42:12Z")

</div>

Hi All, I’m writing a Rails application which will have reasonably regular updates – nothing abnormal here. I face a problem, however, due to the distribution model. Basically the application will be sold for stand…

---

## [Test problem](https://www.ruby-forum.com/t/test-problem/172029)

<div class="topic-metadata">

**Author:** [@Xiahong\_G](https://www.ruby-forum.com/u/Xiahong_G)\
**Replies:** 3\
**Last updated:** [July 14, 2009, 3:19am UTC](https://www.ruby-forum.com/t/test-problem/172029 "2009-07-14T03:19:18Z")

</div>

Hi everyone, I ran into some problems during testing. The problem was like: root\> ruby test/unit/game\_test.rb /usr/lib/ruby/1.8/test/unit/assertionfailederror.rb:7: Test is not a module (TypeError) from /usr/local/l…

---

## [Associations - Better solution?](https://www.ruby-forum.com/t/associations-better-solution/171971)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 9\
**Last updated:** [July 14, 2009, 2:46am UTC](https://www.ruby-forum.com/t/associations-better-solution/171971 "2009-07-14T02:46:35Z")

</div>

Hi all, I found what I think is a slick solution to a problem of mine but I’d like to know if there is a better way to accomplish what I did. I have 2 tables: Users: id category # can be either ‘ADMIN’, ‘AUDITOR’ o…

---

## [Replicating link\_to\_remote in raw js](https://www.ruby-forum.com/t/replicating-link-to-remote-in-raw-js/172042)

<div class="topic-metadata">

**Author:** [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Replies:** 1\
**Last updated:** [July 14, 2009, 2:38am UTC](https://www.ruby-forum.com/t/replicating-link-to-remote-in-raw-js/172042 "2009-07-14T02:38:24Z")

</div>

This is an interesting problem: I have a view that has a div that gets replaced by innerhtml using a settimer() in js. The settimer() invokes a js function (makemytable())that creates a table in html based on json da…

---

## [\[ANN\] External Search Sources Rails Engine](https://www.ruby-forum.com/t/ann-external-search-sources-rails-engine/172058)

<div class="topic-metadata">

**Author:** [@Kieran\_P](https://www.ruby-forum.com/u/Kieran_P)\
**Replies:** 0\
**Last updated:** [July 14, 2009, 2:10am UTC](https://www.ruby-forum.com/t/ann-external-search-sources-rails-engine/172058 "2009-07-14T02:10:21Z")

</div>

Announcing the release of the External Search Sources Rails Engine developed by Katipo Communications (http://katipo.co.nz) for Kete (http://kete.net.nz), and funded by Digital New Zealand (http:// digitalnz.org.nz) a…

---

## [Flash message not being displayed](https://www.ruby-forum.com/t/flash-message-not-being-displayed/170783)

<div class="topic-metadata">

**Author:** [@hypnos](https://www.ruby-forum.com/u/hypnos)\
**Replies:** 3\
**Last updated:** [July 14, 2009, 12:55am UTC](https://www.ruby-forum.com/t/flash-message-not-being-displayed/170783 "2009-07-14T00:55:36Z")

</div>

I can’t seem to get a flash message to display in my app after catching an exception. I have a method that loads the current user based on the current subdomain, the current\_subdomain\_user method throws an ActiveReco…

---

## [What's your favorite IDE or Editor for Rails?](https://www.ruby-forum.com/t/whats-your-favorite-ide-or-editor-for-rails/172053)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 2\
**Last updated:** [July 14, 2009, 12:33am UTC](https://www.ruby-forum.com/t/whats-your-favorite-ide-or-editor-for-rails/172053 "2009-07-14T00:33:28Z")

</div>

Hi all, I’m trying to put together a comprehensive list of IDEs and Editors for Rails that people enjoy using. I want to append this list to the “New to Rails” topic I’ve been expanding upon. If you could take the t…

---

## [Named\_scope and its :order function](https://www.ruby-forum.com/t/named-scope-and-its-order-function/171991)

<div class="topic-metadata">

**Author:** [@SSSSSSSSSS\_SSSSSSSS](https://www.ruby-forum.com/u/SSSSSSSSSS_SSSSSSSS)\
**Replies:** 4\
**Last updated:** [July 13, 2009, 11:16pm UTC](https://www.ruby-forum.com/t/named-scope-and-its-order-function/171991 "2009-07-13T23:16:50Z")

</div>

Could someone help me to solve my problem?I’m using named\_scope,and there seems to be a little problem… Can I sort a model by another model’s column?For example,I have a “users” table,it has a “value” column.And in …

---

## [DRY way of updating flash in AJAX](https://www.ruby-forum.com/t/dry-way-of-updating-flash-in-ajax/171966)

<div class="topic-metadata">

**Author:** [@jhaagmans](https://www.ruby-forum.com/u/jhaagmans)\
**Replies:** 3\
**Last updated:** [July 13, 2009, 10:07pm UTC](https://www.ruby-forum.com/t/dry-way-of-updating-flash-in-ajax/171966 "2009-07-13T22:07:53Z")

</div>

At this moment I’m implementing errors for my application. I have created a div for notices and warnings. The application only does AJAX requests, so it updates both flashes every time a request is made by the user. A…

---

## [Framework/templating language performance: Ruby vs. Rack vs. Sinatra and ERB vs. Builder vs. HAML](https://www.ruby-forum.com/t/framework-templating-language-performance-ruby-vs-rack-vs-sinatra-and-erb-vs-builder-vs-haml/172050)

<div class="topic-metadata">

**Author:** [@Rob\_Cameron](https://www.ruby-forum.com/u/Rob_Cameron)\
**Replies:** 0\
**Last updated:** [July 13, 2009, 9:50pm UTC](https://www.ruby-forum.com/t/framework-templating-language-performance-ruby-vs-rack-vs-sinatra-and-erb-vs-builder-vs-haml/172050 "2009-07-13T21:50:56Z")

</div>

For those interested in the nitty gritty of performance, I just posted part 1 of my Ultimate Ruby Performance test: Ruby vs. Rack vs. Sinatra each running ERB, Builder, HAML and plain HTML. http://www.ridingtheclutch…

---

## [Errors.add don't work](https://www.ruby-forum.com/t/errors-add-dont-work/171976)

<div class="topic-metadata">

**Author:** [@pink-ink](https://www.ruby-forum.com/u/pink-ink)\
**Replies:** 1\
**Last updated:** [July 13, 2009, 9:24pm UTC](https://www.ruby-forum.com/t/errors-add-dont-work/171976 "2009-07-13T21:24:00Z")

</div>

Hi RoR Comnunity! I made two virtual attributes to enter date into a text\_field. Here are the tbl\_bank.entries: date text\_field gueltig\_ab def gueltig\_ab\_string if gueltig\_ab gueltig\_ab.strftime(’%d.%m.%Y’) end en…

---

## [First app on Dreamhost with Passenger : "rails needs to know your username and password"?](https://www.ruby-forum.com/t/first-app-on-dreamhost-with-passenger-rails-needs-to-know-your-username-and-password/172034)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 6\
**Last updated:** [July 13, 2009, 9:13pm UTC](https://www.ruby-forum.com/t/first-app-on-dreamhost-with-passenger-rails-needs-to-know-your-username-and-password/172034 "2009-07-13T21:13:30Z")

</div>

I am trying to deploy my first rails app with Dreamhost. I ftp’d over my existing app, turned on Passenger and pointed it to my /public directory. When I go to ‘www.mydomain.com’ I get the ‘Ruby on Rails: Welcome ab…

---

## [Help with loading data with sequential id](https://www.ruby-forum.com/t/help-with-loading-data-with-sequential-id/172035)

<div class="topic-metadata">

**Author:** [@khagimoto](https://www.ruby-forum.com/u/khagimoto)\
**Replies:** 2\
**Last updated:** [July 13, 2009, 8:58pm UTC](https://www.ruby-forum.com/t/help-with-loading-data-with-sequential-id/172035 "2009-07-13T20:58:53Z")

</div>

Hello, I’m trying to load data into my mysql table using the following: ============ load\_codes\_data.rb ============ require ‘active\_record/fixtures’ class LoadCodesData \< ActiveRecord::Migration def self.up down …

---

## [Controller calling ..?](https://www.ruby-forum.com/t/controller-calling/172013)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 3\
**Last updated:** [July 13, 2009, 7:42pm UTC](https://www.ruby-forum.com/t/controller-calling/172013 "2009-07-13T19:42:39Z")

</div>

How can i call a function/method defined in a controller into another view … ?

---

## [Accessing model attribute name dynamically](https://www.ruby-forum.com/t/accessing-model-attribute-name-dynamically/171892)

<div class="topic-metadata">

**Author:** [@bikle](https://www.ruby-forum.com/u/bikle)\
**Replies:** 5\
**Last updated:** [July 13, 2009, 7:23pm UTC](https://www.ruby-forum.com/t/accessing-model-attribute-name-dynamically/171892 "2009-07-13T19:23:39Z")

</div>

I’m calling this action from within another action: edit\_meta(@table\_meta\_id, @field, @content) where @field is an attribute name for a Model. @table\_meta\_id is the id and @content is the new value for that attribute. …

---

## [Deployment on Dreamhost - Application Error](https://www.ruby-forum.com/t/deployment-on-dreamhost-application-error/171723)

<div class="topic-metadata">

**Author:** [@tonys](https://www.ruby-forum.com/u/tonys)\
**Replies:** 16\
**Last updated:** [July 13, 2009, 7:18pm UTC](https://www.ruby-forum.com/t/deployment-on-dreamhost-application-error/171723 "2009-07-13T19:18:53Z")

</div>

Hi, i’m a newb, just taught myself ruby/rails in the past 2 months and have been having headache after headache. i need to get my app running by the end of the week or my boss is going to kill me. The app runs great…

---

## [Dynamic paths](https://www.ruby-forum.com/t/dynamic-paths/171900)

<div class="topic-metadata">

**Author:** [@Bob\_O](https://www.ruby-forum.com/u/Bob_O)\
**Replies:** 7\
**Last updated:** [July 13, 2009, 6:32pm UTC](https://www.ruby-forum.com/t/dynamic-paths/171900 "2009-07-13T18:32:12Z")

</div>

does anyone know how i can make dynamic paths? say i had a partial for maybe an index list, but i want the link to the show page to be dynamic so im able to use the partial for may objects. \<%= link\_to “show”, “#{obj…

---

## [Ways to chart data in Rails?](https://www.ruby-forum.com/t/ways-to-chart-data-in-rails/171912)

<div class="topic-metadata">

**Author:** [@jessica\_s](https://www.ruby-forum.com/u/jessica_s)\
**Replies:** 14\
**Last updated:** [July 13, 2009, 6:23pm UTC](https://www.ruby-forum.com/t/ways-to-chart-data-in-rails/171912 "2009-07-13T18:23:20Z")

</div>

Hi, I am searching for plugins/gems which help me chart data. I’d like to start with something simple like a 2-D chart which shows a straight lines connecting points. The points would come from a series of x,y values…

---

## [Passing a DB connection between scripts](https://www.ruby-forum.com/t/passing-a-db-connection-between-scripts/172037)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [July 13, 2009, 6:17pm UTC](https://www.ruby-forum.com/t/passing-a-db-connection-between-scripts/172037 "2009-07-13T18:17:19Z")

</div>

I am attempting to test a stand-alone script. I wish to call the script from inside the test framework, passing it a variety of command line arguments, and verify the results. The difficulty I have is that the testin…

---

## [Database Diagram Advice needed plus Normalization](https://www.ruby-forum.com/t/database-diagram-advice-needed-plus-normalization/172036)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 1\
**Last updated:** [July 13, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/database-diagram-advice-needed-plus-normalization/172036 "2009-07-13T18:11:22Z")

</div>

Hi all, I’m getting into the meat of my application, namely transitional calculations between statistical tables. As a brief overview: 37 categorical statistics tables (independent data from one another) but each be…

---

## [Just a matter of taste or the need of a formal approach?](https://www.ruby-forum.com/t/just-a-matter-of-taste-or-the-need-of-a-formal-approach/172022)

<div class="topic-metadata">

**Author:** [@msmsms](https://www.ruby-forum.com/u/msmsms)\
**Replies:** 2\
**Last updated:** [July 13, 2009, 5:53pm UTC](https://www.ruby-forum.com/t/just-a-matter-of-taste-or-the-need-of-a-formal-approach/172022 "2009-07-13T17:53:55Z")

</div>

Hi, thanks for reading this post. At the moment, I am thinking about the following problem: Let’s assume the following situation: I’ve got two entity types called “User” and “Group”. Each entity type got some attrib…

---

## [How to integrate svn with rails](https://www.ruby-forum.com/t/how-to-integrate-svn-with-rails/172023)

<div class="topic-metadata">

**Author:** [@Xiahong\_G](https://www.ruby-forum.com/u/Xiahong_G)\
**Replies:** 3\
**Last updated:** [July 13, 2009, 5:39pm UTC](https://www.ruby-forum.com/t/how-to-integrate-svn-with-rails/172023 "2009-07-13T17:39:06Z")

</div>

Hi everyone, I am a newbie on rails. I tried to use svn to control my code version. However, I found the following problems: When I typed in “ruby script/generate scaffold product”, the added files were not applied i…

---

## [Conditions don't work](https://www.ruby-forum.com/t/conditions-dont-work/172026)

<div class="topic-metadata">

**Author:** [@plplpl](https://www.ruby-forum.com/u/plplpl)\
**Replies:** 3\
**Last updated:** [July 13, 2009, 4:59pm UTC](https://www.ruby-forum.com/t/conditions-dont-work/172026 "2009-07-13T16:59:50Z")

</div>

Hi there, I’m building a private message system for one of my sites. I’m now trying to give users the delete messages in their inbox (not destroy the records but put “archived = true” in them), so they don’t come up …

---

## [Installing mysql with macports](https://www.ruby-forum.com/t/installing-mysql-with-macports/171974)

<div class="topic-metadata">

**Author:** [@mikej](https://www.ruby-forum.com/u/mikej)\
**Replies:** 3\
**Last updated:** [July 13, 2009, 4:37pm UTC](https://www.ruby-forum.com/t/installing-mysql-with-macports/171974 "2009-07-13T16:37:02Z")

</div>

Not sure if this is off topic, but there doesn’t seem to be an obvious place to ask this question. I am trying to use MacPorts to install mysql. I have xcode 3.0 and x11 XQuartz 2.1.6 installed. $PATH: /opt/local/b…

---

## [Mysql error with named\_scope and any?](https://www.ruby-forum.com/t/mysql-error-with-named-scope-and-any/172027)

<div class="topic-metadata">

**Author:** [@tonypm](https://www.ruby-forum.com/u/tonypm)\
**Replies:** 0\
**Last updated:** [July 13, 2009, 3:52pm UTC](https://www.ruby-forum.com/t/mysql-error-with-named-scope-and-any/172027 "2009-07-13T15:52:03Z")

</div>

Hi - need some help to pin this one. Am upgrading a project to 2.3.2. Have changed has\_finder to named\_scope. But I am getting an invalid mysql syntax error with a finder that used to work I have: Batch has\_many…

---

## [ActiveRecord, PostgreSQL question](https://www.ruby-forum.com/t/activerecord-postgresql-question/171889)

<div class="topic-metadata">

**Author:** [@gsterndale](https://www.ruby-forum.com/u/gsterndale)\
**Replies:** 7\
**Last updated:** [July 13, 2009, 3:39pm UTC](https://www.ruby-forum.com/t/activerecord-postgresql-question/171889 "2009-07-13T15:39:11Z")

</div>

I’m using ActiveRecord’s connection to execute a custom query (which runs fine in psql) like this: result = ActiveRecord::Base.connection.execute(“COPY (select \* from users) TO STDOUT WITH CSV;”) SQL (0.8ms) COPY …

---

## [Running a single fixture](https://www.ruby-forum.com/t/running-a-single-fixture/172017)

<div class="topic-metadata">

**Author:** [@Stewart](https://www.ruby-forum.com/u/Stewart)\
**Replies:** 1\
**Last updated:** [July 13, 2009, 3:37pm UTC](https://www.ruby-forum.com/t/running-a-single-fixture/172017 "2009-07-13T15:37:26Z")

</div>

Hello. I need to run a single fixture on my server as part of an update to my application. I noticed that the other tables lost their data when I run “rake db:fixtures:load”. How do I make it so that only a single f…

---

## [Validation help](https://www.ruby-forum.com/t/validation-help/172025)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 0\
**Last updated:** [July 13, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/validation-help/172025 "2009-07-13T14:50:10Z")

</div>

hi all, i have a array of text\_field\_tags in my Edit form like below \<% @name\_list.each do |k|%\> Name \<%= text\_field\_tag “names\[#{k.id}\]”,"#{k.name}"%\> \<%end%\> I want to do modal validation for this form. Any ide…

---

## [How to manage Tab & Comma separated filds form single text f](https://www.ruby-forum.com/t/how-to-manage-tab-comma-separated-filds-form-single-text-f/172016)

<div class="topic-metadata">

**Author:** [@bhupsi1982](https://www.ruby-forum.com/u/bhupsi1982)\
**Replies:** 1\
**Last updated:** [July 13, 2009, 1:34pm UTC](https://www.ruby-forum.com/t/how-to-manage-tab-comma-separated-filds-form-single-text-f/172016 "2009-07-13T13:34:50Z")

</div>

Hi, I am modifying on script. I am using this script to import data form text-delimited file into PosgresSql database. I have already setup a code for tab separation but facing problem in comma separation. In text-de…

---

## [Problem deploying app on bluehost](https://www.ruby-forum.com/t/problem-deploying-app-on-bluehost/171854)

<div class="topic-metadata">

**Author:** [@saurabh](https://www.ruby-forum.com/u/saurabh)\
**Replies:** 5\
**Last updated:** [July 13, 2009, 1:22pm UTC](https://www.ruby-forum.com/t/problem-deploying-app-on-bluehost/171854 "2009-07-13T13:22:30Z")

</div>

Hi , I am new to ror and deploying my first app spot.us on bluehost , I am getting the following error : Application error Rails application failed to start properly I google and found that it may have something to …

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

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