# Rails

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

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

---

## [Rails restful query and rspec](https://www.ruby-forum.com/t/rails-restful-query-and-rspec/125417)

<div class="topic-metadata">

**Author:** [@dhf](https://www.ruby-forum.com/u/dhf)\
**Replies:** 5\
**Last updated:** [January 9, 2008, 12:19am UTC](https://www.ruby-forum.com/t/rails-restful-query-and-rspec/125417 "2008-01-09T00:19:20Z")

</div>

I am working on a project that searches for an item number. But the item number is not unique. Which is better to do: /search/12345 or /search?id=12345 I would prefer to use the first one. I have a route for it as ma…

---

## [Script/server: Permission denied](https://www.ruby-forum.com/t/script-server-permission-denied/125425)

<div class="topic-metadata">

**Author:** [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Replies:** 7\
**Last updated:** [January 9, 2008, 12:05am UTC](https://www.ruby-forum.com/t/script-server-permission-denied/125425 "2008-01-09T00:05:02Z")

</div>

when I run script/server I get this error: script/server: Permission denied I’ve been running this app for awhile now. Not sure what would have caused the change. Any ideas? I’ve messed around with permissions on t…

---

## [Rails 2.x CalendarDateSelect](https://www.ruby-forum.com/t/rails-2-x-calendardateselect/125422)

<div class="topic-metadata">

**Author:** [@Wakazula](https://www.ruby-forum.com/u/Wakazula)\
**Replies:** 1\
**Last updated:** [January 9, 2008, 12:01am UTC](https://www.ruby-forum.com/t/rails-2-x-calendardateselect/125422 "2008-01-09T00:01:09Z")

</div>

Recently I have taken up learning rails 2.0 Unfortunately the SuperInplaceControls (the Rails 2 version of CalendarDateSelect) plugin has been giving me some trouble. It seems that rails does not realize the plugin h…

---

## [Console2](https://www.ruby-forum.com/t/console2/125305)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 4\
**Last updated:** [January 8, 2008, 11:40pm UTC](https://www.ruby-forum.com/t/console2/125305 "2008-01-08T23:40:04Z")

</div>

does anyone here use console2 with there RoR development? I already use e as my editor and after reading the blog on garbage burrito… I would love to use console2, I am not real familiar with setting something like…

---

## [Rails 2.0.2 Migration / Migrator issue](https://www.ruby-forum.com/t/rails-2-0-2-migration-migrator-issue/125421)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 11:22pm UTC](https://www.ruby-forum.com/t/rails-2-0-2-migration-migrator-issue/125421 "2008-01-08T23:22:28Z")

</div>

Windows XP, Rails 2.0.2, Ruby 1.8.5, sqlite3-ruby (1.2.1), SQLite version 3.3.8 I am hitting the following issue when using the ActiveRecord::Base.table\_name\_prefix This a basic out the box issue At a command prompt …

---

## [Help moving data from one view to another](https://www.ruby-forum.com/t/help-moving-data-from-one-view-to-another/125410)

<div class="topic-metadata">

**Author:** [@rubylicious](https://www.ruby-forum.com/u/rubylicious)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 10:18pm UTC](https://www.ruby-forum.com/t/help-moving-data-from-one-view-to-another/125410 "2008-01-08T22:18:13Z")

</div>

I’m developing an application that has several data models that are related as such: (–\> denotes “consists of”) Course --\> Topics --\> Screens Screens are based on HTML templates called “building blocks”. These buil…

---

## [Add comments to ALL models (ie automatically add has\_many)](https://www.ruby-forum.com/t/add-comments-to-all-models-ie-automatically-add-has-many/125403)

<div class="topic-metadata">

**Author:** [@uncle](https://www.ruby-forum.com/u/uncle)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 10:03pm UTC](https://www.ruby-forum.com/t/add-comments-to-all-models-ie-automatically-add-has-many/125403 "2008-01-08T22:03:22Z")

</div>

I have the acts\_as\_commentable and a bunch of others added to pretty much every model, is there a way to automaically add these to EVERY model ? I tried the following but it fails with an error… ActiveRecord::Base.cl…

---

## [How to use logger.info to debug](https://www.ruby-forum.com/t/how-to-use-logger-info-to-debug/125396)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 2\
**Last updated:** [January 8, 2008, 10:00pm UTC](https://www.ruby-forum.com/t/how-to-use-logger-info-to-debug/125396 "2008-01-08T22:00:25Z")

</div>

How can I use logger.info to output data to development.log so that I can then just “tail” that log, rather than getting information overload? It looks to me like the the SELECT resulting from FeedsController#add\_som…

---

## [Why is locomotive unneccessary for leopard?](https://www.ruby-forum.com/t/why-is-locomotive-unneccessary-for-leopard/125406)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 9:56pm UTC](https://www.ruby-forum.com/t/why-is-locomotive-unneccessary-for-leopard/125406 "2008-01-08T21:56:54Z")

</div>

I am confused, locomotive is no longer being developed because it is obsolete with leopard. Why is this? What does leopard have that tiger doesnt? Thanks!

---

## [Update rails to 2.0.2, have some questions](https://www.ruby-forum.com/t/update-rails-to-2-0-2-have-some-questions/125405)

<div class="topic-metadata">

**Author:** [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 9:49pm UTC](https://www.ruby-forum.com/t/update-rails-to-2-0-2-have-some-questions/125405 "2008-01-08T21:49:17Z")

</div>

When I update rails from 1.2.6 to 2.0.2. I got some questions, but I don’t know how to figure out them. 1:undefined method \`strip\_tags’ there is not function strip\_tags() in rails 2.0.2? 2: if I use init\_gettext “my…

---

## [Which Scaffolding Plugin for Rails 2?](https://www.ruby-forum.com/t/which-scaffolding-plugin-for-rails-2/125357)

<div class="topic-metadata">

**Author:** [@fredistic](https://www.ruby-forum.com/u/fredistic)\
**Replies:** 4\
**Last updated:** [January 8, 2008, 9:45pm UTC](https://www.ruby-forum.com/t/which-scaffolding-plugin-for-rails-2/125357 "2008-01-08T21:45:46Z")

</div>

So, which scaffolding has been tested with Rails 2 ? \<insert generic excuse for taking such shortcuts, invoking experimentation, customer pressure, and so on…\> f

---

## [What are your experiences with Rails production stability?](https://www.ruby-forum.com/t/what-are-your-experiences-with-rails-production-stability/125363)

<div class="topic-metadata">

**Author:** [@Java](https://www.ruby-forum.com/u/Java)\
**Replies:** 4\
**Last updated:** [January 8, 2008, 9:28pm UTC](https://www.ruby-forum.com/t/what-are-your-experiences-with-rails-production-stability/125363 "2008-01-08T21:28:46Z")

</div>

Hi, Where I work we’re planning the development of a web-based collaboration tool. We are currently trying to figure out which kind of framework would be the best for our purpose and have nailed the choices down to D…

---

## [Acts\_as\_ferret and ajax](https://www.ruby-forum.com/t/acts-as-ferret-and-ajax/125343)

<div class="topic-metadata">

**Author:** [@bartee](https://www.ruby-forum.com/u/bartee)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 9:13pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-and-ajax/125343 "2008-01-08T21:13:32Z")

</div>

I want to do a thing like Google does in the eMail name lookup, where I can type a few characters and then make ajax call and get back a list TIA

---

## [Rails Solutions for E-commerce / Oscommerce / who to hire?](https://www.ruby-forum.com/t/rails-solutions-for-e-commerce-oscommerce-who-to-hire/125392)

<div class="topic-metadata">

**Author:** [@Phil\_B](https://www.ruby-forum.com/u/Phil_B)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 8:51pm UTC](https://www.ruby-forum.com/t/rails-solutions-for-e-commerce-oscommerce-who-to-hire/125392 "2008-01-08T20:51:50Z")

</div>

Hi Rails folks. I have a client who has been running oscommerce for many years. And I, back in that day, helped him deploy it. I have deployed over 40 oscommerce installations and done 1000+ hours of customizing for …

---

## [\[ANN\] RubyCamp 2008 (Vancouver-Jan/26th) - Call for Speakers, Sponsors, Hack-a-thon Projects](https://www.ruby-forum.com/t/ann-rubycamp-2008-vancouver-jan-26th-call-for-speakers-sponsors-hack-a-thon-projects/125397)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 8:42pm UTC](https://www.ruby-forum.com/t/ann-rubycamp-2008-vancouver-jan-26th-call-for-speakers-sponsors-hack-a-thon-projects/125397 "2008-01-08T20:42:28Z")

</div>

Hello, == Call for Speakers - We Heart JavaScript Talks (Ruby’s Ugly-Cool Half-Sister) == Just a reminder that you’re invited to sign-up for a talk at the upcoming RubyCamp 2008. The sooner you send in your talk prop…

---

## [New Rails app/old database - how to make them work together?](https://www.ruby-forum.com/t/new-rails-app-old-database-how-to-make-them-work-together/125375)

<div class="topic-metadata">

**Author:** [@cbandes](https://www.ruby-forum.com/u/cbandes)\
**Replies:** 3\
**Last updated:** [January 8, 2008, 8:19pm UTC](https://www.ruby-forum.com/t/new-rails-app-old-database-how-to-make-them-work-together/125375 "2008-01-08T20:19:12Z")

</div>

Hi guys - I have been searching and searching but I am just so confused. Here is my situation: I am working on a front-end to an existing database. It’s strictly lookup, no create/update/drop - just trying to get data…

---

## [Half way from re-building an object .... just a little bit of brain](https://www.ruby-forum.com/t/half-way-from-re-building-an-object-just-a-little-bit-of-brain/125389)

<div class="topic-metadata">

**Author:** [@Erwin](https://www.ruby-forum.com/u/Erwin)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 8:05pm UTC](https://www.ruby-forum.com/t/half-way-from-re-building-an-object-just-a-little-bit-of-brain/125389 "2008-01-08T20:05:22Z")

</div>

I found that it’s easy w Rails 2.0 to deserialize ! data = XmlSimple.xml\_in(result) v = Hash.from\_xml(result).values.first =\> {“membership\_at”=\>“2007-03-28T21:25:31Z”, “display\_name”=\>“chane850”, “first\_name”=\>nil, “…

---

## [Create a folder save a file in that and zip the folder](https://www.ruby-forum.com/t/create-a-folder-save-a-file-in-that-and-zip-the-folder/125319)

<div class="topic-metadata">

**Author:** [@raju\_k](https://www.ruby-forum.com/u/raju_k)\
**Replies:** 2\
**Last updated:** [January 8, 2008, 7:32pm UTC](https://www.ruby-forum.com/t/create-a-folder-save-a-file-in-that-and-zip-the-folder/125319 "2008-01-08T19:32:56Z")

</div>

hi, can anyone help me. I want to create a folder, create another file of .url type and save the .url file in the folder and zip the folder. I am sending the code which I have written. dir\_name = Dir.new(“Institutio…

---

## [Need input on DB/table design](https://www.ruby-forum.com/t/need-input-on-db-table-design/125368)

<div class="topic-metadata">

**Author:** [@spokra](https://www.ruby-forum.com/u/spokra)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 7:27pm UTC](https://www.ruby-forum.com/t/need-input-on-db-table-design/125368 "2008-01-08T19:27:33Z")

</div>

I’m building a site… Dah!! and it requires different skills for different jobs in different states. the site will start off in only one state but I want to make sure I’m ready for many states. I’m thinking of a gen…

---

## [DB Design Question](https://www.ruby-forum.com/t/db-design-question/125362)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 5\
**Last updated:** [January 8, 2008, 6:36pm UTC](https://www.ruby-forum.com/t/db-design-question/125362 "2008-01-08T18:36:40Z")

</div>

Not sure if this is the best place to post this, but here goes: I am developing a test application which will simulate a movie cataloging system in which you can lend movies to other users you are friends with. To do…

---

## [Lazy boolean tests in SQL?](https://www.ruby-forum.com/t/lazy-boolean-tests-in-sql/125379)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/lazy-boolean-tests-in-sql/125379 "2008-01-08T18:19:52Z")

</div>

I’m doing a ferret find\_by\_contents search which searches multiple tables. One of the conditions i’m putting through is a test on a column that some of the tables don’t have, which is making the test crash. To be spe…

---

## [Object relations in memory](https://www.ruby-forum.com/t/object-relations-in-memory/125378)

<div class="topic-metadata">

**Author:** [@xinit](https://www.ruby-forum.com/u/xinit)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/object-relations-in-memory/125378 "2008-01-08T18:07:27Z")

</div>

Hi all! I have the following situation: I’m creating an application where I have groups that can contain groups. I do in the following way: class Group \< ActiveRecord::Base belongs\_to :group, :class\_name =\> ‘Group’,…

---

## [Segmentation fault in mysql.rb](https://www.ruby-forum.com/t/segmentation-fault-in-mysql-rb/125374)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/segmentation-fault-in-mysql-rb/125374 "2008-01-08T17:49:03Z")

</div>

I am experiencing a crash in mysql.rb when using the Solr plugin to rebuild\_solr\_index. Eventually, although it occurs with varying numbers of records, I see a segmentation fault at line 1093 (or line 1095) in ActiveR…

---

## [MVC Blues - Who's In Control Here Anyway?](https://www.ruby-forum.com/t/mvc-blues-whos-in-control-here-anyway/125356)

<div class="topic-metadata">

**Author:** [@yinkyank](https://www.ruby-forum.com/u/yinkyank)\
**Replies:** 3\
**Last updated:** [January 8, 2008, 5:12pm UTC](https://www.ruby-forum.com/t/mvc-blues-whos-in-control-here-anyway/125356 "2008-01-08T17:12:57Z")

</div>

OK, this has me stumped…I have a Posts controller and model and a Comments controller and model. Posts has a show method and a corresponding view that shows a post and its associated comments, which are rendered with …

---

## [Encoding issue: is it Rails 2?](https://www.ruby-forum.com/t/encoding-issue-is-it-rails-2/125014)

<div class="topic-metadata">

**Author:** [@gers32](https://www.ruby-forum.com/u/gers32)\
**Replies:** 2\
**Last updated:** [January 8, 2008, 4:58pm UTC](https://www.ruby-forum.com/t/encoding-issue-is-it-rails-2/125014 "2008-01-08T16:58:54Z")

</div>

Hi, I recently upgraded from Rails 1.2.6 to Rails 2.0.2 and an application which used to correctly display European characters from an Oracle database (Win-1252) now screws them up. I previously had to convert from W…

---

## [Sortable.create](https://www.ruby-forum.com/t/sortable-create/125361)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/sortable-create/125361 "2008-01-08T16:52:16Z")

</div>

Hello, I need some help regarding sortable tree. I have a table which i have used a acts\_as\_tree. The table is named relations. I want the tree to be drag and drop so that i can put a relation inside a relation. Can …

---

## [Server performance is...let's just say less than perfect](https://www.ruby-forum.com/t/server-performance-is-lets-just-say-less-than-perfect/125314)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 11\
**Last updated:** [January 8, 2008, 4:27pm UTC](https://www.ruby-forum.com/t/server-performance-is-lets-just-say-less-than-perfect/125314 "2008-01-08T16:27:48Z")

</div>

I deployed an app to a Linode 360 VPS, and have notices a huge fluctuation in performance, ie 50req/sec down to 2req/sec. Seeing as it was at 50 at one time I can’t see the reason being in the code. I just wanted to …

---

## [Generate database from xml file](https://www.ruby-forum.com/t/generate-database-from-xml-file/125358)

<div class="topic-metadata">

**Author:** [@ajitonrails](https://www.ruby-forum.com/u/ajitonrails)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/generate-database-from-xml-file/125358 "2008-01-08T16:06:09Z")

</div>

hello All I recently downloaded a sample RoR project and tried to execute rake db:migrate. only one table got created. but i noticed one xml file in db folder. it has whole database structure. i mean tables, data and…

---

## [Hiding resource fields](https://www.ruby-forum.com/t/hiding-resource-fields/125359)

<div class="topic-metadata">

**Author:** [@rubenfonseca](https://www.ruby-forum.com/u/rubenfonseca)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/hiding-resource-fields/125359 "2008-01-08T15:59:06Z")

</div>

Hi! I’ve a Rails 2.0 site using RESTful resources. I added JSON support too, so the model can be get through HTML (using my views), XML and JSON (using .to\_xml and .to\_json) The problem is that I want to hide some fi…

---

## [Layout problems - your help please](https://www.ruby-forum.com/t/layout-problems-your-help-please/125341)

<div class="topic-metadata">

**Author:** [@Some1](https://www.ruby-forum.com/u/Some1)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/layout-problems-your-help-please/125341 "2008-01-08T15:17:07Z")

</div>

Hello Folks, I have finished my project from coding side and now I am trying create layouts for all pages, there is page has list of information from database this is as index page and I called postlist.rhtml. The pr…

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

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