# Rails

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

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

---

## [New version 2.0.0 of IBM\_DB- The Rails Adapter/Ruby driver for DB2 and Informix now available](https://www.ruby-forum.com/t/new-version-2-0-0-of-ibm-db-the-rails-adapter-ruby-driver-for-db2-and-informix-now-available/182012)

<div class="topic-metadata">

**Author:** [@praveen](https://www.ruby-forum.com/u/praveen)\
**Replies:** 0\
**Last updated:** [January 21, 2010, 2:37pm UTC](https://www.ruby-forum.com/t/new-version-2-0-0-of-ibm-db-the-rails-adapter-ruby-driver-for-db2-and-informix-now-available/182012 "2010-01-21T14:37:44Z")

</div>

Hi All, New version 2.0.0 of the IBM\_DB gem is been released. This release of the gem adds support for ActiveRecord to use parameterized SQL Queries with DB2. With this support you can now reap more performance benefi…

---

## [Deployment on Network Solutions](https://www.ruby-forum.com/t/deployment-on-network-solutions/181899)

<div class="topic-metadata">

**Author:** [@jrq](https://www.ruby-forum.com/u/jrq)\
**Replies:** 2\
**Last updated:** [January 21, 2010, 2:33pm UTC](https://www.ruby-forum.com/t/deployment-on-network-solutions/181899 "2010-01-21T14:33:38Z")

</div>

Has anyone successfully deployed on Network Solutions? All I seem to be able to get are “500” errors, nothing in the logs. I’m hoping this is a stupid database.yml problem, but none of the iterations I’ve tried seem…

---

## [InterWoven CMS Integration with ROR](https://www.ruby-forum.com/t/interwoven-cms-integration-with-ror/182008)

<div class="topic-metadata">

**Author:** [@arun](https://www.ruby-forum.com/u/arun)\
**Replies:** 0\
**Last updated:** [January 21, 2010, 1:03pm UTC](https://www.ruby-forum.com/t/interwoven-cms-integration-with-ror/182008 "2010-01-21T13:03:45Z")

</div>

Hi Friends, Is anyone in our community having experience with Integrating InterWoven CMS with Rails applications? Thanks, Arun

---

## [New Application](https://www.ruby-forum.com/t/new-application/182001)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 4\
**Last updated:** [January 21, 2010, 1:02pm UTC](https://www.ruby-forum.com/t/new-application/182001 "2010-01-21T13:02:30Z")

</div>

I’ve created a new application from scratch on a new development machine. I’ve installed Ruby, Rails and MySQL using as many defaults as possible. I’m receiving the following error Mysql::Error: query: not connected…

---

## [Interwoven CMS Integration](https://www.ruby-forum.com/t/interwoven-cms-integration/182006)

<div class="topic-metadata">

**Author:** [@arun](https://www.ruby-forum.com/u/arun)\
**Replies:** 0\
**Last updated:** [January 21, 2010, 1:02pm UTC](https://www.ruby-forum.com/t/interwoven-cms-integration/182006 "2010-01-21T13:02:30Z")

</div>

Hi Friends, Is there anyone in our community having experience with Integration InterWoven CMS with Rails applications? Thanks, Arun

---

## [Redirect www to non-www](https://www.ruby-forum.com/t/redirect-www-to-non-www/181979)

<div class="topic-metadata">

**Author:** [@johnny](https://www.ruby-forum.com/u/johnny)\
**Replies:** 4\
**Last updated:** [January 21, 2010, 12:53pm UTC](https://www.ruby-forum.com/t/redirect-www-to-non-www/181979 "2010-01-21T12:53:34Z")

</div>

How to redirect www to non-www? e.g redirect www.example.com to example.com Thanks Johnny

---

## [How to redirect to 'new'](https://www.ruby-forum.com/t/how-to-redirect-to-new/181874)

<div class="topic-metadata">

**Author:** [@imnotquitejack](https://www.ruby-forum.com/u/imnotquitejack)\
**Replies:** 6\
**Last updated:** [January 21, 2010, 10:56am UTC](https://www.ruby-forum.com/t/how-to-redirect-to-new/181874 "2010-01-21T10:56:09Z")

</div>

Hi guys, I’d like to be able to display my ‘new’ view but have an intermediate step before saving the new record using the ‘create’ button. Basically, some of the data for the model is variable and dependant on a numb…

---

## [Ruby on rails programmers and ror developers](https://www.ruby-forum.com/t/ruby-on-rails-programmers-and-ror-developers/182000)

<div class="topic-metadata">

**Author:** [@saran](https://www.ruby-forum.com/u/saran)\
**Replies:** 1\
**Last updated:** [January 21, 2010, 10:50am UTC](https://www.ruby-forum.com/t/ruby-on-rails-programmers-and-ror-developers/182000 "2010-01-21T10:50:52Z")

</div>

hi, I’m from california, USA. I want to design my website in ruby on rails. I found few good websites like www.rordevelopers.com who develop ror projects. But my question is " does the official website suggest any su…

---

## [Mysql problem](https://www.ruby-forum.com/t/mysql-problem/181937)

<div class="topic-metadata">

**Author:** [@Alex\_Thiakos](https://www.ruby-forum.com/u/Alex_Thiakos)\
**Replies:** 2\
**Last updated:** [January 21, 2010, 10:40am UTC](https://www.ruby-forum.com/t/mysql-problem/181937 "2010-01-21T10:40:41Z")

</div>

Hello guys, Im new in RoR, trying to see how this works. So the problem i have is with mysql. I always get the error: /Users/alexthiakos/.gem/ruby/1.8/gems/mysql-2.8.1/lib/ mysql\_api.bundle: \[BUG\] Segmentation fault …

---

## [Sending eMail](https://www.ruby-forum.com/t/sending-email/181963)

<div class="topic-metadata">

**Author:** [@srj](https://www.ruby-forum.com/u/srj)\
**Replies:** 1\
**Last updated:** [January 21, 2010, 9:00am UTC](https://www.ruby-forum.com/t/sending-email/181963 "2010-01-21T09:00:00Z")

</div>

I am trying to send email from my rails application, and have the following set up in my development.rb config file: config.action\_mailer.delivery\_method = :smtp config.action\_mailer.smtp\_settings = { :address =\> “s…

---

## [Moving of Photos](https://www.ruby-forum.com/t/moving-of-photos/181993)

<div class="topic-metadata">

**Author:** [@Rails\_ROR](https://www.ruby-forum.com/u/Rails_ROR)\
**Replies:** 0\
**Last updated:** [January 21, 2010, 7:15am UTC](https://www.ruby-forum.com/t/moving-of-photos/181993 "2010-01-21T07:15:14Z")

</div>

Hi, I would like to take your suggestion on the following problem: I have a scaffold called Manage where i have fields like title, short description, long description,keywords, tags. I created few record pages like “…

---

## [Paypal Recurring using active merchant](https://www.ruby-forum.com/t/paypal-recurring-using-active-merchant/180263)

<div class="topic-metadata">

**Author:** [@preksha](https://www.ruby-forum.com/u/preksha)\
**Replies:** 2\
**Last updated:** [January 21, 2010, 4:51am UTC](https://www.ruby-forum.com/t/paypal-recurring-using-active-merchant/180263 "2010-01-21T04:51:11Z")

</div>

Hi, I am trying for recurring using active merchant. I have patched the paypal\_express\_recurring\_nv.rb & added paypal\_express\_nv\_response & paypal\_nv\_common\_api. But I am getting following error… “uninitialized cons…

---

## [Git clone locally](https://www.ruby-forum.com/t/git-clone-locally/181836)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 15\
**Last updated:** [January 21, 2010, 1:47am UTC](https://www.ruby-forum.com/t/git-clone-locally/181836 "2010-01-21T01:47:31Z")

</div>

Hi, I follow the instructions below to set up a git repository with gitosis on my home ubuntu server. I can connect to the repository remotely perfectly and set up a new repository named My\_Project. I successfully …

---

## [Disable submit\_tag after click](https://www.ruby-forum.com/t/disable-submit-tag-after-click/181964)

<div class="topic-metadata">

**Author:** [@frank\_programmer](https://www.ruby-forum.com/u/frank_programmer)\
**Replies:** 5\
**Last updated:** [January 20, 2010, 11:08pm UTC](https://www.ruby-forum.com/t/disable-submit-tag-after-click/181964 "2010-01-20T23:08:51Z")

</div>

This code disables the ‘Save’ button once clicked, but doesn’t seem to send the form data. \<%= submit\_tag ‘Save’, :class =\> ‘submit’, :onclick =\> “document.getElementById(‘save\_button’).disabled=true;”, :id =\> “save\_…

---

## [Reverting to rails 2.3.3](https://www.ruby-forum.com/t/reverting-to-rails-2-3-3/181965)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 5\
**Last updated:** [January 20, 2010, 11:07pm UTC](https://www.ruby-forum.com/t/reverting-to-rails-2-3-3/181965 "2010-01-20T23:07:39Z")

</div>

Hi All, sor some odd reason i updraded my gems, which updated rails from 2.3.3 to 2.3.5. I now have issues: /usr/local/lib/ruby/site\_ruby/1.8/rubygems.rb:270:in activate': undefined methodmap’ for nil:NilClass (NoMet…

---

## [Globalize2 v0.2.0 upcoming](https://www.ruby-forum.com/t/globalize2-v0-2-0-upcoming/180698)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 6\
**Last updated:** [January 20, 2010, 11:00pm UTC](https://www.ruby-forum.com/t/globalize2-v0-2-0-upcoming/180698 "2010-01-20T23:00:07Z")

</div>

I’ve just tagged Globalize2 v0.1.1 and merged the 0.2.0 to master. Globalize2 v0.2.0 will ship no features except model translations. The first version of Gobalize2 had to implement a few things that had not made it i…

---

## [Rails 3 Problem: no such file to load -- rails (LoadError)](https://www.ruby-forum.com/t/rails-3-problem-no-such-file-to-load-rails-loaderror/181934)

<div class="topic-metadata">

**Author:** [@Kristian](https://www.ruby-forum.com/u/Kristian)\
**Replies:** 2\
**Last updated:** [January 20, 2010, 10:54pm UTC](https://www.ruby-forum.com/t/rails-3-problem-no-such-file-to-load-rails-loaderror/181934 "2010-01-20T22:54:15Z")

</div>

I just ran the gem bundle on the third\_rails demo app, but for some reason rails can’t be loaded!? kristian-mandrups-macbook-pro:third\_rails kristianconsult$ rails -v Rails 3.0.pre kristian-mandrups-macbook-pro:third…

---

## [RJS / AJAX question](https://www.ruby-forum.com/t/rjs-ajax-question/181967)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 0\
**Last updated:** [January 20, 2010, 10:50pm UTC](https://www.ruby-forum.com/t/rjs-ajax-question/181967 "2010-01-20T22:50:44Z")

</div>

I have a custom class that is used to generate a report. The process of generating one line for this report takes anywhere from 1-3 seconds which can cause the report to take a while to finish running and to appear o…

---

## [Rake Aborted wont Migrate mysql](https://www.ruby-forum.com/t/rake-aborted-wont-migrate-mysql/181923)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 4\
**Last updated:** [January 20, 2010, 10:47pm UTC](https://www.ruby-forum.com/t/rake-aborted-wont-migrate-mysql/181923 "2010-01-20T22:47:13Z")

</div>

Hello all, I’ve been trying to get ruby on rails to work with my local install of mysql(its with wamp). Windows XP, Ruby 1.8.6, rails 2.3.5, rubygems 1.3.5, mysql 5.2 something I believe. I have ruby installed in: C:…

---

## [How to map a Named Route onto a namespaced resource?](https://www.ruby-forum.com/t/how-to-map-a-named-route-onto-a-namespaced-resource/181962)

<div class="topic-metadata">

**Author:** [@tuktuk](https://www.ruby-forum.com/u/tuktuk)\
**Replies:** 0\
**Last updated:** [January 20, 2010, 9:30pm UTC](https://www.ruby-forum.com/t/how-to-map-a-named-route-onto-a-namespaced-resource/181962 "2010-01-20T21:30:08Z")

</div>

I have a site, where I am currently adding a self-built shop. Among other stuff I have this construction in my route-file map.namespace :shop do |shop| shop.resources :categories do |categories| categories.resources …

---

## [Test params](https://www.ruby-forum.com/t/test-params/181727)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 3\
**Last updated:** [January 20, 2010, 8:30pm UTC](https://www.ruby-forum.com/t/test-params/181727 "2010-01-20T20:30:15Z")

</div>

Hi, In my RESTful implementation, :new shows a form for @link . When a user clicks on Create, the value of @link is posted to :create through params. How do I test the value of params and that :create actually us…

---

## [Nested Model Destruction](https://www.ruby-forum.com/t/nested-model-destruction/181918)

<div class="topic-metadata">

**Author:** [@tony](https://www.ruby-forum.com/u/tony)\
**Replies:** 2\
**Last updated:** [January 20, 2010, 7:53pm UTC](https://www.ruby-forum.com/t/nested-model-destruction/181918 "2010-01-20T19:53:22Z")

</div>

Hey all, I’m using nested model creation in my forms, but I’ve noticed that when I go to try and destroy a nested model, the backing DB row gets destroyed but the child object is never set back to nil as I expected i…

---

## [(2.3.5) ActionController::Base.session\_options\[:expire\_after\] + Error 422/Authenticity Token Issue](https://www.ruby-forum.com/t/2-3-5-actioncontroller-base-session-options-expire-after-error-422-authenticity-token-issue/181956)

<div class="topic-metadata">

**Author:** [@Phoenix\_R](https://www.ruby-forum.com/u/Phoenix_R)\
**Replies:** 0\
**Last updated:** [January 20, 2010, 7:34pm UTC](https://www.ruby-forum.com/t/2-3-5-actioncontroller-base-session-options-expire-after-error-422-authenticity-token-issue/181956 "2010-01-20T19:34:03Z")

</div>

I’m getting ready to put an app into production and I’ve found a strange issue that, as far as I know, shouldn’t be happening. To me this looks like it could be a bug, but I’m not sure and I’m hoping some one here ca…

---

## [Create Temporary Sqlite in Memory](https://www.ruby-forum.com/t/create-temporary-sqlite-in-memory/181914)

<div class="topic-metadata">

**Author:** [@karlshea](https://www.ruby-forum.com/u/karlshea)\
**Replies:** 2\
**Last updated:** [January 20, 2010, 7:31pm UTC](https://www.ruby-forum.com/t/create-temporary-sqlite-in-memory/181914 "2010-01-20T19:31:07Z")

</div>

I need to create a temporary, in memory, Sqlite3 database… plus I want all the AR goodness to go with. Oh, and I don’t want to affect existing AR models or schemas. I’m close, but I don’t know how to create a schema j…

---

## [Parse xml data from xml response.body](https://www.ruby-forum.com/t/parse-xml-data-from-xml-response-body/181950)

<div class="topic-metadata">

**Author:** [@Lasse](https://www.ruby-forum.com/u/Lasse)\
**Replies:** 2\
**Last updated:** [January 20, 2010, 7:29pm UTC](https://www.ruby-forum.com/t/parse-xml-data-from-xml-response-body/181950 "2010-01-20T19:29:22Z")

</div>

Hello i’m trying to get a list of titles including the link to the corresponding list out of a xml response from an API. This is the code i wrote: require ‘net/http’ require ‘rexml/document’ login = “\*\*\*” password …

---

## [Config.timezone question](https://www.ruby-forum.com/t/config-timezone-question/181941)

<div class="topic-metadata">

**Author:** [@bill\_walton](https://www.ruby-forum.com/u/bill_walton)\
**Replies:** 1\
**Last updated:** [January 20, 2010, 7:21pm UTC](https://www.ruby-forum.com/t/config-timezone-question/181941 "2010-01-20T19:21:10Z")

</div>

Hi, Can anybody tell me the practical difference between using, in environment.rb … config.active\_record.default\_timezone = :utc and config.timezone = ‘UTC’ I’ve got 2 apps that communicate data with each other. O…

---

## [Backgroundrb and time zone](https://www.ruby-forum.com/t/backgroundrb-and-time-zone/181949)

<div class="topic-metadata">

**Author:** [@tiburcio777](https://www.ruby-forum.com/u/tiburcio777)\
**Replies:** 0\
**Last updated:** [January 20, 2010, 4:33pm UTC](https://www.ruby-forum.com/t/backgroundrb-and-time-zone/181949 "2010-01-20T16:33:48Z")

</div>

Hello all, Is there a way to specify the time zone for a cron like worker ?, I know that you can specify the time zone for some workers, but what about for workers that run with a cron like sentence ? I would like to …

---

## [Timezones and Timestamps](https://www.ruby-forum.com/t/timezones-and-timestamps/181903)

<div class="topic-metadata">

**Author:** [@jmjmjm](https://www.ruby-forum.com/u/jmjmjm)\
**Replies:** 2\
**Last updated:** [January 20, 2010, 4:15pm UTC](https://www.ruby-forum.com/t/timezones-and-timestamps/181903 "2010-01-20T16:15:04Z")

</div>

I have a Post model that has a column ‘published\_on’. What I would like to do is be able to set the published\_on date in the future so a post will automatically become visible to the pubic if the published\_on timestam…

---

## [Rubyzip gem installed but not recognised](https://www.ruby-forum.com/t/rubyzip-gem-installed-but-not-recognised/181863)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 5\
**Last updated:** [January 20, 2010, 4:04pm UTC](https://www.ruby-forum.com/t/rubyzip-gem-installed-but-not-recognised/181863 "2010-01-20T16:04:32Z")

</div>

Hi, I have installed rubyzip successfully(see output below) Successfully installed rubyzip-0.9.1 1 gem installed Installing ri documentation for rubyzip-0.9.1… Installing RDoc documentation for rubyzip-0.9.1… if I …

---

## [Select option to a select\_tag after submitting form](https://www.ruby-forum.com/t/select-option-to-a-select-tag-after-submitting-form/181947)

<div class="topic-metadata">

**Author:** [@dannypotta](https://www.ruby-forum.com/u/dannypotta)\
**Replies:** 0\
**Last updated:** [January 20, 2010, 3:57pm UTC](https://www.ruby-forum.com/t/select-option-to-a-select-tag-after-submitting-form/181947 "2010-01-20T15:57:01Z")

</div>

How can I keep the selected option in the select\_tag after submitting a form to the same page? Form \<%= select\_tag :city\_id, options\_from\_collection\_for\_select(City.find(:all), :id, :name) %\> After submit the page r…

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

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