# Rails

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

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

---

## [Strange NoMethodErrors in production mode, I just don't know what to do](https://www.ruby-forum.com/t/strange-nomethoderrors-in-production-mode-i-just-dont-know-what-to-do/174916)

<div class="topic-metadata">

**Author:** [@msmsms](https://www.ruby-forum.com/u/msmsms)\
**Replies:** 7\
**Last updated:** [September 4, 2009, 10:45am UTC](https://www.ruby-forum.com/t/strange-nomethoderrors-in-production-mode-i-just-dont-know-what-to-do/174916 "2009-09-04T10:45:31Z")

</div>

Hi, thanks for reading. Since hours, I am facing a problem and it seems that I am not able to solve it. Let’s say, I’ve got a model called “AnnotationType”. This model has got a method called “foobar(x)”. It’s just s…

---

## [Hod do you call a method to the veiw?](https://www.ruby-forum.com/t/hod-do-you-call-a-method-to-the-veiw/174931)

<div class="topic-metadata">

**Author:** [@adsouzp](https://www.ruby-forum.com/u/adsouzp)\
**Replies:** 1\
**Last updated:** [September 4, 2009, 10:37am UTC](https://www.ruby-forum.com/t/hod-do-you-call-a-method-to-the-veiw/174931 "2009-09-04T10:37:54Z")

</div>

Lets say I did script/generate controller home And in the home controller made a the method… def say puts “You are here” end How would I call that method in the index.html.erb? When learning ruby it just said to r…

---

## [ActiveRecord interferring with Logger](https://www.ruby-forum.com/t/activerecord-interferring-with-logger/174932)

<div class="topic-metadata">

**Author:** [@rohitunderhill](https://www.ruby-forum.com/u/rohitunderhill)\
**Replies:** 0\
**Last updated:** [September 4, 2009, 10:19am UTC](https://www.ruby-forum.com/t/activerecord-interferring-with-logger/174932 "2009-09-04T10:19:45Z")

</div>

It appears that using ActiveRecord (which requires ActiveSupport) messes with the Logger class, resulting in difficulties in a non-Rails ActiveRecord-using project. This can be seen with some example code: require ‘ru…

---

## [RUBY versions and Rails version](https://www.ruby-forum.com/t/ruby-versions-and-rails-version/174927)

<div class="topic-metadata">

**Author:** [@prashanth\_hiremath](https://www.ruby-forum.com/u/prashanth_hiremath)\
**Replies:** 0\
**Last updated:** [September 4, 2009, 8:53am UTC](https://www.ruby-forum.com/t/ruby-versions-and-rails-version/174927 "2009-09-04T08:53:07Z")

</div>

Can anybody tell me the differences between the different ruby version and rails vesrions Regards prashant

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/174924)

<div class="topic-metadata">

**Author:** [@sushma\_desai](https://www.ruby-forum.com/u/sushma_desai)\
**Replies:** 3\
**Last updated:** [September 4, 2009, 8:02am UTC](https://www.ruby-forum.com/t/no-subject/174924 "2009-09-04T08:02:11Z")

</div>

Hi, May i know how to install budget plugin in the redmiine software My Redmine version is 0.8.0

---

## [Function Testing Reloading Fixtures before assertion](https://www.ruby-forum.com/t/function-testing-reloading-fixtures-before-assertion/174762)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 13\
**Last updated:** [September 4, 2009, 6:05am UTC](https://www.ruby-forum.com/t/function-testing-reloading-fixtures-before-assertion/174762 "2009-09-04T06:05:31Z")

</div>

Hey Everyone, I have a function test the is failing (despite the fact the function actually works in the application). I was looking for some debug advice on how to find my problem. Here is the test: def test\_should…

---

## [Unable to install rails](https://www.ruby-forum.com/t/unable-to-install-rails/174880)

<div class="topic-metadata">

**Author:** [@1337\_94m3r](https://www.ruby-forum.com/u/1337_94m3r)\
**Replies:** 2\
**Last updated:** [September 4, 2009, 3:58am UTC](https://www.ruby-forum.com/t/unable-to-install-rails/174880 "2009-09-04T03:58:41Z")

</div>

I have ruby installed, and also apparently gems installed. I tried doing “gem install rails” I also have tried downloading the gem and then installing it and it is still not letting me install it. I would like to use …

---

## [Config webrick start port](https://www.ruby-forum.com/t/config-webrick-start-port/174868)

<div class="topic-metadata">

**Author:** [@xianfeng\_Wang](https://www.ruby-forum.com/u/xianfeng_Wang)\
**Replies:** 2\
**Last updated:** [September 4, 2009, 3:52am UTC](https://www.ruby-forum.com/t/config-webrick-start-port/174868 "2009-09-04T03:52:50Z")

</div>

hi all: when i start webrick in netbeans and under ubuntu, it’s default port is 3000 but now i want to change it to 4000 when i start webrick in netbeans…hmmm…, i know i can do it at terminal : ruby script/server -…

---

## [Active Records - multiple connections question](https://www.ruby-forum.com/t/active-records-multiple-connections-question/174863)

<div class="topic-metadata">

**Author:** [@lasastard](https://www.ruby-forum.com/u/lasastard)\
**Replies:** 2\
**Last updated:** [September 4, 2009, 3:50am UTC](https://www.ruby-forum.com/t/active-records-multiple-connections-question/174863 "2009-09-04T03:50:29Z")

</div>

Hi List, I figure that rails is the most appropriate board to post this in, tho my problem is not necessarily rails-specific, but rather an active records issue. So here goes: I am working on an ruby-implementation …

---

## [Validates\_preence\_of :name](https://www.ruby-forum.com/t/validates-preence-of-name/174862)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [September 4, 2009, 3:42am UTC](https://www.ruby-forum.com/t/validates-preence-of-name/174862 "2009-09-04T03:42:52Z")

</div>

Hi I have a name field And it has no validation And when I update that field with this !@#$%^&\*()\_+|}{":?\>\<,./;’\[\]\\ It gives error /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active\_record/connection\_adapters…

---

## [Rails 3.o](https://www.ruby-forum.com/t/rails-3-o/174852)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [September 4, 2009, 3:34am UTC](https://www.ruby-forum.com/t/rails-3-o/174852 "2009-09-04T03:34:40Z")

</div>

So… “Beginning Rails 3” is supposedly due Sept 2009 http://www.apress.com/book/view/9781430224334 “Rails 3 in Action” is due February 2010 (est.) … can we assume a beta release of Rails 3 is very close? Would like …

---

## [Changing Passwords in Active Directory with ruby-net-ldap](https://www.ruby-forum.com/t/changing-passwords-in-active-directory-with-ruby-net-ldap/166076)

<div class="topic-metadata">

**Author:** [@minitrue](https://www.ruby-forum.com/u/minitrue)\
**Replies:** 4\
**Last updated:** [September 4, 2009, 12:12am UTC](https://www.ruby-forum.com/t/changing-passwords-in-active-directory-with-ruby-net-ldap/166076 "2009-09-04T00:12:52Z")

</div>

I am building an application in Rails using ruby-net-ldap and I am trying to figure out how to change passwords in Active Directory. Does anyone have any experience with this using the ruby-net-ldap gem? I know that I…

---

## [Can someone explain something to me?](https://www.ruby-forum.com/t/can-someone-explain-something-to-me/174833)

<div class="topic-metadata">

**Author:** [@internetchris](https://www.ruby-forum.com/u/internetchris)\
**Replies:** 12\
**Last updated:** [September 3, 2009, 11:21pm UTC](https://www.ruby-forum.com/t/can-someone-explain-something-to-me/174833 "2009-09-03T23:21:11Z")

</div>

So this is a question that I keep trying to think through in my head and it’s the first time I’ve had to implement it in an application. I come from a Visual Foxpro background and when I would want to add a button to …

---

## [Thin controllers and fat models](https://www.ruby-forum.com/t/thin-controllers-and-fat-models/174907)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 2\
**Last updated:** [September 3, 2009, 9:30pm UTC](https://www.ruby-forum.com/t/thin-controllers-and-fat-models/174907 "2009-09-03T21:30:31Z")

</div>

I’ve read this a few times recently. I thought a model’s job was only to explain “This is how I behave myself” and the controller’s job was to explain “This is what I do”. Is this basically right? So why do people wan…

---

## [DRY, repeating partials](https://www.ruby-forum.com/t/dry-repeating-partials/174909)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 0\
**Last updated:** [September 3, 2009, 9:25pm UTC](https://www.ruby-forum.com/t/dry-repeating-partials/174909 "2009-09-03T21:25:58Z")

</div>

It’s in HAML, which I hope is readable by most people here… It’s concise though, which is nice. So here’s what I have in my beautiful first partial. Explanation of this obviously poor code and logic is after the code. …

---

## [How to specify working directory in config/database.yml?](https://www.ruby-forum.com/t/how-to-specify-working-directory-in-config-database-yml/174731)

<div class="topic-metadata">

**Author:** [@Josef\_W](https://www.ruby-forum.com/u/Josef_W)\
**Replies:** 3\
**Last updated:** [September 3, 2009, 9:02pm UTC](https://www.ruby-forum.com/t/how-to-specify-working-directory-in-config-database-yml/174731 "2009-09-03T21:02:58Z")

</div>

Hello folks, I’d like to use postgresql with unix domain sockets for testinng/development to avoid mismatches when tests from multiple working copies are run concurrently. I can almost get what I want with the follo…

---

## [What's the best way to install Rails? (on vista)](https://www.ruby-forum.com/t/whats-the-best-way-to-install-rails-on-vista/174840)

<div class="topic-metadata">

**Author:** [@AlwaysCharging](https://www.ruby-forum.com/u/AlwaysCharging)\
**Replies:** 15\
**Last updated:** [September 3, 2009, 7:55pm UTC](https://www.ruby-forum.com/t/whats-the-best-way-to-install-rails-on-vista/174840 "2009-09-03T19:55:04Z")

</div>

I know about Instant Rails (which I’ve used in the past), but it seems so dated. I know everything can be updated fairly easy, but is Instant Rails really the ‘best way’ to install rails? I know it might be the easi…

---

## [SystemStackError: stack level too deep](https://www.ruby-forum.com/t/systemstackerror-stack-level-too-deep/174871)

<div class="topic-metadata">

**Author:** [@ahmet](https://www.ruby-forum.com/u/ahmet)\
**Replies:** 8\
**Last updated:** [September 3, 2009, 7:26pm UTC](https://www.ruby-forum.com/t/systemstackerror-stack-level-too-deep/174871 "2009-09-03T19:26:28Z")

</div>

my code is ; $ssf def find\_class(class\_name, stack = \[\]) FileClass.find(:all, :conditions =\> \[“class\_name = ?”, class\_name\]).each do |file\_class| FileInclude.find(:all, :conditions =\> \[“file\_name = ?”, file\_class.f…

---

## [Rails 2.3.3 / MySql 5.1.37 / Ruby 1.8.6 - Migration issue](https://www.ruby-forum.com/t/rails-2-3-3-mysql-5-1-37-ruby-1-8-6-migration-issue/174728)

<div class="topic-metadata">

**Author:** [@nedu](https://www.ruby-forum.com/u/nedu)\
**Replies:** 1\
**Last updated:** [September 3, 2009, 7:17pm UTC](https://www.ruby-forum.com/t/rails-2-3-3-mysql-5-1-37-ruby-1-8-6-migration-issue/174728 "2009-09-03T19:17:00Z")

</div>

Problem: while running db:migrate, i got the following error in Vista Mysql::Error: query: not connected: CREATE TABLE schema\_migrations (version varchar(255) NOT NULL) ENGINE=InnoDB running: rails 2.3.3 ruby 1.8.…

---

## [Select\_tag problem or a seve (me) problem?](https://www.ruby-forum.com/t/select-tag-problem-or-a-seve-me-problem/174869)

<div class="topic-metadata">

**Author:** [@Servando](https://www.ruby-forum.com/u/Servando)\
**Replies:** 1\
**Last updated:** [September 3, 2009, 6:19pm UTC](https://www.ruby-forum.com/t/select-tag-problem-or-a-seve-me-problem/174869 "2009-09-03T18:19:02Z")

</div>

I’m trying to use the select\_tag with :multiple =\> true and when it posts to the server it’s generating “—” followed by a “-” and each selected option. I have no idea what I’m doing wrong… Any help is appreciated. Co…

---

## [Locale currency only works for displaying numbers?](https://www.ruby-forum.com/t/locale-currency-only-works-for-displaying-numbers/196926)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 1\
**Last updated:** [September 3, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/locale-currency-only-works-for-displaying-numbers/196926 "2009-09-03T17:35:28Z")

</div>

Hello, Using a locale I can format the same number for displaying it: database: 1900.58 en layout: 1,900.58 cat layout: 1.900,58 this is ok … but how I can do the reverse of it, when the user submits via form a nu…

---

## [Net:HTTP with authentification?](https://www.ruby-forum.com/t/net-http-with-authentification/174896)

<div class="topic-metadata">

**Author:** [@massi](https://www.ruby-forum.com/u/massi)\
**Replies:** 0\
**Last updated:** [September 3, 2009, 5:23pm UTC](https://www.ruby-forum.com/t/net-http-with-authentification/174896 "2009-09-03T17:23:45Z")

</div>

hey , below an example of a code url = URI.parse(‘http://www.example.com/todo.cgi’) req = Net::HTTP:: Post.new(url.path) req.basic\_auth ‘jack’, ‘pass’ req.set\_form\_data({‘from’=\>‘2005-01-01’, ‘to’=\>‘2005-03-31’}, ‘;…

---

## [Rails: radio button selection for nested forms objects](https://www.ruby-forum.com/t/rails-radio-button-selection-for-nested-forms-objects/174895)

<div class="topic-metadata">

**Author:** [@satynos](https://www.ruby-forum.com/u/satynos)\
**Replies:** 0\
**Last updated:** [September 3, 2009, 5:05pm UTC](https://www.ruby-forum.com/t/rails-radio-button-selection-for-nested-forms-objects/174895 "2009-09-03T17:05:34Z")

</div>

I have the following form for photo\_album which uses the nested forms feature of the Rails in saving the photos while updating the photo\_album. And having trouble with the selection of radio button value. I want only …

---

## [Where to I put code accessible in all model?](https://www.ruby-forum.com/t/where-to-i-put-code-accessible-in-all-model/174888)

<div class="topic-metadata">

**Author:** [@AppleII717](https://www.ruby-forum.com/u/AppleII717)\
**Replies:** 2\
**Last updated:** [September 3, 2009, 4:44pm UTC](https://www.ruby-forum.com/t/where-to-i-put-code-accessible-in-all-model/174888 "2009-09-03T16:44:09Z")

</div>

Even though I’ve been “playing” with RoR since before 1.0, I’ve never got a good grasp on where you put code! Code or helper method placed in helpers can only be called from views, if I’m not mistaken. Code that is s…

---

## [Shouldn't this insert in table?](https://www.ruby-forum.com/t/shouldnt-this-insert-in-table/174812)

<div class="topic-metadata">

**Author:** [@RVince](https://www.ruby-forum.com/u/RVince)\
**Replies:** 12\
**Last updated:** [September 3, 2009, 4:02pm UTC](https://www.ruby-forum.com/t/shouldnt-this-insert-in-table/174812 "2009-09-03T16:02:35Z")

</div>

in MyAController I want to create an instance of MyBModel, and have it insert into the table for the MyB models So, in a function in MyAController, I have MyB myB = MyB.new myB.something = whatever myB.save Shouldn…

---

## [Html to xml](https://www.ruby-forum.com/t/html-to-xml/174884)

<div class="topic-metadata">

**Author:** [@prashanth\_hiremath](https://www.ruby-forum.com/u/prashanth_hiremath)\
**Replies:** 4\
**Last updated:** [September 3, 2009, 3:10pm UTC](https://www.ruby-forum.com/t/html-to-xml/174884 "2009-09-03T15:10:28Z")

</div>

Hi , This is prashanth \<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' ' http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd' \[ \]\> Red Fort Chatta Chowk (Covered Bazaar) â€“ True to the name, thi…

---

## [Server not starting with ruby 1.9.1](https://www.ruby-forum.com/t/server-not-starting-with-ruby-1-9-1/174874)

<div class="topic-metadata">

**Author:** [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Replies:** 4\
**Last updated:** [September 3, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/server-not-starting-with-ruby-1-9-1/174874 "2009-09-03T14:55:49Z")

</div>

i had ruby 1.8.7 in my system.(Ubuntu 9.04) Rails version is 2.1.0 now i have installed ruby 1.9.1p129 side by side with 1.8.7 $ ruby -v ruby 1.9.1p129 (2009-05-12 revision 23412) \[i686-linux\] nd i,ve also done the …

---

## [Error while installing the rails gem](https://www.ruby-forum.com/t/error-while-installing-the-rails-gem/174882)

<div class="topic-metadata">

**Author:** [@ssanjuan](https://www.ruby-forum.com/u/ssanjuan)\
**Replies:** 3\
**Last updated:** [September 3, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/error-while-installing-the-rails-gem/174882 "2009-09-03T14:41:01Z")

</div>

While trying to install the rails gem this is what happens: C:\>gem install rails --include-dependencies INFO: gem install -y is now default and will be removed INFO: use --ignore-dependencies to install only the gem…

---

## [Flyerhzm-bullet 1.4.0 gem release](https://www.ruby-forum.com/t/flyerhzm-bullet-1-4-0-gem-release/174883)

<div class="topic-metadata">

**Author:** [@flyerhzm](https://www.ruby-forum.com/u/flyerhzm)\
**Replies:** 0\
**Last updated:** [September 3, 2009, 1:37pm UTC](https://www.ruby-forum.com/t/flyerhzm-bullet-1-4-0-gem-release/174883 "2009-09-03T13:37:57Z")

</div>

I have released flyerhzm-bullet 1.4.0 gem. The flyerhzm-bullet gem is designed to help you increase your application’s performance by reducing the number of queries it makes. It will watch your queries while you devel…

---

## [Html to xml format](https://www.ruby-forum.com/t/html-to-xml-format/174875)

<div class="topic-metadata">

**Author:** [@prashanth\_hiremath](https://www.ruby-forum.com/u/prashanth_hiremath)\
**Replies:** 1\
**Last updated:** [September 3, 2009, 1:12pm UTC](https://www.ruby-forum.com/t/html-to-xml-format/174875 "2009-09-03T13:12:47Z")

</div>

Please anybody in the ruby community can help me to conert html form to xml correct format. Regards prashant

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

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