# Rails

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

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

---

## [Session id length in sessions table](https://www.ruby-forum.com/t/session-id-length-in-sessions-table/167190)

<div class="topic-metadata">

**Author:** [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Replies:** 2\
**Last updated:** [May 5, 2009, 7:06pm UTC](https://www.ruby-forum.com/t/session-id-length-in-sessions-table/167190 "2009-05-05T19:06:08Z")

</div>

Dear all, I just created session with rake db:sessions:create and run the migration also. When I run my apps, my db barfed out saying that the length of session\_id is too long. When I checked into my db, the length o…

---

## [Question regarding has\_one and association\_build](https://www.ruby-forum.com/t/question-regarding-has-one-and-association-build/167233)

<div class="topic-metadata">

**Author:** [@eric99](https://www.ruby-forum.com/u/eric99)\
**Replies:** 0\
**Last updated:** [May 5, 2009, 6:48pm UTC](https://www.ruby-forum.com/t/question-regarding-has-one-and-association-build/167233 "2009-05-05T18:48:30Z")

</div>

In the doc, there’s is a note saying association\_build “only works if an association already exists. It will NOT work if the association is nil.” But in my test, it works fine when the association is nil. For exampl…

---

## [How to reset Rails.cache servers? Rails.cache.reset is undefinied](https://www.ruby-forum.com/t/how-to-reset-rails-cache-servers-rails-cache-reset-is-undefinied/167152)

<div class="topic-metadata">

**Author:** [@kineticac](https://www.ruby-forum.com/u/kineticac)\
**Replies:** 2\
**Last updated:** [May 5, 2009, 6:39pm UTC](https://www.ruby-forum.com/t/how-to-reset-rails-cache-servers-rails-cache-reset-is-undefinied/167152 "2009-05-05T18:39:08Z")

</div>

I’m trying to get memcached working for my rails app that’s running under passenger. Apparently we need to check if passenger forked memcached, and if so we need to establish a new connection using a reset function. …

---

## [Session ID too long](https://www.ruby-forum.com/t/session-id-too-long/167201)

<div class="topic-metadata">

**Author:** [@cesardiaz](https://www.ruby-forum.com/u/cesardiaz)\
**Replies:** 4\
**Last updated:** [May 5, 2009, 6:36pm UTC](https://www.ruby-forum.com/t/session-id-too-long/167201 "2009-05-05T18:36:27Z")

</div>

Hi, I have a problem with the Session ID in my Rails application. I need to store some data of anonymous users and then, when the session expires, delete that information from de database. I have a filter in some poi…

---

## [Declare global variable in views](https://www.ruby-forum.com/t/declare-global-variable-in-views/167210)

<div class="topic-metadata">

**Author:** [@nike](https://www.ruby-forum.com/u/nike)\
**Replies:** 2\
**Last updated:** [May 5, 2009, 6:24pm UTC](https://www.ruby-forum.com/t/declare-global-variable-in-views/167210 "2009-05-05T18:24:21Z")

</div>

how to declare a variable globally in views without writing in controller,model or in config

---

## [New to Rails, but have a 500 error](https://www.ruby-forum.com/t/new-to-rails-but-have-a-500-error/167221)

<div class="topic-metadata">

**Author:** [@Learning](https://www.ruby-forum.com/u/Learning)\
**Replies:** 2\
**Last updated:** [May 5, 2009, 6:23pm UTC](https://www.ruby-forum.com/t/new-to-rails-but-have-a-500-error/167221 "2009-05-05T18:23:11Z")

</div>

i’m new to ruby on rails, there’s a problem when i follow the guide on i create a controller like this Ruby script\\generate home index and edit app/views/home/index.html.erb after that Ruby script\\server when i bro…

---

## [Rake rails:update question](https://www.ruby-forum.com/t/rake-rails-update-question/167212)

<div class="topic-metadata">

**Author:** [@furrot](https://www.ruby-forum.com/u/furrot)\
**Replies:** 1\
**Last updated:** [May 5, 2009, 6:23pm UTC](https://www.ruby-forum.com/t/rake-rails-update-question/167212 "2009-05-05T18:23:10Z")

</div>

Does running the rake rails:update command just update the current rails app you are in? Sorry if this is a stupid question, I am trying to run 2 different versions of rails and need to upgrade one of my apps. thanks …

---

## ["gem install rails" error on Windows](https://www.ruby-forum.com/t/gem-install-rails-error-on-windows/167227)

<div class="topic-metadata">

**Author:** [@danieljianu](https://www.ruby-forum.com/u/danieljianu)\
**Replies:** 1\
**Last updated:** [May 5, 2009, 6:19pm UTC](https://www.ruby-forum.com/t/gem-install-rails-error-on-windows/167227 "2009-05-05T18:19:36Z")

</div>

Hello all. I’m having the following problem and I can’t seem to find a solution for it: running “gem install rails” on a Windows environment generates “ERROR: While executing gem … (Zlib::BufError) buffer error” …

---

## [Modalbox rails var interpolation](https://www.ruby-forum.com/t/modalbox-rails-var-interpolation/167179)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 4\
**Last updated:** [May 5, 2009, 6:05pm UTC](https://www.ruby-forum.com/t/modalbox-rails-var-interpolation/167179 "2009-05-05T18:05:19Z")

</div>

Howdy everyone. I am using modalbox which is very nice an easy to use. I have this for an edit for a company listing: \<%= link\_to('Manage Companies', {}, :onclick =\> 'Modalbox.show(\\'/ companies/edit/#{company.id}\\',…

---

## [How to use json in view file](https://www.ruby-forum.com/t/how-to-use-json-in-view-file/167189)

<div class="topic-metadata">

**Author:** [@mrbless](https://www.ruby-forum.com/u/mrbless)\
**Replies:** 5\
**Last updated:** [May 5, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/how-to-use-json-in-view-file/167189 "2009-05-05T18:02:41Z")

</div>

In my controller I have found all the movies like this @budgets=Budget.find(:all).to\_json Now in the view file what i want to do is something like this How to do this as i have to plot this data.

---

## [Select\_tag with multiple set to true returns a String in params instead of array](https://www.ruby-forum.com/t/select-tag-with-multiple-set-to-true-returns-a-string-in-params-instead-of-array/167219)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 2\
**Last updated:** [May 5, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/select-tag-with-multiple-set-to-true-returns-a-string-in-params-instead-of-array/167219 "2009-05-05T18:02:01Z")

</div>

Hi - I’m trying to get a multi-select box working. The form shows up fine, and I can select multiple items fine, but in the controller, the parameter shows up as a single string, instead of an array of values. Any id…

---

## [Intergrate Jasper report to Ruby on Rails Application](https://www.ruby-forum.com/t/intergrate-jasper-report-to-ruby-on-rails-application/167226)

<div class="topic-metadata">

**Author:** [@velu](https://www.ruby-forum.com/u/velu)\
**Replies:** 0\
**Last updated:** [May 5, 2009, 5:46pm UTC](https://www.ruby-forum.com/t/intergrate-jasper-report-to-ruby-on-rails-application/167226 "2009-05-05T17:46:43Z")

</div>

Hi, Im very new in Ruby on Rails. I have to do intergrate jasper report with Rails applications. I found the link http://wiki.rubyonrails.org/rails/pages/HowtoIntegrateJasperReports. But Im not clear how to do. Plz …

---

## [SQL Server via DBI/ODBC configuration](https://www.ruby-forum.com/t/sql-server-via-dbi-odbc-configuration/165519)

<div class="topic-metadata">

**Author:** [@mvargo](https://www.ruby-forum.com/u/mvargo)\
**Replies:** 6\
**Last updated:** [May 5, 2009, 5:46pm UTC](https://www.ruby-forum.com/t/sql-server-via-dbi-odbc-configuration/165519 "2009-05-05T17:46:07Z")

</div>

I have followed the cookbook on http://wiki.rubyonrails.org/database-support/ms-sql but am having problems with the rails part. I can connect to the database using sqsh so I think all the freetds plumbing is good. W…

---

## [Setting DEFAULT\_FIELD\_OPTIONS in Rails 2.3](https://www.ruby-forum.com/t/setting-default-field-options-in-rails-2-3/162923)

<div class="topic-metadata">

**Author:** [@dru](https://www.ruby-forum.com/u/dru)\
**Replies:** 5\
**Last updated:** [May 5, 2009, 5:46pm UTC](https://www.ruby-forum.com/t/setting-default-field-options-in-rails-2-3/162923 "2009-05-05T17:46:06Z")

</div>

Hi, I’m having some trouble overriding/defining the default\_field\_options constant without raising a warning. I’ve tried adding the code to do it in an initializer but that produces a warning (because the constant is…

---

## [JOBS-Ruby on Rails/LAMP Developer](https://www.ruby-forum.com/t/jobs-ruby-on-rails-lamp-developer/167225)

<div class="topic-metadata">

**Author:** [@RailsRecruiter](https://www.ruby-forum.com/u/RailsRecruiter)\
**Replies:** 0\
**Last updated:** [May 5, 2009, 5:44pm UTC](https://www.ruby-forum.com/t/jobs-ruby-on-rails-lamp-developer/167225 "2009-05-05T17:44:53Z")

</div>

Hello Ruby group, I hope you can help me out with a search I am doing for a client of mine. They are looking to add a web UI designer to our rapidly growing engineering team. Candidates for this position should have a…

---

## [Uninitialized constant Article::Text (NameError)](https://www.ruby-forum.com/t/uninitialized-constant-article-text-nameerror/167223)

<div class="topic-metadata">

**Author:** [@manju](https://www.ruby-forum.com/u/manju)\
**Replies:** 0\
**Last updated:** [May 5, 2009, 5:43pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-article-text-nameerror/167223 "2009-05-05T17:43:07Z")

</div>

uninitialized constant Article::Text (NameError) when i exute the program i am getting this err can any one give me the solution for this

---

## [Problem with rails 2.3.2 and Erubis 2.6.4](https://www.ruby-forum.com/t/problem-with-rails-2-3-2-and-erubis-2-6-4/167222)

<div class="topic-metadata">

**Author:** [@ashrafuzzaman](https://www.ruby-forum.com/u/ashrafuzzaman)\
**Replies:** 0\
**Last updated:** [May 5, 2009, 5:43pm UTC](https://www.ruby-forum.com/t/problem-with-rails-2-3-2-and-erubis-2-6-4/167222 "2009-05-05T17:43:07Z")

</div>

Hi, I am facing some problems migrating from rails 2.1.0 to rails 2.3.2. I am using Erubis 2.6.4. I get the following error when I start the webrick server. Rendering template within layouts/login Rendering login/lo…

---

## [Will\_paginate not showing](https://www.ruby-forum.com/t/will-paginate-not-showing/149193)

<div class="topic-metadata">

**Author:** [@mrdamien](https://www.ruby-forum.com/u/mrdamien)\
**Replies:** 5\
**Last updated:** [May 5, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/will-paginate-not-showing/149193 "2009-05-05T15:55:17Z")

</div>

Hi, I am trying to use the will\_paginate helper. I installed the gem and put “require ‘will\_paginate’” in the environment.rb file. In my controller @tasks = Task.paginate :page =\> params\[:page\], :order =\> ‘date\_be…

---

## [CookieStore and setting an expiration](https://www.ruby-forum.com/t/cookiestore-and-setting-an-expiration/166991)

<div class="topic-metadata">

**Author:** [@etienne](https://www.ruby-forum.com/u/etienne)\
**Replies:** 3\
**Last updated:** [May 5, 2009, 3:23pm UTC](https://www.ruby-forum.com/t/cookiestore-and-setting-an-expiration/166991 "2009-05-05T15:23:44Z")

</div>

hi everyone, i can’t seem to find any help online for this. I’m using CookieStore. What I can’t seem to figure out how to do is set the expiration for the cookie set by CookieStore. Right now it leaves that field …

---

## [Moving a project from windows to linux](https://www.ruby-forum.com/t/moving-a-project-from-windows-to-linux/167136)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 5\
**Last updated:** [May 5, 2009, 3:12pm UTC](https://www.ruby-forum.com/t/moving-a-project-from-windows-to-linux/167136 "2009-05-05T15:12:00Z")

</div>

How easy is it to do this. Is it simply a case of copying the project directory over to the linux directory or does one have to create a new project in the linux system and copy paste (due to the wonders of rails magi…

---

## [Will\_paginate problem](https://www.ruby-forum.com/t/will-paginate-problem/167207)

<div class="topic-metadata">

**Author:** [@furrot](https://www.ruby-forum.com/u/furrot)\
**Replies:** 1\
**Last updated:** [May 5, 2009, 3:04pm UTC](https://www.ruby-forum.com/t/will-paginate-problem/167207 "2009-05-05T15:04:56Z")

</div>

Hi all, I’m having a bit of a problem with displaying a blog list using the will\_paginate helper. My code is: entries\_controller: def index @entries = Entry.find(:all) @blog\_entries = @entries.paginate( :page =\> pa…

---

## [Query returning just one value](https://www.ruby-forum.com/t/query-returning-just-one-value/167192)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 6\
**Last updated:** [May 5, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/query-returning-just-one-value/167192 "2009-05-05T15:02:35Z")

</div>

I am using INNER JOIN and it is supposed to return more than one results but it only returns first element. How do I get all elements in an array? Also, in the same query I am using another INNER JOIN that is supposed …

---

## [Make a little to an outside website](https://www.ruby-forum.com/t/make-a-little-to-an-outside-website/167205)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 1\
**Last updated:** [May 5, 2009, 2:46pm UTC](https://www.ruby-forum.com/t/make-a-little-to-an-outside-website/167205 "2009-05-05T14:46:11Z")

</div>

I want to allow users to post links to outside website on my site. How can this be done?

---

## [How to write data into excel files using roo](https://www.ruby-forum.com/t/how-to-write-data-into-excel-files-using-roo/167203)

<div class="topic-metadata">

**Author:** [@vidhya](https://www.ruby-forum.com/u/vidhya)\
**Replies:** 0\
**Last updated:** [May 5, 2009, 2:30pm UTC](https://www.ruby-forum.com/t/how-to-write-data-into-excel-files-using-roo/167203 "2009-05-05T14:30:01Z")

</div>

Hai, I am using parseexcel to export data to a excel,while exporting a large amount of data it shows a MaxSizeError. Ithink that i will use roo for exporting data into excel.But i dont know the codings to write data …

---

## [My first plugin =\> my first Stack level too deep](https://www.ruby-forum.com/t/my-first-plugin-my-first-stack-level-too-deep/167195)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 3\
**Last updated:** [May 5, 2009, 1:48pm UTC](https://www.ruby-forum.com/t/my-first-plugin-my-first-stack-level-too-deep/167195 "2009-05-05T13:48:32Z")

</div>

Hello, I’ve just created my first plugin, is really a simple one, and it has only one validation, special for a spanish bank account. As I need it in more than one RoR, I’ve decided to create as a plugin, but now I’m…

---

## [Setting Up Reminders](https://www.ruby-forum.com/t/setting-up-reminders/164212)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 4\
**Last updated:** [May 5, 2009, 1:29pm UTC](https://www.ruby-forum.com/t/setting-up-reminders/164212 "2009-05-05T13:29:06Z")

</div>

I was hoping to get some advice on something I am trying to build. I want to be able to allow users to be able to set up reminders. They will be allowed to choose to have reminders either once a day (or more than once…

---

## [Problem with Time Zone Rails 2.3.2](https://www.ruby-forum.com/t/problem-with-time-zone-rails-2-3-2/167185)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 0\
**Last updated:** [May 5, 2009, 7:40am UTC](https://www.ruby-forum.com/t/problem-with-time-zone-rails-2-3-2/167185 "2009-05-05T07:40:57Z")

</div>

Hello, I’m using Rail 2.3.2 and I want to include time zones with my application by putting: config.time\_zone = “Pacific Time (US & Canada)” in my environment.rb. This works fine on my Mac development machine but I …

---

## [RightScale Cloud Computing Webinar](https://www.ruby-forum.com/t/rightscale-cloud-computing-webinar/167184)

<div class="topic-metadata">

**Author:** [@Edward\_MSGoldberg](https://www.ruby-forum.com/u/Edward_MSGoldberg)\
**Replies:** 0\
**Last updated:** [May 5, 2009, 7:24am UTC](https://www.ruby-forum.com/t/rightscale-cloud-computing-webinar/167184 "2009-05-05T07:24:46Z")

</div>

Ruby Developers, RightScale is the Cloud Computing Dashboard written in 100% pure Ruby. Come see a demo about the dashboard an Cloud Computing. Sign up here: The Cloud is one of the best ways to Deploy Rails Projec…

---

## [Any way to submit an image as part of a form (Javascript?)](https://www.ruby-forum.com/t/any-way-to-submit-an-image-as-part-of-a-form-javascript/167027)

<div class="topic-metadata">

**Author:** [@itsastickup](https://www.ruby-forum.com/u/itsastickup)\
**Replies:** 7\
**Last updated:** [May 5, 2009, 12:30am UTC](https://www.ruby-forum.com/t/any-way-to-submit-an-image-as-part-of-a-form-javascript/167027 "2009-05-05T00:30:08Z")

</div>

I would like to submit the data of a rendered image from the users browser in a form. Is this possible? (My reasons are not illegal, by the way). I’m going to be storing it in a database for viewing at another time. I…

---

## [More on IMAP](https://www.ruby-forum.com/t/more-on-imap/167167)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [May 4, 2009, 11:58pm UTC](https://www.ruby-forum.com/t/more-on-imap/167167 "2009-05-04T23:58:23Z")

</div>

I have been attempting to implement IMAP authentication in my organization— it has been nothing but a nightmare. Take this simple function (It’s quick and dirty for testing purposes… definitely a nasty recursive call …

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

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