# Rails

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

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

---

## [Locomotive Terminal destroys my PATH!](https://www.ruby-forum.com/t/locomotive-terminal-destroys-my-path/121833)

<div class="topic-metadata">

**Author:** [@ronny](https://www.ruby-forum.com/u/ronny)\
**Replies:** 0\
**Last updated:** [December 1, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/locomotive-terminal-destroys-my-path/121833 "2007-12-01T17:31:16Z")

</div>

I’m using Locomotive 2.0.8 on the Mac. My .bash\_profile - in its essence - looks like this: export PATH=.:$HOME/bin:/usr/local/bin:/usr/local/mysql/bin:$PATH Now I found that when I open a Terminal from within Locomot…

---

## [Using password\_field closes my eclipse](https://www.ruby-forum.com/t/using-password-field-closes-my-eclipse/121813)

<div class="topic-metadata">

**Author:** [@madhan](https://www.ruby-forum.com/u/madhan)\
**Replies:** 1\
**Last updated:** [December 1, 2007, 5:17pm UTC](https://www.ruby-forum.com/t/using-password-field-closes-my-eclipse/121813 "2007-12-01T17:17:59Z")

</div>

hi all, i am using eclipse 3.2 as my IDE for rails development, when i tried to create a login screen, if i use password\_field or password\_field\_tag it closes my eclipse and pops up a small window and says … JVM ter…

---

## [Newbie question: issue on creating blob field on mysql 5.x for windows](https://www.ruby-forum.com/t/newbie-question-issue-on-creating-blob-field-on-mysql-5-x-for-windows/121832)

<div class="topic-metadata">

**Author:** [@goodwill](https://www.ruby-forum.com/u/goodwill)\
**Replies:** 0\
**Last updated:** [December 1, 2007, 5:09pm UTC](https://www.ruby-forum.com/t/newbie-question-issue-on-creating-blob-field-on-mysql-5-x-for-windows/121832 "2007-12-01T17:09:37Z")

</div>

I tried to do a migration task as follows: lass CreateAttachmentBlob \< ActiveRecord::Migration def self.up add\_column :posts, :attachment\_thumbnail , :binary, :null=\>true, :limit=\>0.5.megabyte end def self.down re…

---

## [Attr\_readonly](https://www.ruby-forum.com/t/attr-readonly/121829)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 1\
**Last updated:** [December 1, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/attr-readonly/121829 "2007-12-01T16:25:43Z")

</div>

Hi, i’m using rails 2 pre release 2 (1.99.1). In a model (user) i’ve got some attribute set to “attr\_readonly” but when i create an object of this model @user = User.find\_or\_initialize\_by\_identity\_url(identity\_url) th…

---

## [RJS TypeError](https://www.ruby-forum.com/t/rjs-typeerror/121831)

<div class="topic-metadata">

**Author:** [@Altu\_59](https://www.ruby-forum.com/u/Altu_59)\
**Replies:** 1\
**Last updated:** [December 1, 2007, 4:08pm UTC](https://www.ruby-forum.com/t/rjs-typeerror/121831 "2007-12-01T16:08:44Z")

</div>

Hi all, When I execute the following RJS code: page\['inline-help'\].style.color = "'#ff0000'" I get this error: RJS error: \[Error: name: TypeError message: Statement on line 4: The Object does not implement \[\[Call\]\] …

---

## [Something like this for rails?](https://www.ruby-forum.com/t/something-like-this-for-rails/121830)

<div class="topic-metadata">

**Author:** [@kilo](https://www.ruby-forum.com/u/kilo)\
**Replies:** 1\
**Last updated:** [December 1, 2007, 3:34pm UTC](https://www.ruby-forum.com/t/something-like-this-for-rails/121830 "2007-12-01T15:34:15Z")

</div>

Is there something like this for Rails? Plugin or something?

---

## [REST API Documentation](https://www.ruby-forum.com/t/rest-api-documentation/121816)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 0\
**Last updated:** [December 1, 2007, 10:04am UTC](https://www.ruby-forum.com/t/rest-api-documentation/121816 "2007-12-01T10:04:19Z")

</div>

I have a REST API and I need documentation for it. Rather then do this by hand and update it anytime there are changes, I was wondering if there are any services out there to generate my documentation. Something like …

---

## ["Out of memory" error in active\_record\_runtime()](https://www.ruby-forum.com/t/out-of-memory-error-in-active-record-runtime/121803)

<div class="topic-metadata">

**Author:** [@tirsen](https://www.ruby-forum.com/u/tirsen)\
**Replies:** 1\
**Last updated:** [December 1, 2007, 8:29am UTC](https://www.ruby-forum.com/t/out-of-memory-error-in-active-record-runtime/121803 "2007-12-01T08:29:39Z")

</div>

I’ve come across an apparent bug in Rail 1.2.6 while going through the Depot sample code in “Agile Web D…”. I’ve done some searches, and couldn’t find anything referencing this problem. I’ve patched around it, but not…

---

## [Views & link\_to](https://www.ruby-forum.com/t/views-link-to/121806)

<div class="topic-metadata">

**Author:** [@danb](https://www.ruby-forum.com/u/danb)\
**Replies:** 1\
**Last updated:** [December 1, 2007, 6:59am UTC](https://www.ruby-forum.com/t/views-link-to/121806 "2007-12-01T06:59:41Z")

</div>

I have a few related questions about views. Specifically, how do you call link\_to from a method rather than a view? Calling from a method in the model, the result of ActionView::Helpers::UrlHelper.link\_to(…) is un…

---

## [What is the ruby way to check for permissions?](https://www.ruby-forum.com/t/what-is-the-ruby-way-to-check-for-permissions/121788)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [December 1, 2007, 6:24am UTC](https://www.ruby-forum.com/t/what-is-the-ruby-way-to-check-for-permissions/121788 "2007-12-01T06:24:02Z")

</div>

I have a model named Division which has\_many :courses Bottom line: I need the Ruby way to prevent someone from the id parameter to http://example.com/courses/edit/ so that they don’t hijack another user’s data. The co…

---

## [How about param\_name instead of params\[:name\]](https://www.ruby-forum.com/t/how-about-param-name-instead-of-params-name/121715)

<div class="topic-metadata">

**Author:** [@stephanwehner](https://www.ruby-forum.com/u/stephanwehner)\
**Replies:** 12\
**Last updated:** [December 1, 2007, 6:00am UTC](https://www.ruby-forum.com/t/how-about-param-name-instead-of-params-name/121715 "2007-12-01T06:00:40Z")

</div>

How about doing for params within ApplicationController what ActiveRecord has with find\_by\_column\_name : module ActionController class Base def method\_missing(method\_id, args, &block) if method\_id.to\_s =~ /^param\_(.)…

---

## [GoDaddy Application deployment](https://www.ruby-forum.com/t/godaddy-application-deployment/121675)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 16\
**Last updated:** [December 1, 2007, 5:05am UTC](https://www.ruby-forum.com/t/godaddy-application-deployment/121675 "2007-12-01T05:05:09Z")

</div>

I know GoDaddy is far from being an ideal host for a rails application but this is the one my client has and I don’t really have a choice. I tried to deploy the site yesterday and followed the instructions available o…

---

## [Scaffold leaving out column names ending in \_id?](https://www.ruby-forum.com/t/scaffold-leaving-out-column-names-ending-in-id/121769)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [December 1, 2007, 4:05am UTC](https://www.ruby-forum.com/t/scaffold-leaving-out-column-names-ending-in-id/121769 "2007-12-01T04:05:33Z")

</div>

I’ve been trying to get scaffold to display all fields in a simple table. I noticed that if a column name ends in ‘\_id’ the scaffold ignores it, also the scaffold does not display the primary key, named ‘id’. Where c…

---

## [Rails 2 problem with compute\_public\_path](https://www.ruby-forum.com/t/rails-2-problem-with-compute-public-path/121805)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 3\
**Last updated:** [December 1, 2007, 3:39am UTC](https://www.ruby-forum.com/t/rails-2-problem-with-compute-public-path/121805 "2007-12-01T03:39:14Z")

</div>

I’m trying to migrate to Rails 2, but keep getting these errors all over the place: ActionView::TemplateError: wrong number of arguments (2 for 3) On line #61 of users/new.rhtml 58: \<% if @captcha\_error -%\>\<d…

---

## [Basics on Installing a plugin](https://www.ruby-forum.com/t/basics-on-installing-a-plugin/121795)

<div class="topic-metadata">

**Author:** [@tomn](https://www.ruby-forum.com/u/tomn)\
**Replies:** 7\
**Last updated:** [December 1, 2007, 3:00am UTC](https://www.ruby-forum.com/t/basics-on-installing-a-plugin/121795 "2007-12-01T03:00:04Z")

</div>

OK this should be simple but I have read other guides and I just don’t get it. I found a plugin I want to install. Here is its directory with all the stuff I assume i needed installed: http://topfunky.net/svn/plugin…

---

## [Http://dev.rubyonrails.org/svn/rails/tags/rel\_1-2-6/activeresource' doesn't exist](https://www.ruby-forum.com/t/http-dev-rubyonrails-org-svn-rails-tags-rel-1-2-6-activeresource-doesnt-exist/121459)

<div class="topic-metadata">

**Author:** [@dmack](https://www.ruby-forum.com/u/dmack)\
**Replies:** 2\
**Last updated:** [December 1, 2007, 2:47am UTC](https://www.ruby-forum.com/t/http-dev-rubyonrails-org-svn-rails-tags-rel-1-2-6-activeresource-doesnt-exist/121459 "2007-12-01T02:47:48Z")

</div>

I’m attempting to update my frozen rails version from 1.2.5 to 1.2.6 and I get this error about activeresource not existing in 1.2.6 which appears to be true. However, I’m just wondering why I get this message; what …

---

## [Cool PC tricks and tips](https://www.ruby-forum.com/t/cool-pc-tricks-and-tips/121801)

<div class="topic-metadata">

**Author:** [@John\_Napzter](https://www.ruby-forum.com/u/John_Napzter)\
**Replies:** 1\
**Last updated:** [December 1, 2007, 1:11am UTC](https://www.ruby-forum.com/t/cool-pc-tricks-and-tips/121801 "2007-12-01T01:11:28Z")

</div>

Hey guys visit this for all cool tricks and tips for your PC http://123enter.blogspot.com Just click Tips n Tricks section Contents of this blog are: 1\]How To Turn On Your PC In Just 10 Seconds 2\]Make Free Pc To Pho…

---

## [Formats available for controller](https://www.ruby-forum.com/t/formats-available-for-controller/121798)

<div class="topic-metadata">

**Author:** [@stephanie](https://www.ruby-forum.com/u/stephanie)\
**Replies:** 0\
**Last updated:** [December 1, 2007, 12:43am UTC](https://www.ruby-forum.com/t/formats-available-for-controller/121798 "2007-12-01T00:43:45Z")

</div>

Hello, I was wondering if there is any way to retrieve the list of formats defined in the respond\_to block of a controller? For example if the following is in a controller: respond\_to do |format| format.html form…

---

## [Returning an object that might be nil](https://www.ruby-forum.com/t/returning-an-object-that-might-be-nil/121776)

<div class="topic-metadata">

**Author:** [@krystal](https://www.ruby-forum.com/u/krystal)\
**Replies:** 2\
**Last updated:** [December 1, 2007, 12:40am UTC](https://www.ruby-forum.com/t/returning-an-object-that-might-be-nil/121776 "2007-12-01T00:40:18Z")

</div>

So I have a question that I haven’t been able to find the answer to. Let’s say I have an api method that :returns an ActiveRecord::Base object. In that class (say, Cat \< ActiveRecord::Base) I have a method that finds…

---

## [Link\_to\_remote ignoring :action option](https://www.ruby-forum.com/t/link-to-remote-ignoring-action-option/121781)

<div class="topic-metadata">

**Author:** [@thanatos](https://www.ruby-forum.com/u/thanatos)\
**Replies:** 2\
**Last updated:** [December 1, 2007, 12:37am UTC](https://www.ruby-forum.com/t/link-to-remote-ignoring-action-option/121781 "2007-12-01T00:37:58Z")

</div>

link\_to\_remote(item.item\_num, {:url =\> {:action =\> ‘show’, :params =\> params.merge({:item\_num =\> item.item\_num} ) }, :update =\> ‘item\_show’ } ) The resulting link updates item\_show using /items/index/ item\_num…wherea…

---

## [Trying to hire full-time Rails developer](https://www.ruby-forum.com/t/trying-to-hire-full-time-rails-developer/121770)

<div class="topic-metadata">

**Author:** [@andrer](https://www.ruby-forum.com/u/andrer)\
**Replies:** 9\
**Last updated:** [December 1, 2007, 12:23am UTC](https://www.ruby-forum.com/t/trying-to-hire-full-time-rails-developer/121770 "2007-12-01T00:23:16Z")

</div>

I’ve been having some trouble tracking down someone to hire for a Rails position, so I figured I’d try here. Monster and 37signals haven’t been much help so far. I think getting people to sit at a desk in Milwaukee …

---

## [Unicode in Forms & Ruby Regex](https://www.ruby-forum.com/t/unicode-in-forms-ruby-regex/121736)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 1\
**Last updated:** [November 30, 2007, 11:38pm UTC](https://www.ruby-forum.com/t/unicode-in-forms-ruby-regex/121736 "2007-11-30T23:38:15Z")

</div>

I’m expecting a validate\_format\_of with a regex like this /^\[a-zA-Z\\xC0-\\xD6\\xD9-\\xF6\\xF9-\\xFF.’-\\ \]\*?$/ to allow many of the normal characters like ö é å to be submitted via web form. However, the extended character…

---

## [ODBC Error: Data Source Name not found](https://www.ruby-forum.com/t/odbc-error-data-source-name-not-found/121793)

<div class="topic-metadata">

**Author:** [@adamucci](https://www.ruby-forum.com/u/adamucci)\
**Replies:** 0\
**Last updated:** [November 30, 2007, 10:30pm UTC](https://www.ruby-forum.com/t/odbc-error-data-source-name-not-found/121793 "2007-11-30T22:30:18Z")

</div>

I hope this is the place to post errors, and solicit help…if not, my apologies… I inherited a RoR app, and it was working great for the longest time…however, i have recently started receiving the following error: A…

---

## [How to implement go to next / previous item?](https://www.ruby-forum.com/t/how-to-implement-go-to-next-previous-item/121768)

<div class="topic-metadata">

**Author:** [@rubynuby](https://www.ruby-forum.com/u/rubynuby)\
**Replies:** 2\
**Last updated:** [November 30, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/how-to-implement-go-to-next-previous-item/121768 "2007-11-30T22:20:22Z")

</div>

I have an array of posts, which could be list of all posts, or posts of certain user, or posts from a tag search. I present it as a paginated list, with title and brief summary. when the user selects a post, I show …

---

## [Apache Rewrites in VirtualHost Changing Rails Base URL?](https://www.ruby-forum.com/t/apache-rewrites-in-virtualhost-changing-rails-base-url/121791)

<div class="topic-metadata">

**Author:** [@Ian\_Lesperance](https://www.ruby-forum.com/u/Ian_Lesperance)\
**Replies:** 0\
**Last updated:** [November 30, 2007, 10:06pm UTC](https://www.ruby-forum.com/t/apache-rewrites-in-virtualhost-changing-rails-base-url/121791 "2007-11-30T22:06:51Z")

</div>

I’m trying to configure my Rails application to handle most requests using Mongrel with a select few (file uploads and other long-running processes) passed through to the CGI dispatcher. Here is what my Apache configu…

---

## [\[RAILS\]Using Gems through proxy with authentication](https://www.ruby-forum.com/t/rails-using-gems-through-proxy-with-authentication/121759)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 1\
**Last updated:** [November 30, 2007, 10:05pm UTC](https://www.ruby-forum.com/t/rails-using-gems-through-proxy-with-authentication/121759 "2007-11-30T22:05:07Z")

</div>

I am trying to use rubygems to install rails but I am behind a proxy that requires authentication. I am trying to use the following: gem install rails --include-dependencies -p (I have HTTP\_PROXY set to ‘http://my…

---

## [Why I can't use session in model?](https://www.ruby-forum.com/t/why-i-cant-use-session-in-model/121784)

<div class="topic-metadata">

**Author:** [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Replies:** 5\
**Last updated:** [November 30, 2007, 9:36pm UTC](https://www.ruby-forum.com/t/why-i-cant-use-session-in-model/121784 "2007-11-30T21:36:24Z")

</div>

Hi, everyone. I used a session in my model. but when I test this model. There said Error: NameError: undefined local variable or method \`session’ for UserSetting:Class In UserSetting model, I use session like this: …

---

## [Flickr API not working](https://www.ruby-forum.com/t/flickr-api-not-working/121674)

<div class="topic-metadata">

**Author:** [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Replies:** 4\
**Last updated:** [November 30, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/flickr-api-not-working/121674 "2007-11-30T21:22:18Z")

</div>

Hi Guys, I am a newbie and I am trying to get ROR Flickr example working… I installed the flickr gem and after that I did the necessary work as stated and here is the outcome - http://www.pilotoutlook.com/flickr My …

---

## [Callbacks vs Observer vs "Just adding to controller action"](https://www.ruby-forum.com/t/callbacks-vs-observer-vs-just-adding-to-controller-action/121750)

<div class="topic-metadata">

**Author:** [@ebrad](https://www.ruby-forum.com/u/ebrad)\
**Replies:** 2\
**Last updated:** [November 30, 2007, 9:11pm UTC](https://www.ruby-forum.com/t/callbacks-vs-observer-vs-just-adding-to-controller-action/121750 "2007-11-30T21:11:44Z")

</div>

I am setting up auditing for my app where views, updates, and deletes are recorded in my Audits table to track the life cycle of an employee record. I’ve read how great callbacks and observers are, but there isn’t a …

---

## [Optional Parmaters in a SQL Query, inline and sanitized](https://www.ruby-forum.com/t/optional-parmaters-in-a-sql-query-inline-and-sanitized/121780)

<div class="topic-metadata">

**Author:** [@divotdave](https://www.ruby-forum.com/u/divotdave)\
**Replies:** 1\
**Last updated:** [November 30, 2007, 9:01pm UTC](https://www.ruby-forum.com/t/optional-parmaters-in-a-sql-query-inline-and-sanitized/121780 "2007-11-30T21:01:57Z")

</div>

I’m trying to achieve the following results. This allows you to do things like puts “Cat’‘’”.safe\_quote ‘Cat'''’ \[“cat”,“dog”,3,nil,“”,nil\].sql\_join =\> “‘cat’,‘dog’,3,NULL,‘’,NULL” \[“cat”,“dog”,3,nil,“”,n…

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

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