# Rails

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

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

---

## [Reading n writing object attributes](https://www.ruby-forum.com/t/reading-n-writing-object-attributes/151930)

<div class="topic-metadata">

**Author:** [@sohdubom](https://www.ruby-forum.com/u/sohdubom)\
**Replies:** 2\
**Last updated:** [October 28, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/reading-n-writing-object-attributes/151930 "2008-10-28T13:36:45Z")

</div>

Reading n writing object attributes Hi. In this simple example I have a User class with the class method: def self.find\_user(name) user = self.find(:first, :conditions =\> \[“username = ?”, name\]) # user.salt end In …

---

## [Actionwebservice: order of parameters in SOAP message](https://www.ruby-forum.com/t/actionwebservice-order-of-parameters-in-soap-message/151957)

<div class="topic-metadata">

**Author:** [@ahead](https://www.ruby-forum.com/u/ahead)\
**Replies:** 1\
**Last updated:** [October 28, 2008, 12:44pm UTC](https://www.ruby-forum.com/t/actionwebservice-order-of-parameters-in-soap-message/151957 "2008-10-28T12:44:30Z")

</div>

Hi, I have a strange SOAP interopability issue with actionwebservice/rails2.0 (server) and Axis2 (client) Should the order of parameters in a SOAP request matter? I.e is… soapenv:Body \<ns1:someMethod xmlns:ns1=“http…

---

## [Email gateway and integrated with rails?](https://www.ruby-forum.com/t/email-gateway-and-integrated-with-rails/151911)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 1\
**Last updated:** [October 28, 2008, 11:00am UTC](https://www.ruby-forum.com/t/email-gateway-and-integrated-with-rails/151911 "2008-10-28T11:00:13Z")

</div>

Hi: I want to have inbound email addresses parsed and put into a queue I create using rails, adn then to have our CSR’s go to this queue and be able to respond to these emails using our RoR intranet. Does anyone hav…

---

## [List of a Model attributes](https://www.ruby-forum.com/t/list-of-a-model-attributes/151935)

<div class="topic-metadata">

**Author:** [@fhb418](https://www.ruby-forum.com/u/fhb418)\
**Replies:** 3\
**Last updated:** [October 28, 2008, 10:51am UTC](https://www.ruby-forum.com/t/list-of-a-model-attributes/151935 "2008-10-28T10:51:55Z")

</div>

Hi, I am just starting on Ruby and I would like to know if there is any place in the code where I can get a Model attributes list ? Of course I could look into the migration file or look at the DB tables, but is ther…

---

## [ActiveRecord::AssociationTypeMismatch - unsure how to proceed](https://www.ruby-forum.com/t/activerecord-associationtypemismatch-unsure-how-to-proceed/151949)

<div class="topic-metadata">

**Author:** [@Lawrence\_Lu](https://www.ruby-forum.com/u/Lawrence_Lu)\
**Replies:** 1\
**Last updated:** [October 28, 2008, 10:40am UTC](https://www.ruby-forum.com/t/activerecord-associationtypemismatch-unsure-how-to-proceed/151949 "2008-10-28T10:40:44Z")

</div>

I’m creating a practice app on RoR, but i’ve run into this problem and I’m not sure how to proceed. Basically, its a stock picker, and there are Portfolios, Stocks, and Holdings. Holdings belong to both Portfolios …

---

## [The Bests Ruby on Rails Development Blog](https://www.ruby-forum.com/t/the-bests-ruby-on-rails-development-blog/151914)

<div class="topic-metadata">

**Author:** [@israel](https://www.ruby-forum.com/u/israel)\
**Replies:** 3\
**Last updated:** [October 28, 2008, 10:35am UTC](https://www.ruby-forum.com/t/the-bests-ruby-on-rails-development-blog/151914 "2008-10-28T10:35:26Z")

</div>

Hi friends. Can you suggest the best Ruby on Rails development blog ? regards. Israel.

---

## [Gem update problem - (gem update --system)](https://www.ruby-forum.com/t/gem-update-problem-gem-update-system/151803)

<div class="topic-metadata">

**Author:** [@Sal\_eSM](https://www.ruby-forum.com/u/Sal_eSM)\
**Replies:** 1\
**Last updated:** [October 28, 2008, 10:16am UTC](https://www.ruby-forum.com/t/gem-update-problem-gem-update-system/151803 "2008-10-28T10:16:05Z")

</div>

Hello, Running Windows XP SP2 From the ruby directory: d:\\Ruby\\bin\>gem update --system Updating RubyGems ERROR: While executing gem … (NoMethodError) undefined method \`uid’ for nil:NilClass From the InstantRails …

---

## [Private method \`equal?' called for {}:Hash](https://www.ruby-forum.com/t/private-method-equal-called-for-hash/150260)

<div class="topic-metadata">

**Author:** [@AnAnAn](https://www.ruby-forum.com/u/AnAnAn)\
**Replies:** 2\
**Last updated:** [October 28, 2008, 8:28am UTC](https://www.ruby-forum.com/t/private-method-equal-called-for-hash/150260 "2008-10-28T08:28:53Z")

</div>

I have two servers in production. Same installation, same ruby version, same rails, deployed using capistrano. Suddendly one server gives this error: private method \`equal?’ called for {}:Hash even if I start the cons…

---

## [mySQL Not working with rails app](https://www.ruby-forum.com/t/mysql-not-working-with-rails-app/65849)

<div class="topic-metadata">

**Author:** [@jcernelli](https://www.ruby-forum.com/u/jcernelli)\
**Replies:** 26\
**Last updated:** [October 28, 2008, 6:51am UTC](https://www.ruby-forum.com/t/mysql-not-working-with-rails-app/65849 "2008-10-28T06:51:10Z")

</div>

Hi I have a rails app that used to run, but now doesn’t. On the first select the app makes I get the following error: “Lost connection to MySQL server during query” I can run the offending query from the mysql comman…

---

## [Typo install problem - what is plug in 'all'?](https://www.ruby-forum.com/t/typo-install-problem-what-is-plug-in-all/151731)

<div class="topic-metadata">

**Author:** [@javent](https://www.ruby-forum.com/u/javent)\
**Replies:** 5\
**Last updated:** [October 28, 2008, 6:25am UTC](https://www.ruby-forum.com/t/typo-install-problem-what-is-plug-in-all/151731 "2008-10-28T06:25:24Z")

</div>

Warning: I am a newbie ROR I am trying to install the Typo blog s/w. I ahve extracted the zip file frim RubyForge and am trying to set it up with ‘rake’. But I get the following error message: C:\\ROR\\rails\_apps\\typo1\>…

---

## [Ruby on Rails for Begineers](https://www.ruby-forum.com/t/ruby-on-rails-for-begineers/65563)

<div class="topic-metadata">

**Author:** [@jameslabocki](https://www.ruby-forum.com/u/jameslabocki)\
**Replies:** 5\
**Last updated:** [October 28, 2008, 6:14am UTC](https://www.ruby-forum.com/t/ruby-on-rails-for-begineers/65563 "2008-10-28T06:14:18Z")

</div>

Hi guys, Can anyone suggest more sites and books for someone wanting to learn Ruby on Rails who hasn’t had any past or very little programming experience? Thanks in advance! Excited :slight\_smile: Jamie

---

## ["Remember Me" feature](https://www.ruby-forum.com/t/remember-me-feature/151931)

<div class="topic-metadata">

**Author:** [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Replies:** 2\
**Last updated:** [October 28, 2008, 5:48am UTC](https://www.ruby-forum.com/t/remember-me-feature/151931 "2008-10-28T05:48:35Z")

</div>

I realize this has probably been asked on these forums before but I wanted to get the latest information on what’s available. We need to implement the typical “Remember Me” checkbox feature you find for logins on vari…

---

## [How to capture generated HTML and sending it in e-mail](https://www.ruby-forum.com/t/how-to-capture-generated-html-and-sending-it-in-e-mail/151249)

<div class="topic-metadata">

**Author:** [@tadatoshi](https://www.ruby-forum.com/u/tadatoshi)\
**Replies:** 3\
**Last updated:** [October 28, 2008, 1:13am UTC](https://www.ruby-forum.com/t/how-to-capture-generated-html-and-sending-it-in-e-mail/151249 "2008-10-28T01:13:05Z")

</div>

Hi, Is there a way to capture the generated HTML (e.g. for show.html.erb) from inside a Rails application? I need to send an e-mail to users with the same HTML as displayed on the browser. Thank you in advance. Tad…

---

## [How to pass time interval from Rails to a scheduler?](https://www.ruby-forum.com/t/how-to-pass-time-interval-from-rails-to-a-scheduler/151925)

<div class="topic-metadata">

**Author:** [@tadatoshi](https://www.ruby-forum.com/u/tadatoshi)\
**Replies:** 0\
**Last updated:** [October 28, 2008, 1:11am UTC](https://www.ruby-forum.com/t/how-to-pass-time-interval-from-rails-to-a-scheduler/151925 "2008-10-28T01:11:55Z")

</div>

Hi, I would like a Rails application to set the time interval for a background scheduler, so that the admin user can specify it from admin page. I looked at daemons gem, BackgroundDRb, and some other plugins. But th…

---

## [How to set up tiered access privileges?](https://www.ruby-forum.com/t/how-to-set-up-tiered-access-privileges/151924)

<div class="topic-metadata">

**Author:** [@gaveeno](https://www.ruby-forum.com/u/gaveeno)\
**Replies:** 0\
**Last updated:** [October 28, 2008, 12:52am UTC](https://www.ruby-forum.com/t/how-to-set-up-tiered-access-privileges/151924 "2008-10-28T00:52:38Z")

</div>

I’m using restful\_authentication and role\_requirement to handle use authentication for my application. I’m wondering what the best way is for me to set up tiered access privileges. Essentially, I want to restrict ac…

---

## [Acts\_as\_authenticated now at github](https://www.ruby-forum.com/t/acts-as-authenticated-now-at-github/151870)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [October 27, 2008, 11:52pm UTC](https://www.ruby-forum.com/t/acts-as-authenticated-now-at-github/151870 "2008-10-27T23:52:59Z")

</div>

Dear All since stikypad went south, AAA + wiki have been down. But now AAA + wiki, can be found at Please help me with upgrading the wiki, and if you like, help improve AAA. Please note the AAA was created by techn…

---

## [Rails 1.2 isn't detecting the PostgreSQL 8.3 adapter (ruby-pg)](https://www.ruby-forum.com/t/rails-1-2-isnt-detecting-the-postgresql-8-3-adapter-ruby-pg/151905)

<div class="topic-metadata">

**Author:** [@The\_N](https://www.ruby-forum.com/u/The_N)\
**Replies:** 6\
**Last updated:** [October 27, 2008, 11:12pm UTC](https://www.ruby-forum.com/t/rails-1-2-isnt-detecting-the-postgresql-8-3-adapter-ruby-pg/151905 "2008-10-27T23:12:32Z")

</div>

Hi everyone. When I run the rake db:migrate instruction, I get the following error (with --trace): (in /home/jescajadillo/aptana/workspace/amazing) \*\* Invoke db:migrate (first\_time) \*\* Invoke environment (first\_time…

---

## [I can't start my app in production mode](https://www.ruby-forum.com/t/i-cant-start-my-app-in-production-mode/151918)

<div class="topic-metadata">

**Author:** [@The\_N](https://www.ruby-forum.com/u/The_N)\
**Replies:** 2\
**Last updated:** [October 27, 2008, 11:06pm UTC](https://www.ruby-forum.com/t/i-cant-start-my-app-in-production-mode/151918 "2008-10-27T23:06:07Z")

</div>

I uncommented this line in config/environment.rb: ENV\[‘RAILS\_ENV’\] ||= ‘production’ I switched the WEBrick server to production in Aptana RadRails. And still, when I click on the “About…” link, I get the following err…

---

## [Models with attachments and one AttachmentsController: how?](https://www.ruby-forum.com/t/models-with-attachments-and-one-attachmentscontroller-how/149957)

<div class="topic-metadata">

**Author:** [@carminem](https://www.ruby-forum.com/u/carminem)\
**Replies:** 3\
**Last updated:** [October 27, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/models-with-attachments-and-one-attachmentscontroller-how/149957 "2008-10-27T22:16:53Z")

</div>

First off, I beg your pardon for the somewhat cryptic topic, but I couln’t think of anything better. The issue I’m facing is that I have some models (User, Product, Maker) which can have one or more attachments: A U…

---

## [Ajax Failure Idiom](https://www.ruby-forum.com/t/ajax-failure-idiom/151828)

<div class="topic-metadata">

**Author:** [@corywilkerson](https://www.ruby-forum.com/u/corywilkerson)\
**Replies:** 3\
**Last updated:** [October 27, 2008, 9:35pm UTC](https://www.ruby-forum.com/t/ajax-failure-idiom/151828 "2008-10-27T21:35:56Z")

</div>

Folks, Curious what the current state of the union is with regard to ‘failure’ idioms for an AJAX call in 2.0 land. For example, let’s say I have a simple form\_remote\_for that posts to session\_controller.rb that vali…

---

## [Any Malline users out there?](https://www.ruby-forum.com/t/any-malline-users-out-there/151894)

<div class="topic-metadata">

**Author:** [@cpr](https://www.ruby-forum.com/u/cpr)\
**Replies:** 1\
**Last updated:** [October 27, 2008, 8:33pm UTC](https://www.ruby-forum.com/t/any-malline-users-out-there/151894 "2008-10-27T20:33:53Z")

</div>

I use this and am very happy with it. My views are much more readable, maintainable, etc. I’ve also created a hierarchical tabset plugin for it. But, as of a few weeks ago the malline.org domain is down so I’m wonder…

---

## [How to retrieve console input in a ruby class](https://www.ruby-forum.com/t/how-to-retrieve-console-input-in-a-ruby-class/151878)

<div class="topic-metadata">

**Author:** [@sohdubom](https://www.ruby-forum.com/u/sohdubom)\
**Replies:** 4\
**Last updated:** [October 27, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/how-to-retrieve-console-input-in-a-ruby-class/151878 "2008-10-27T19:35:15Z")

</div>

How to retrieve console input in a ruby class Hi. Suppose I have a db table ‘users’: username, password, email etc and a ruby class User. In the rails console I type: u = User.new u.password = ‘123’ … u.save From …

---

## [Postgresql search](https://www.ruby-forum.com/t/postgresql-search/146877)

<div class="topic-metadata">

**Author:** [@8bits](https://www.ruby-forum.com/u/8bits)\
**Replies:** 1\
**Last updated:** [October 27, 2008, 7:34pm UTC](https://www.ruby-forum.com/t/postgresql-search/146877 "2008-10-27T19:34:14Z")

</div>

What do you think is the best plugin to make a heavily-trafficked postgre database searchable?

---

## [About I18n performance in rails 2.2](https://www.ruby-forum.com/t/about-i18n-performance-in-rails-2-2/147274)

<div class="topic-metadata">

**Author:** [@edgarjs](https://www.ruby-forum.com/u/edgarjs)\
**Replies:** 1\
**Last updated:** [October 27, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/about-i18n-performance-in-rails-2-2/147274 "2008-10-27T19:29:48Z")

</div>

Hello, I’m trying the new I18n feature that will be included in Rails 2.2 But I have a doubt running in my head: What’s faster(better, more performance)?: Put a I18n.load\_translations in an initializer that loads al…

---

## [Question about Rails behaviour](https://www.ruby-forum.com/t/question-about-rails-behaviour/151868)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 2\
**Last updated:** [October 27, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/question-about-rails-behaviour/151868 "2008-10-27T18:45:19Z")

</div>

Hello, Well I have a post and a post\_picture model: class Post \< ActiveRecord::Base has\_one :post\_picture end class PostPicture \< ActiveRecord::Base belongs\_to :post end When a user creates a post he/she can uplo…

---

## [How to alter Netbeans IDE so it considers files with a '.red' suffix to be Ruby files?](https://www.ruby-forum.com/t/how-to-alter-netbeans-ide-so-it-considers-files-with-a-red-suffix-to-be-ruby-files/151562)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 1\
**Last updated:** [October 27, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/how-to-alter-netbeans-ide-so-it-considers-files-with-a-red-suffix-to-be-ruby-files/151562 "2008-10-27T16:25:02Z")

</div>

I’d like to play around with the Ruby Red Ruby-to-Javascript translator, and it expects its Ruby sources to end with the .red suffix. I haven’t had any luck in figuring out how to set NB to consider such files as Ruby…

---

## [RoR in Netbeans - Rails console not working](https://www.ruby-forum.com/t/ror-in-netbeans-rails-console-not-working/151045)

<div class="topic-metadata">

**Author:** [@TinyRockHopper](https://www.ruby-forum.com/u/TinyRockHopper)\
**Replies:** 1\
**Last updated:** [October 27, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/ror-in-netbeans-rails-console-not-working/151045 "2008-10-27T15:59:01Z")

</div>

Hey Everyone, Local setup: Platform: Windows XP NetBeans IDE 6.1 (Build 200805300101) Ruby 1.8.6 Rails 2.1.1 While trying to test out the IDE I experienced the below error as output. Is it something wrong with th…

---

## [When do we nest class?](https://www.ruby-forum.com/t/when-do-we-nest-class/151885)

<div class="topic-metadata">

**Author:** [@rubyernewbie](https://www.ruby-forum.com/u/rubyernewbie)\
**Replies:** 0\
**Last updated:** [October 27, 2008, 3:34pm UTC](https://www.ruby-forum.com/t/when-do-we-nest-class/151885 "2008-10-27T15:34:49Z")

</div>

class Sidebar \< ActiveRecord::Base serialize :config class Field attr\_accessor :key attr\_accessor :options attr\_accessor :default include ApplicationHelper include ActionView::Helpers::TagHelper include ActionVie…

---

## [REST, routes and algorithms](https://www.ruby-forum.com/t/rest-routes-and-algorithms/151873)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 2\
**Last updated:** [October 27, 2008, 3:07pm UTC](https://www.ruby-forum.com/t/rest-routes-and-algorithms/151873 "2008-10-27T15:07:18Z")

</div>

I’m reading the book ‘RESTful web services’ and in the discussion on exposing algorithmic resources it says the following: " Most web applications donâ€™t store much state in path variables: they use query variables …

---

## [Config.send()](https://www.ruby-forum.com/t/config-send/151801)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 3\
**Last updated:** [October 27, 2008, 2:12pm UTC](https://www.ruby-forum.com/t/config-send/151801 "2008-10-27T14:12:34Z")

</div>

Any thoughts on why this in environment.rb will cause test:units to fail? Requires for application config (/config/config.yml) require ‘ostruct’ require ‘yaml’ config = OpenStruct.new(YAML.load\_file("#{RAILS\_ROOT}/co…

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

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