# Rails

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

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

---

## [ActiveRecord::ConnectionAdapters::Column value\_to\_boolean(value) does not return a boolean value](https://www.ruby-forum.com/t/activerecord-column-value-to-boolean-value-does-not-return-a-boolean-value/194374)

<div class="topic-metadata">

**Author:** [@powertoaster](https://www.ruby-forum.com/u/powertoaster)\
**Replies:** 1\
**Last updated:** [September 3, 2010, 4:00pm UTC](https://www.ruby-forum.com/t/activerecord-column-value-to-boolean-value-does-not-return-a-boolean-value/194374 "2010-09-03T16:00:37Z")

</div>

value\_to\_boolean(value), does not always return a boolean value, only when true. 150: def value\_to\_boolean(value) 151: if value.is\_a?(String) && value.blank? 152: nil 153: els…

---

## [Nested form + partial + collection\_select \[No novato\]](https://www.ruby-forum.com/t/nested-form-partial-collection-select-no-novato/194387)

<div class="topic-metadata">

**Author:** [@evaldo](https://www.ruby-forum.com/u/evaldo)\
**Replies:** 0\
**Last updated:** [September 3, 2010, 3:18pm UTC](https://www.ruby-forum.com/t/nested-form-partial-collection-select-no-novato/194387 "2010-09-03T15:18:20Z")

</div>

Â¡Hola! Tengo lo siguiente: Una pÃ¡gina donde esta mi modelo docencia que a su vez le voy agregando todos los dictados de carreras: \<% f.fields\_for :dictados do |dictado\_form| %\> \<%= render :partial =\> 'dicta…

---

## [Rack gem in not getting unpacked](https://www.ruby-forum.com/t/rack-gem-in-not-getting-unpacked/194385)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 1\
**Last updated:** [September 3, 2010, 3:10pm UTC](https://www.ruby-forum.com/t/rack-gem-in-not-getting-unpacked/194385 "2010-09-03T15:10:40Z")

</div>

Hi All, my server is having rack gems as: rack (1.2.1, 1.1.0, 1.0.1, 1.0.0) when i run the following command in my project/vendor/gems folder: gem unpack rack-1.0.0 It shows the following error message: Error: Gem …

---

## [Using Factory Girl with has many relationship](https://www.ruby-forum.com/t/using-factory-girl-with-has-many-relationship/194378)

<div class="topic-metadata">

**Author:** [@mosh](https://www.ruby-forum.com/u/mosh)\
**Replies:** 4\
**Last updated:** [September 3, 2010, 2:58pm UTC](https://www.ruby-forum.com/t/using-factory-girl-with-has-many-relationship/194378 "2010-09-03T14:58:34Z")

</div>

Hello, I have this kind of relation: class Article \< ActiveRecord::Base has\_many :comments end class Comment \< ActiveRecord::Base belongs\_to :article attr\_protected :article\_id end The default scenario inside co…

---

## [Internatiolazing columns in Rails](https://www.ruby-forum.com/t/internatiolazing-columns-in-rails/194384)

<div class="topic-metadata">

**Author:** [@wardenik](https://www.ruby-forum.com/u/wardenik)\
**Replies:** 1\
**Last updated:** [September 3, 2010, 2:11pm UTC](https://www.ruby-forum.com/t/internatiolazing-columns-in-rails/194384 "2010-09-03T14:11:08Z")

</div>

Hey, I’m a newbie with Rails and ActiveRecord so sorry for stupid question if it is stupid though :wink: I have read several articles about making i18n for validation messages, models and stuff. What I want to do, i…

---

## [Error No such file or directory](https://www.ruby-forum.com/t/error-no-such-file-or-directory/194372)

<div class="topic-metadata">

**Author:** [@pedro](https://www.ruby-forum.com/u/pedro)\
**Replies:** 1\
**Last updated:** [September 3, 2010, 10:31am UTC](https://www.ruby-forum.com/t/error-no-such-file-or-directory/194372 "2010-09-03T10:31:00Z")

</div>

Hi, I have a website deployed on heroku, but my local git repository was ereased, so I m trying to create a new local repository pulling my deployed site. I run : git clone -o heroku removed\_email\_address@domain.inval…

---

## [Find created\_at in local time](https://www.ruby-forum.com/t/find-created-at-in-local-time/194303)

<div class="topic-metadata">

**Author:** [@fink](https://www.ruby-forum.com/u/fink)\
**Replies:** 6\
**Last updated:** [September 3, 2010, 12:34am UTC](https://www.ruby-forum.com/t/find-created-at-in-local-time/194303 "2010-09-03T00:34:55Z")

</div>

Hello and thanks for taking the time to read this, last night I came across two problems from which the first one - I am sure - is easy to solve. But as I am a beginner I am unable to find the solution. As I learned …

---

## [DEPRECATION WARNINGs](https://www.ruby-forum.com/t/deprecation-warnings/194342)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 2\
**Last updated:** [September 3, 2010, 12:10am UTC](https://www.ruby-forum.com/t/deprecation-warnings/194342 "2010-09-03T00:10:31Z")

</div>

Hello, new to rails, I’m currently learning Rails 3 using the online book. Whenever I run a rails command in terminal, the results are always proceeding by: DEPRECATION WARNING: railtie\_name is deprecated and has no e…

---

## [Active Record serialized attr loosing encoding (YAML issue)](https://www.ruby-forum.com/t/active-record-serialized-attr-loosing-encoding-yaml-issue/194352)

<div class="topic-metadata">

**Author:** [@tgreiser](https://www.ruby-forum.com/u/tgreiser)\
**Replies:** 2\
**Last updated:** [September 2, 2010, 10:40pm UTC](https://www.ruby-forum.com/t/active-record-serialized-attr-loosing-encoding-yaml-issue/194352 "2010-09-02T22:40:14Z")

</div>

I’m using Rails 2.3.8 with Ruby 1.9.1 and I’m having a problem with serialized attributes in active record not preserving string encodings. The underlying problem is probably yaml, but I’m wondering if anyone has any …

---

## [Rspec - bash: rspec: command not found](https://www.ruby-forum.com/t/rspec-bash-rspec-command-not-found/194087)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 8\
**Last updated:** [September 2, 2010, 6:35pm UTC](https://www.ruby-forum.com/t/rspec-bash-rspec-command-not-found/194087 "2010-09-02T18:35:38Z")

</div>

Hello, I’m going through the Rails 3 book (which is awesome by the way) here: http://railstutorial.org/chapters/static-pages#top In the book it has me using “rspec” which is installed: bundle show rspec /Library/Ruby…

---

## [Newbie Rails Issue](https://www.ruby-forum.com/t/newbie-rails-issue/194260)

<div class="topic-metadata">

**Author:** [@ormizd](https://www.ruby-forum.com/u/ormizd)\
**Replies:** 3\
**Last updated:** [September 2, 2010, 6:24pm UTC](https://www.ruby-forum.com/t/newbie-rails-issue/194260 "2010-09-02T18:24:39Z")

</div>

Hi People, Ultra noob here. I recently installed Ruby 1.9.2 and Rails 3.0 on Ubuntu10.04. I have mysql server version 5.1 installed. I also have the mysql2 database connector \*\*\* LOCAL GEMS \*\*\* abstract (1.0.0) act…

---

## [Need help with model logic](https://www.ruby-forum.com/t/need-help-with-model-logic/194258)

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 3\
**Last updated:** [September 2, 2010, 5:37pm UTC](https://www.ruby-forum.com/t/need-help-with-model-logic/194258 "2010-09-02T17:37:40Z")

</div>

Hi all - Ruby 1.8.7 / Rails 2.3.5 Schedule model: course\_id, starts\_at, ends\_at, capacity has\_many :requests Request model: user\_id, schedule\_id, state\_id belongs\_to :schedule request.state\_id indicates whether the…

---

## [When will Spork be Rails3-ready?](https://www.ruby-forum.com/t/when-will-spork-be-rails3-ready/194339)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 0\
**Last updated:** [September 2, 2010, 5:25pm UTC](https://www.ruby-forum.com/t/when-will-spork-be-rails3-ready/194339 "2010-09-02T17:25:22Z")

</div>

Anyone have any ideas?

---

## [Komodo Edit + rvm](https://www.ruby-forum.com/t/komodo-edit-rvm/194325)

<div class="topic-metadata">

**Author:** [@juapdiaz](https://www.ruby-forum.com/u/juapdiaz)\
**Replies:** 2\
**Last updated:** [September 2, 2010, 5:08pm UTC](https://www.ruby-forum.com/t/komodo-edit-rvm/194325 "2010-09-02T17:08:14Z")

</div>

Folks, any of you who uses Komodo Edit for Ruby/Rails development had any experience using Komodo Edit and rvm together? I really like Komodo Edit, but my inability to put them to work along each other is really anno…

---

## [Validates numericality issue](https://www.ruby-forum.com/t/validates-numericality-issue/194124)

<div class="topic-metadata">

**Author:** [@ithelp85](https://www.ruby-forum.com/u/ithelp85)\
**Replies:** 9\
**Last updated:** [September 2, 2010, 3:57pm UTC](https://www.ruby-forum.com/t/validates-numericality-issue/194124 "2010-09-02T15:57:31Z")

</div>

Hello everyone I have a problem in my app with the validation on numericality. The field should be all numbers, and if an user types for example “12345abc” into the field an error is raised and the data is not saved. …

---

## [Progressbar for Slow Loading Webpages](https://www.ruby-forum.com/t/progressbar-for-slow-loading-webpages/194317)

<div class="topic-metadata">

**Author:** [@sudheendra](https://www.ruby-forum.com/u/sudheendra)\
**Replies:** 5\
**Last updated:** [September 2, 2010, 3:32pm UTC](https://www.ruby-forum.com/t/progressbar-for-slow-loading-webpages/194317 "2010-09-02T15:32:56Z")

</div>

Hi, I would like to show a progress bar in the browser until my pages load. As my web pages take more that 10 seconds to load, I have decided to show the progres bar. Please help me with your ideas

---

## [Split or Multiple logs?](https://www.ruby-forum.com/t/split-or-multiple-logs/192835)

<div class="topic-metadata">

**Author:** [@Danimal](https://www.ruby-forum.com/u/Danimal)\
**Replies:** 2\
**Last updated:** [September 2, 2010, 3:10pm UTC](https://www.ruby-forum.com/t/split-or-multiple-logs/192835 "2010-09-02T15:10:06Z")

</div>

Hi all! If you have a rails app using multiple subdomains (or domains), is it possible to split the production.log file into specific log files per domain? I.e.: production\_subdomain1.log, production\_subdomain2.log, …

---

## [Process to start internationalization](https://www.ruby-forum.com/t/process-to-start-internationalization/194328)

<div class="topic-metadata">

**Author:** [@alkkumar531](https://www.ruby-forum.com/u/alkkumar531)\
**Replies:** 1\
**Last updated:** [September 2, 2010, 2:47pm UTC](https://www.ruby-forum.com/t/process-to-start-internationalization/194328 "2010-09-02T14:47:16Z")

</div>

i am new to ror… i want to know wat configuration i shud do for starting i18n applications

---

## [Re: Running consecutive DOS commands in Ruby](https://www.ruby-forum.com/t/re-running-consecutive-dos-commands-in-ruby/197289)

<div class="topic-metadata">

**Author:** [@Srinidhi](https://www.ruby-forum.com/u/Srinidhi)\
**Replies:** 1\
**Last updated:** [September 2, 2010, 2:39pm UTC](https://www.ruby-forum.com/t/re-running-consecutive-dos-commands-in-ruby/197289 "2010-09-02T14:39:39Z")

</div>

Hello Everyone, I have a situation where i have to invoke command line tools like putty\_sftp and OpenSSH from ruby script for automation, as out application handles sftp uploads through these tools. So the problem i…

---

## [Rails 3 web server quits with error message on booting](https://www.ruby-forum.com/t/rails-3-web-server-quits-with-error-message-on-booting/194322)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 7\
**Last updated:** [September 2, 2010, 2:24pm UTC](https://www.ruby-forum.com/t/rails-3-web-server-quits-with-error-message-on-booting/194322 "2010-09-02T14:24:25Z")

</div>

Hi, have tried to boot the web server but keep on getting this error message. Can you help me figure out what it means? TIA rails server =\> Booting WEBrick =\> Rails 3.0.0 application starting in development on http:…

---

## [Belongs\_to\_auto\_completer \> undefined method \`reflect\_on\_association'](https://www.ruby-forum.com/t/belongs-to-auto-completer-undefined-method-reflect-on-association/194283)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 3\
**Last updated:** [September 2, 2010, 1:34pm UTC](https://www.ruby-forum.com/t/belongs-to-auto-completer-undefined-method-reflect-on-association/194283 "2010-09-02T13:34:05Z")

</div>

hi, im using ModelAutoCompleterHelper (http://model-ac.rubyforge.org/classes/M … elper.html) and getting the error above. now its working when i do it direclty in the controller of that model. eg: books & author \> r…

---

## [Ajax and partials](https://www.ruby-forum.com/t/ajax-and-partials/194173)

<div class="topic-metadata">

**Author:** [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Replies:** 5\
**Last updated:** [September 2, 2010, 1:25pm UTC](https://www.ruby-forum.com/t/ajax-and-partials/194173 "2010-09-02T13:25:18Z")

</div>

Hello all, I am still very new to programming and wonder if I could get some help. I have tried to figure this out myself but still having trouble with some of the concepts. Iâ€™ll do my best to explain the problem a…

---

## [Read embedded image from xml file](https://www.ruby-forum.com/t/read-embedded-image-from-xml-file/194316)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 7\
**Last updated:** [September 2, 2010, 12:51pm UTC](https://www.ruby-forum.com/t/read-embedded-image-from-xml-file/194316 "2010-09-02T12:51:19Z")

</div>

Hi, I have an xml file which contains an embedded image(this is not from a rails application), i cant get a clear answer on this so basically i need to know is there a way i can read the image from the xml file and t…

---

## [Controller failing to read flash](https://www.ruby-forum.com/t/controller-failing-to-read-flash/194323)

<div class="topic-metadata">

**Author:** [@aginghipster](https://www.ruby-forum.com/u/aginghipster)\
**Replies:** 0\
**Last updated:** [September 2, 2010, 12:37pm UTC](https://www.ruby-forum.com/t/controller-failing-to-read-flash/194323 "2010-09-02T12:37:51Z")

</div>

I’m seeing some pretty strange behavior from the flash in my rails 2.3.8 app. I set the flash in a request, and then redirect. In the next request (the one redirected to), accessing the flash returns an empty hash, …

---

## [Ruby on Rails hosting](https://www.ruby-forum.com/t/ruby-on-rails-hosting/194213)

<div class="topic-metadata">

**Author:** [@zurich\_by\_night](https://www.ruby-forum.com/u/zurich_by_night)\
**Replies:** 4\
**Last updated:** [September 2, 2010, 12:34pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-hosting/194213 "2010-09-02T12:34:20Z")

</div>

Hello all, I’m in the market for a web host that supports Ruby on Rails. I’ve looked at Heroku, but really find them quite expensive. My budget is around $50-70 USD / month. And possibly on a VPS or semi-managed serv…

---

## [How to override form\_helper module](https://www.ruby-forum.com/t/how-to-override-form-helper-module/194315)

<div class="topic-metadata">

**Author:** [@gregm](https://www.ruby-forum.com/u/gregm)\
**Replies:** 2\
**Last updated:** [September 2, 2010, 11:58am UTC](https://www.ruby-forum.com/t/how-to-override-form-helper-module/194315 "2010-09-02T11:58:47Z")

</div>

Hi, I would like to add my own form helper how can I do this without editing the Rails source code? Greg

---

## [Performing Faster](https://www.ruby-forum.com/t/performing-faster/194221)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 6\
**Last updated:** [September 2, 2010, 11:34am UTC](https://www.ruby-forum.com/t/performing-faster/194221 "2010-09-02T11:34:37Z")

</div>

Hi All, We are building a maps based site in which we serve out map tiles created by us. The entire application is working well enough and we have followed through on most of the best Rails practices to speed up thi…

---

## [Link\_to](https://www.ruby-forum.com/t/link-to/194309)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [September 2, 2010, 9:56am UTC](https://www.ruby-forum.com/t/link-to/194309 "2010-09-02T09:56:15Z")

</div>

I am trying to use an encrypted request to PayPal using my own submit button link I googled a little but, but could not find a clear & neat solution, so I ended writing this : == Rails 2.3.8 script code ==== … \<%…

---

## [Validation errors bring up stack trace error page](https://www.ruby-forum.com/t/validation-errors-bring-up-stack-trace-error-page/194208)

<div class="topic-metadata">

**Author:** [@closedbook](https://www.ruby-forum.com/u/closedbook)\
**Replies:** 5\
**Last updated:** [September 2, 2010, 9:43am UTC](https://www.ruby-forum.com/t/validation-errors-bring-up-stack-trace-error-page/194208 "2010-09-02T09:43:22Z")

</div>

hello! I made some custom validations for my app, which do catch invalid data in the console. However, when I enter invalid data through a form on the browser view, I get your stack trace error style page (similar to …

---

## [Rails not rerouting to new page](https://www.ruby-forum.com/t/rails-not-rerouting-to-new-page/194077)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [September 2, 2010, 9:36am UTC](https://www.ruby-forum.com/t/rails-not-rerouting-to-new-page/194077 "2010-09-02T09:36:20Z")

</div>

i am running virtual rails on linux mint. i created a controller in my commnad prompt. then i opened up the public folder and delted index.html … after this I opened up the rails application i created and went to co…

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

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