# Rails

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

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

---

## [Logging - using a different log for one method](https://www.ruby-forum.com/t/logging-using-a-different-log-for-one-method/166859)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 3\
**Last updated:** [April 30, 2009, 10:20am UTC](https://www.ruby-forum.com/t/logging-using-a-different-log-for-one-method/166859 "2009-04-30T10:20:14Z")

</div>

Hi there, I’m wondering if there’s a way to have any log statements generated from a specific method on a model get logged into a separate file from the normal development/production log files? i.e. I want the whole …

---

## [BUG - content\_type assignment case sensitive](https://www.ruby-forum.com/t/bug-content-type-assignment-case-sensitive/166817)

<div class="topic-metadata">

**Author:** [@ricklach](https://www.ruby-forum.com/u/ricklach)\
**Replies:** 3\
**Last updated:** [April 30, 2009, 9:11am UTC](https://www.ruby-forum.com/t/bug-content-type-assignment-case-sensitive/166817 "2009-04-30T09:11:06Z")

</div>

I sent my original post to this group under the title “Is mime content type case sensitive”. It’s made it to page 3 and I think I’ve found a bug so I’m re-posting. I have a very simple example that uses one of the at…

---

## [IS rails\_ramf is compatible with rails 2.3.2 as i m](https://www.ruby-forum.com/t/is-rails-ramf-is-compatible-with-rails-2-3-2-as-i-m/166855)

<div class="topic-metadata">

**Author:** [@hamidraza](https://www.ruby-forum.com/u/hamidraza)\
**Replies:** 0\
**Last updated:** [April 30, 2009, 8:31am UTC](https://www.ruby-forum.com/t/is-rails-ramf-is-compatible-with-rails-2-3-2-as-i-m/166855 "2009-04-30T08:31:00Z")

</div>

E:\\D Drive\\Ruby Projects\\test\_xml\>ruby script/server webrick =\> Booting WEBrick =\> Rails 2.3.2 application starting on http://0.0.0.0:3000 c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/dependen…

---

## [Controller Instance Variables](https://www.ruby-forum.com/t/controller-instance-variables/166596)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 25\
**Last updated:** [April 30, 2009, 7:40am UTC](https://www.ruby-forum.com/t/controller-instance-variables/166596 "2009-04-30T07:40:52Z")

</div>

Values of instance variables set within an action of a controller are available in the template associated with that action. I was thinking (hoping?) that the values of instance variables set within a controller but …

---

## [Errno::ECONNREFUSED (Connection refused - connect(2)) Act](https://www.ruby-forum.com/t/errno-econnrefused-connection-refused-connect-2-act/166779)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 1\
**Last updated:** [April 30, 2009, 7:20am UTC](https://www.ruby-forum.com/t/errno-econnrefused-connection-refused-connect-2-act/166779 "2009-04-30T07:20:13Z")

</div>

Hi All, I encountered with following error when i try to send e-mail in production mode. Errno::ECONNREFUSED (Connection refused - connect(2)): /usr/lib/ruby/1.8/net/protocol.rb:206:in initialize' /usr/lib/ruby/1…

---

## [Find\_by](https://www.ruby-forum.com/t/find-by/166827)

<div class="topic-metadata">

**Author:** [@slava](https://www.ruby-forum.com/u/slava)\
**Replies:** 2\
**Last updated:** [April 30, 2009, 3:54am UTC](https://www.ruby-forum.com/t/find-by/166827 "2009-04-30T03:54:02Z")

</div>

Hello, I am trying to construct a lookup based on params submited. possible urls… /gadgets?product\_id=1 /gadgets?product\_id=1&product\_group\_id=2 /gadgets?product\_location\_id=5 /gadgets?product\_id=1&product\_location…

---

## [Error : (undefined method \`write')](https://www.ruby-forum.com/t/error-undefined-method-write/166842)

<div class="topic-metadata">

**Author:** [@roger](https://www.ruby-forum.com/u/roger)\
**Replies:** 0\
**Last updated:** [April 30, 2009, 3:02am UTC](https://www.ruby-forum.com/t/error-undefined-method-write/166842 "2009-04-30T03:02:56Z")

</div>

Complete line from error inside SciTE : test.rb:12: undefined method \`write’ for #String:0x3a36d64 (NoMethodError) Error results from this line : google\_data.to\_xml.write($stdout, 1) … trying to use this Scrubyt sa…

---

## [Complete newbie questions](https://www.ruby-forum.com/t/complete-newbie-questions/166829)

<div class="topic-metadata">

**Author:** [@dlittle](https://www.ruby-forum.com/u/dlittle)\
**Replies:** 1\
**Last updated:** [April 30, 2009, 12:20am UTC](https://www.ruby-forum.com/t/complete-newbie-questions/166829 "2009-04-30T00:20:17Z")

</div>

I’m just learning Rails and am starting out by reading LOTS of books and websites and converting a simple system (4 tables, 32 fields including keys and timestams, 3 web screens and 4 “admin” screens written in 4th Di…

---

## [Testing an external script](https://www.ruby-forum.com/t/testing-an-external-script/166812)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [April 30, 2009, 12:15am UTC](https://www.ruby-forum.com/t/testing-an-external-script/166812 "2009-04-30T00:15:57Z")

</div>

How does one pass a command line, including arguments, from a Ruby script to the shell. Specifically some\_method("#{@script} -o #{@outfile} -f #{@format}") I have tried Kernel.\` Kernel.system, %x but have not hit on …

---

## [Overriding associations problem](https://www.ruby-forum.com/t/overriding-associations-problem/166833)

<div class="topic-metadata">

**Author:** [@lakerhy](https://www.ruby-forum.com/u/lakerhy)\
**Replies:** 0\
**Last updated:** [April 30, 2009, 12:03am UTC](https://www.ruby-forum.com/t/overriding-associations-problem/166833 "2009-04-30T00:03:18Z")

</div>

class User \< ActiveRecord::Base belongs\_to :creator, :class\_name =\> ‘Admin’, :foreign\_key =\> :creator\_id end class CreateUsers \< ActiveRecord::Migration def self.up create\_table :users do |t| t.column :name, :stri…

---

## [Storing & retrieving a serialized hash in the DB is not working](https://www.ruby-forum.com/t/storing-retrieving-a-serialized-hash-in-the-db-is-not-working/166832)

<div class="topic-metadata">

**Author:** [@RNHurt](https://www.ruby-forum.com/u/RNHurt)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 11:59pm UTC](https://www.ruby-forum.com/t/storing-retrieving-a-serialized-hash-in-the-db-is-not-working/166832 "2009-04-29T23:59:47Z")

</div>

Hey all, I am trying to find a way to store an hash of variable size (could be 3 pairs, could by 8 pairs) in a text field in the database. I have the following \[simplified\] setup: model serialize :content controlle…

---

## [Tiny\_mce and jquery + jrails](https://www.ruby-forum.com/t/tiny-mce-and-jquery-jrails/166830)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 11:58pm UTC](https://www.ruby-forum.com/t/tiny-mce-and-jquery-jrails/166830 "2009-04-29T23:58:31Z")

</div>

Hi, I’ve been using tiny\_mce\_plus. Recently I changed prototype to jquery and jrails. It caused problems to tiny\_mce\_plus. So I replaced the prototype.js part in tiny\_mce\_plus with jquery and jrails. But according …

---

## [\[JOBS\] Software Developer opening in Washington, DC](https://www.ruby-forum.com/t/jobs-software-developer-opening-in-washington-dc/166828)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 11:51pm UTC](https://www.ruby-forum.com/t/jobs-software-developer-opening-in-washington-dc/166828 "2009-04-29T23:51:35Z")

</div>

Hello! We are currently looking for a Software Developer of the geeky persuasion (so we figured it would be good to post here!) for a contract opening. The client is located in Washington, DC (we can’t do remote work…

---

## [Keeping uploads through form errors with attachment\_fu?](https://www.ruby-forum.com/t/keeping-uploads-through-form-errors-with-attachment-fu/166823)

<div class="topic-metadata">

**Author:** [@xavi](https://www.ruby-forum.com/u/xavi)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 10:57pm UTC](https://www.ruby-forum.com/t/keeping-uploads-through-form-errors-with-attachment-fu/166823 "2009-04-29T22:57:09Z")

</div>

I’m using attachment\_fu. If the user submits a form with a file attachment and validation fails for some reason not related to the attachment, he is currently forced to choose and upload the file again. Is there a way…

---

## [Dbd-odbc gem not](https://www.ruby-forum.com/t/dbd-odbc-gem-not/159906)

<div class="topic-metadata">

**Author:** [@blewis](https://www.ruby-forum.com/u/blewis)\
**Replies:** 2\
**Last updated:** [April 29, 2009, 9:58pm UTC](https://www.ruby-forum.com/t/dbd-odbc-gem-not/159906 "2009-04-29T21:58:28Z")

</div>

I have an application that requires dbd-odbc gem in order to work. So I have to following in the environment.rb: config.gem ‘dbd-odbc’, :version =\> ‘0.2.4’, :lib =\> ‘dbd/ODBC’ I recently had to switch to a new compute…

---

## [Rails generates incomplete schema](https://www.ruby-forum.com/t/rails-generates-incomplete-schema/166730)

<div class="topic-metadata">

**Author:** [@blgroup](https://www.ruby-forum.com/u/blgroup)\
**Replies:** 1\
**Last updated:** [April 29, 2009, 9:17pm UTC](https://www.ruby-forum.com/t/rails-generates-incomplete-schema/166730 "2009-04-29T21:17:48Z")

</div>

Is it possible to get the generated schema.rb to include accurately reflect your database’s schema? For example, when using usesguid plugin, we change the primary key from id, int(11), autoincrement to say, guid, varc…

---

## [Routes difference with Ruby 1.8.6 and 1.8.7](https://www.ruby-forum.com/t/routes-difference-with-ruby-1-8-6-and-1-8-7/166813)

<div class="topic-metadata">

**Author:** [@bosko](https://www.ruby-forum.com/u/bosko)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 8:47pm UTC](https://www.ruby-forum.com/t/routes-difference-with-ruby-1-8-6-and-1-8-7/166813 "2009-04-29T20:47:44Z")

</div>

Recently I’ve found Enki, blog engine written in Rails. It is very simple and I though I could use it, but I’ve faced one problem that prevented it. Namely: rake spec ran from Ruby 1.8.6 and 1.8.7 gives different res…

---

## [Is mime content type case sensitive?](https://www.ruby-forum.com/t/is-mime-content-type-case-sensitive/166728)

<div class="topic-metadata">

**Author:** [@ricklach](https://www.ruby-forum.com/u/ricklach)\
**Replies:** 5\
**Last updated:** [April 29, 2009, 8:18pm UTC](https://www.ruby-forum.com/t/is-mime-content-type-case-sensitive/166728 "2009-04-29T20:18:23Z")

</div>

I’ve been working with attachment\_fu and have found some curious behavior when using firefox as a browser. I’ve been following the straightforward example that is referenced in attachment\_fu’s readme. Simply put, I …

---

## [\[ANN\] Lone Star Twitter/Ruby Conference 2009](https://www.ruby-forum.com/t/ann-lone-star-twitter-ruby-conference-2009/196953)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [April 29, 2009, 7:18pm UTC](https://www.ruby-forum.com/t/ann-lone-star-twitter-ruby-conference-2009/196953 "2009-04-29T19:18:38Z")

</div>

Greetings After much feedback about the Lone Star Twitter Conference, it looks like the LSTC will NOT be replacing the Lone Star Ruby Conference after all. Half of the speakers complained that 140 characters was not…

---

## [\[new to ruby\] implicit function return values?](https://www.ruby-forum.com/t/new-to-ruby-implicit-function-return-values/166806)

<div class="topic-metadata">

**Author:** [@cban1](https://www.ruby-forum.com/u/cban1)\
**Replies:** 1\
**Last updated:** [April 29, 2009, 7:09pm UTC](https://www.ruby-forum.com/t/new-to-ruby-implicit-function-return-values/166806 "2009-04-29T19:09:14Z")

</div>

I’m sure this is a trivial question, but I’m a java/C programmer and am not used to implicit returns. If I have a function: def check\_range ( num ) rng = 0…10 rng.include?( num ) end … does check\_range evaluate to…

---

## [Ruby on Rails Developer opening](https://www.ruby-forum.com/t/ruby-on-rails-developer-opening/166807)

<div class="topic-metadata">

**Author:** [@dean](https://www.ruby-forum.com/u/dean)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 7:07pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-opening/166807 "2009-04-29T19:07:28Z")

</div>

We have a client located in Rolling Meadows that has 2 permanent openings for Ruby on Rails/Java Developers. One is mid level and the other is a Senior level Ruby on Rails developer. Salaries open at this time. Goo…

---

## [Rails Migration Hangs](https://www.ruby-forum.com/t/rails-migration-hangs/166805)

<div class="topic-metadata">

**Author:** [@jakattack](https://www.ruby-forum.com/u/jakattack)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 6:50pm UTC](https://www.ruby-forum.com/t/rails-migration-hangs/166805 "2009-04-29T18:50:12Z")

</div>

I’m running a migration on my production system. I’m trying to add two columns to the picture table. When I run the migration I see this output == 35 Version111: migrating – dei\_add\_column(:pictures, :created\_by, :inte…

---

## [Rails, multiple connections and threads](https://www.ruby-forum.com/t/rails-multiple-connections-and-threads/166794)

<div class="topic-metadata">

**Author:** [@sudhi](https://www.ruby-forum.com/u/sudhi)\
**Replies:** 1\
**Last updated:** [April 29, 2009, 6:24pm UTC](https://www.ruby-forum.com/t/rails-multiple-connections-and-threads/166794 "2009-04-29T18:24:04Z")

</div>

Hi, I have a rails app which currently does the following “After the launch of the page, there is a button click which starts another ruby script on server using system(ruby )” This execution may take a while around …

---

## [Complex relationships](https://www.ruby-forum.com/t/complex-relationships/166690)

<div class="topic-metadata">

**Author:** [@DVG](https://www.ruby-forum.com/u/DVG)\
**Replies:** 1\
**Last updated:** [April 29, 2009, 6:08pm UTC](https://www.ruby-forum.com/t/complex-relationships/166690 "2009-04-29T18:08:50Z")

</div>

Currently, I have 3 models User Group Permission Users and Groups have a HABTM relationship and Groups and Permissions have a HABTM relationship. For purposes of authorization, I need to know if a user belongs to a …

---

## [Problem with Rails 2.3.2 on Ubuntu 9.04: libWand.so.10 missing](https://www.ruby-forum.com/t/problem-with-rails-2-3-2-on-ubuntu-9-04-libwand-so-10-missing/166335)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 29, 2009, 6:00pm UTC](https://www.ruby-forum.com/t/problem-with-rails-2-3-2-on-ubuntu-9-04-libwand-so-10-missing/166335 "2009-04-29T18:00:35Z")

</div>

Upgraded to Ubuntu 9.04 from 8.10 and now I get this: /usr/lib/ruby/gems/1.8/gems/rmagick-2.9.1/lib/RMagick2.so: libWand.so. 10: cannot open shared object file: No such file or directory - /usr/ lib/ruby/gems/1.8/gems…

---

## [Customizing generated type names with ActionWebService](https://www.ruby-forum.com/t/customizing-generated-type-names-with-actionwebservice/166801)

<div class="topic-metadata">

**Author:** [@dandante](https://www.ruby-forum.com/u/dandante)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 5:39pm UTC](https://www.ruby-forum.com/t/customizing-generated-type-names-with-actionwebservice/166801 "2009-04-29T17:39:02Z")

</div>

I need a way I can create two different ruby struct classes (MyStructV1, MyStructV2) and have them map to a type which is referred to in the xml as simply ‘MyStruct’. V1 and V2 have different fields, and would be serv…

---

## [XML Builder - problems with serialized ruby](https://www.ruby-forum.com/t/xml-builder-problems-with-serialized-ruby/166791)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 4:45pm UTC](https://www.ruby-forum.com/t/xml-builder-problems-with-serialized-ruby/166791 "2009-04-29T16:45:29Z")

</div>

Hi, I’m using the Builder gem to transform an array/hash that contains serialized ruby. Builder’s to\_xs method seems to mangle serialized ruby though. I can get around this by encoding/decoding with base 64, but that…

---

## [Basic Doubts](https://www.ruby-forum.com/t/basic-doubts/166785)

<div class="topic-metadata">

**Author:** [@bartolome](https://www.ruby-forum.com/u/bartolome)\
**Replies:** 1\
**Last updated:** [April 29, 2009, 4:45pm UTC](https://www.ruby-forum.com/t/basic-doubts/166785 "2009-04-29T16:45:29Z")

</div>

I’ve just started a project and I’ve been having some basic doubts. Firstly, I created my db schema using a db modeling tool. Then I generated the tables according to that model. After I created the schema.rb. The da…

---

## [Error while passing values in will\_paginate](https://www.ruby-forum.com/t/error-while-passing-values-in-will-paginate/166784)

<div class="topic-metadata">

**Author:** [@vidhya](https://www.ruby-forum.com/u/vidhya)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 3:50pm UTC](https://www.ruby-forum.com/t/error-while-passing-values-in-will-paginate/166784 "2009-04-29T15:50:09Z")

</div>

Hai to All , I am facing a problem while passing a value in will\_paginate.The values are not passed when moving from one page to other in pagination. The coding is, \<%= will\_paginate @names ,{:territory=\>params\[:te…

---

## [Techkicks.com technology links, community driven](https://www.ruby-forum.com/t/techkicks-com-technology-links-community-driven/166773)

<div class="topic-metadata">

**Author:** [@Steven](https://www.ruby-forum.com/u/Steven)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 12:32pm UTC](https://www.ruby-forum.com/t/techkicks-com-technology-links-community-driven/166773 "2009-04-29T12:32:17Z")

</div>

TechKicks.com is a community based technology site. It specializes in Hi-Technologies like Robotics, ERP, GPS, Python, Haskell, Lisp, Ruby On Rails, and common techs like c#, PHP, Java, Sql and many more. Individual …

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

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