# Rails

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

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

---

## [Video player](https://www.ruby-forum.com/t/video-player/128593)

<div class="topic-metadata">

**Author:** [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Replies:** 1\
**Last updated:** [February 9, 2008, 4:41am UTC](https://www.ruby-forum.com/t/video-player/128593 "2008-02-09T04:41:21Z")

</div>

I’m working on a rails project that requires a video flash player and a playlist. Does anyone have any direction? any good flash players with xml playlist?

---

## [Where is create\_table method defined?](https://www.ruby-forum.com/t/where-is-create-table-method-defined/128595)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 9, 2008, 4:25am UTC](https://www.ruby-forum.com/t/where-is-create-table-method-defined/128595 "2008-02-09T04:25:28Z")

</div>

Hi When scaffolding a model with Rails, you will get a migration file, say 001\_create\_items.rb that looks something like this: class CreateItems \< ActiveRecord::Migration def self.up create\_table :items do |t| … …

---

## [Werid script/plugin problem -- blocked or banned?](https://www.ruby-forum.com/t/werid-script-plugin-problem-blocked-or-banned/128532)

<div class="topic-metadata">

**Author:** [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Replies:** 2\
**Last updated:** [February 9, 2008, 4:08am UTC](https://www.ruby-forum.com/t/werid-script-plugin-problem-blocked-or-banned/128532 "2008-02-09T04:08:41Z")

</div>

Lately, I am unable to install plugins for my rails projects. Some examples: $ script/plugin install # → http://svn.rubyonrails.org/rails/plugins/open\_id\_authentication/ Plugin not found: \[“http://svn.rubyonrails.o…

---

## [Copy 'has\_many' objects with one SQL INSERT](https://www.ruby-forum.com/t/copy-has-many-objects-with-one-sql-insert/128576)

<div class="topic-metadata">

**Author:** [@DyingToLearn](https://www.ruby-forum.com/u/DyingToLearn)\
**Replies:** 1\
**Last updated:** [February 9, 2008, 3:10am UTC](https://www.ruby-forum.com/t/copy-has-many-objects-with-one-sql-insert/128576 "2008-02-09T03:10:25Z")

</div>

Hi, I have the following (this has been simplified to make the question at hand more obvious): user model has\_many favorites favorite model belongs\_to user After a new user is created, I want to copy all the favorit…

---

## [STI and inheritance "type" column class naming](https://www.ruby-forum.com/t/sti-and-inheritance-type-column-class-naming/128592)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 9, 2008, 2:46am UTC](https://www.ruby-forum.com/t/sti-and-inheritance-type-column-class-naming/128592 "2008-02-09T02:46:24Z")

</div>

I am running Rails 1.2.6. I am using a polymorphic association on a belongs to. My model itself is inherited from another A:R class. When my model gets saved its base class name gets saved, versus its “real” class na…

---

## [Rails versions and documentation, confused learning rails](https://www.ruby-forum.com/t/rails-versions-and-documentation-confused-learning-rails/127295)

<div class="topic-metadata">

**Author:** [@Mikey\_P](https://www.ruby-forum.com/u/Mikey_P)\
**Replies:** 4\
**Last updated:** [February 9, 2008, 1:42am UTC](https://www.ruby-forum.com/t/rails-versions-and-documentation-confused-learning-rails/127295 "2008-02-09T01:42:48Z")

</div>

Okay, I am new to rails. I see that the new release of rails does not apply to anything on the site with regards to tutorials including screencasts. What I don’t understand is how I am suppose to learn Rails 2.0 if th…

---

## [update\_Attributes stale Object error](https://www.ruby-forum.com/t/update-attributes-stale-object-error/128582)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 9, 2008, 1:14am UTC](https://www.ruby-forum.com/t/update-attributes-stale-object-error/128582 "2008-02-09T01:14:20Z")

</div>

Hi, IN one of my unit tests I get an ActiveRecord::StaleObjectError: Attempted to update a stale object object.save! in object I have apart from other stuff an after\_save method, which calls object.assosication.upd…

---

## [Again.............. Proplem in openssl](https://www.ruby-forum.com/t/again-proplem-in-openssl/128588)

<div class="topic-metadata">

**Author:** [@Mutati0N](https://www.ruby-forum.com/u/Mutati0N)\
**Replies:** 0\
**Last updated:** [February 9, 2008, 1:08am UTC](https://www.ruby-forum.com/t/again-proplem-in-openssl/128588 "2008-02-09T01:08:29Z")

</div>

hello every body , last few days ago , i posted problem while running the built in server WEBrick ,and the brother Reacher give me some solutions about it .you can get posts in the Post from here http://groups.googl…

---

## [Wildcard Subdomains & OS X Local Development](https://www.ruby-forum.com/t/wildcard-subdomains-os-x-local-development/128567)

<div class="topic-metadata">

**Author:** [@newmonarch](https://www.ruby-forum.com/u/newmonarch)\
**Replies:** 1\
**Last updated:** [February 9, 2008, 1:02am UTC](https://www.ruby-forum.com/t/wildcard-subdomains-os-x-local-development/128567 "2008-02-09T01:02:37Z")

</div>

I’m using the simple account\_location plugin to have virtual subdomains on my app (account.myapp.com - see Basecamp, Blinksale, etc.) How do you go about setting up your OS X system to play nice? I’d like to use Apac…

---

## [\[ANN\] ruport-util 0.13.0](https://www.ruby-forum.com/t/ann-ruport-util-0-13-0/128584)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [February 9, 2008, 12:56am UTC](https://www.ruby-forum.com/t/ann-ruport-util-0-13-0/128584 "2008-02-09T00:56:10Z")

</div>

== What is ruport-util? == A collection of utilities and support libraries for Ruby Reports\[0\]. It currently has support for: Basic Graphing via OpenFlashChart, AmCharts, Gruff and Scruffy (util/ graph) Report runne…

---

## [ActiveSupport::MultyByte car and cdr? Or 'head' and 'rest'](https://www.ruby-forum.com/t/activesupport-multybyte-car-and-cdr-or-head-and-rest/128573)

<div class="topic-metadata">

**Author:** [@Steven\_GSHarms](https://www.ruby-forum.com/u/Steven_GSHarms)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 11:31pm UTC](https://www.ruby-forum.com/t/activesupport-multybyte-car-and-cdr-or-head-and-rest/128573 "2008-02-08T23:31:40Z")

</div>

Hi, I’m working on an application which involves looking at words that have macrons ( that’s the “long sound” bar over a letter ). Under certain spellings the macrons move from macron-ized to ‘no macron’. I tried to…

---

## [CRUD data entry of a foreign key](https://www.ruby-forum.com/t/crud-data-entry-of-a-foreign-key/128571)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 11:28pm UTC](https://www.ruby-forum.com/t/crud-data-entry-of-a-foreign-key/128571 "2008-02-08T23:28:43Z")

</div>

I can change the foreign key for a row in the “calls” table through the console, but want to be able to assign a different login\_id to a specific “calls” record. This is done through the controller and the view? thu…

---

## [I want kiss her lips day and night](https://www.ruby-forum.com/t/i-want-kiss-her-lips-day-and-night/128569)

<div class="topic-metadata">

**Author:** [@zizo](https://www.ruby-forum.com/u/zizo)\
**Replies:** 1\
**Last updated:** [February 8, 2008, 11:11pm UTC](https://www.ruby-forum.com/t/i-want-kiss-her-lips-day-and-night/128569 "2008-02-08T23:11:26Z")

</div>

veryyyyyyyyyyy sexyyyyyyyy http://www.pic46.com/showthread.php?t=325

---

## [Attachment\_fu - leading slash problem](https://www.ruby-forum.com/t/attachment-fu-leading-slash-problem/128570)

<div class="topic-metadata">

**Author:** [@Robin\_F](https://www.ruby-forum.com/u/Robin_F)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 11:09pm UTC](https://www.ruby-forum.com/t/attachment-fu-leading-slash-problem/128570 "2008-02-08T23:09:21Z")

</div>

Hi All, I’m using attachment\_fu to handle uploading some images. I’m using the path\_prefix option to set the path as ‘public/portfolio\_images’ and this is then symlinked to an identically named directory in the shared …

---

## [Setting blanks](https://www.ruby-forum.com/t/setting-blanks/128543)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 4\
**Last updated:** [February 8, 2008, 10:43pm UTC](https://www.ruby-forum.com/t/setting-blanks/128543 "2008-02-08T22:43:35Z")

</div>

I have this form which has a whole bunch of stuff for a user to fill out, not all of the fields have to be filled, but the one that are left blank I need to enter a dummie value for in the database because all that st…

---

## [Setting Up Rails as Part of a Portable Server](https://www.ruby-forum.com/t/setting-up-rails-as-part-of-a-portable-server/128566)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 10:35pm UTC](https://www.ruby-forum.com/t/setting-up-rails-as-part-of-a-portable-server/128566 "2008-02-08T22:35:12Z")

</div>

Hey, I use XAMPP Lite for all my Apache/PHP/MySQL needs, is it possible to setup rails portably without disturbing the current operations? I can elaborate on points if needed, I realise this may be a bit vague :sligh…

---

## [Rails problem on new installation](https://www.ruby-forum.com/t/rails-problem-on-new-installation/128489)

<div class="topic-metadata">

**Author:** [@chadmichael](https://www.ruby-forum.com/u/chadmichael)\
**Replies:** 1\
**Last updated:** [February 8, 2008, 9:54pm UTC](https://www.ruby-forum.com/t/rails-problem-on-new-installation/128489 "2008-02-08T21:54:28Z")

</div>

I’ve just installed my first batch of RoR. I’ve got: ruby version 1.8.5 gems 1.0.1 rails 2.0.2 When I try to build the skeleton app with: rails myApp I get the following errors: /usr/bin/rails: line 9: require: …

---

## [Ruby-debug in Windows Vista](https://www.ruby-forum.com/t/ruby-debug-in-windows-vista/128007)

<div class="topic-metadata">

**Author:** [@makire](https://www.ruby-forum.com/u/makire)\
**Replies:** 3\
**Last updated:** [February 8, 2008, 9:45pm UTC](https://www.ruby-forum.com/t/ruby-debug-in-windows-vista/128007 "2008-02-08T21:45:39Z")

</div>

Hi I have run Rails on Linux til now but now I have to use Vista. I use InstantRails 1.7 but when I try to install the ruby-debug gem it says that it misses an nmake program. Does anyone know what this is and how to …

---

## [Socket Connection to Server and Response is in ISO 8859-1 charset](https://www.ruby-forum.com/t/socket-connection-to-server-and-response-is-in-iso-8859-1-charset/128340)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 8, 2008, 9:05pm UTC](https://www.ruby-forum.com/t/socket-connection-to-server-and-response-is-in-iso-8859-1-charset/128340 "2008-02-08T21:05:38Z")

</div>

Hi, in my little rail application I have to communicate with a server and everything works great. Except one issue: The server responses are in ISO 8859-1 charset and it seems that I am not able to convert that to ut…

---

## [Fastercsv import fails with: ActiveRecord::StatementInvalid](https://www.ruby-forum.com/t/fastercsv-import-fails-with-activerecord-statementinvalid/128559)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 8:44pm UTC](https://www.ruby-forum.com/t/fastercsv-import-fails-with-activerecord-statementinvalid/128559 "2008-02-08T20:44:51Z")

</div>

This is more a ruby question than rails, really, but here goes: How does the “row” ?variable? come into play? That is, how is it used? Somehow, “login” needs to be defined so that the effect is similar to what’s in d…

---

## [Paginator gem](https://www.ruby-forum.com/t/paginator-gem/128459)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 8, 2008, 8:38pm UTC](https://www.ruby-forum.com/t/paginator-gem/128459 "2008-02-08T20:38:24Z")

</div>

Not sure if the is the right place to ask about gems; point me to the right place if this is not. I installed the paginator (1.1.0) gem but my application can’t seem to find it. I’m getting: NameError in NodeControll…

---

## [I want kiss her lips day and night](https://www.ruby-forum.com/t/i-want-kiss-her-lips-day-and-night/128550)

<div class="topic-metadata">

**Author:** [@zizo](https://www.ruby-forum.com/u/zizo)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 7:32pm UTC](https://www.ruby-forum.com/t/i-want-kiss-her-lips-day-and-night/128550 "2008-02-08T19:32:22Z")

</div>

wooooooooooooooooooooow http://www.pic46.com/showthread.php?t=325

---

## [Baking rails 1.2.6 cookies and sessions](https://www.ruby-forum.com/t/baking-rails-1-2-6-cookies-and-sessions/128495)

<div class="topic-metadata">

**Author:** [@Mikey\_P](https://www.ruby-forum.com/u/Mikey_P)\
**Replies:** 4\
**Last updated:** [February 8, 2008, 7:28pm UTC](https://www.ruby-forum.com/t/baking-rails-1-2-6-cookies-and-sessions/128495 "2008-02-08T19:28:50Z")

</div>

Hi, Is there documentation on how to use CookieStore for sessions in rails 1.2.6? I have added this to environment.rb, but it’s not working. config.action\_controller.session\_store = { :session\_key =\> ‘\_yummy\_session…

---

## [Rails routing demystified](https://www.ruby-forum.com/t/rails-routing-demystified/128548)

<div class="topic-metadata">

**Author:** [@sharon](https://www.ruby-forum.com/u/sharon)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 6:08pm UTC](https://www.ruby-forum.com/t/rails-routing-demystified/128548 "2008-02-08T18:08:57Z")

</div>

Routing examines the URL of an incoming request and determines what the application should do. “Rails routing can be a bit of a tough nut to crack. But it turns out that most of the toughness resides in a small numbe…

---

## [Share layouts between applications](https://www.ruby-forum.com/t/share-layouts-between-applications/128481)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 4\
**Last updated:** [February 8, 2008, 5:28pm UTC](https://www.ruby-forum.com/t/share-layouts-between-applications/128481 "2008-02-08T17:28:08Z")

</div>

Is there a way to configure Rails to use layouts from an absolute path? I’d like to share one layout file between a ton of applications. The only thing close has been a symbolic link, which works but will not be accep…

---

## [How to find web\_service\_scaffold?](https://www.ruby-forum.com/t/how-to-find-web-service-scaffold/128541)

<div class="topic-metadata">

**Author:** [@Eivind\_LSSSSland-An](https://www.ruby-forum.com/u/Eivind_LSSSSland-An)\
**Replies:** 2\
**Last updated:** [February 8, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/how-to-find-web-service-scaffold/128541 "2008-02-08T17:19:52Z")

</div>

I’m trying to make a simple web service in rails 2.0.2, but are hvaing some problem with use the web service methods. This following class is used (among others): class WebController \< ApplicationController web\_servi…

---

## [Setting default values in a new AR model?](https://www.ruby-forum.com/t/setting-default-values-in-a-new-ar-model/128539)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 3:56pm UTC](https://www.ruby-forum.com/t/setting-default-values-in-a-new-ar-model/128539 "2008-02-08T15:56:24Z")

</div>

Currently, to set some default values, but also keep any values that the user specifies to new, i’m doing this: def initialize(\*params) defaults = {:resources =\> true, :lessons =\> true, :courses =\> true, :sort\_by =\>…

---

## [Implementation of a decision tree with radio buttons](https://www.ruby-forum.com/t/implementation-of-a-decision-tree-with-radio-buttons/128538)

<div class="topic-metadata">

**Author:** [@annaking](https://www.ruby-forum.com/u/annaking)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/implementation-of-a-decision-tree-with-radio-buttons/128538 "2008-02-08T15:50:35Z")

</div>

Hi all! I have been using ruby on rails recently to create a data entry form coupled with a database for archaelogical findings in Greece. Until now I have managed to solve all minor problems through serching the web.…

---

## [FAILSAFE error with uploads](https://www.ruby-forum.com/t/failsafe-error-with-uploads/128369)

<div class="topic-metadata">

**Author:** [@KenM](https://www.ruby-forum.com/u/KenM)\
**Replies:** 2\
**Last updated:** [February 8, 2008, 3:16pm UTC](https://www.ruby-forum.com/t/failsafe-error-with-uploads/128369 "2008-02-08T15:16:48Z")

</div>

I’ve just upgraded a production web site with some new code to handle file uploads, using both the standard post technique and swfupload. This code was working perfectly in my development environment, and I’m not sure…

---

## [Simple Ruby question](https://www.ruby-forum.com/t/simple-ruby-question/128447)

<div class="topic-metadata">

**Author:** [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Replies:** 9\
**Last updated:** [February 8, 2008, 3:12pm UTC](https://www.ruby-forum.com/t/simple-ruby-question/128447 "2008-02-08T15:12:04Z")

</div>

Trying to do something simple in my view: 1: \<% @rating = ratable.rating unless ratable.nil? -%\> 2: \<% @rating = rating unless rating.nil? %\> but whenever ratable is undefined, this fails with "undefined local variab…

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

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