# Rails

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

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

---

## [GWT\_on\_Rails](https://www.ruby-forum.com/t/gwt-on-rails/170837)

<div class="topic-metadata">

**Author:** [@yasir\_javed](https://www.ruby-forum.com/u/yasir_javed)\
**Replies:** 2\
**Last updated:** [June 23, 2009, 11:12pm UTC](https://www.ruby-forum.com/t/gwt-on-rails/170837 "2009-06-23T23:12:52Z")

</div>

Hi, Can anyone please help me how to install Google Web Toolkit GWT\_on\_Rails I have GWT v.7 latest Ruby on Rails 2.4 Whenever I run the following command to install from the mentioned link, it gives me error that n…

---

## [Problem with ajax and nested forms](https://www.ruby-forum.com/t/problem-with-ajax-and-nested-forms/170874)

<div class="topic-metadata">

**Author:** [@Adrian\_D](https://www.ruby-forum.com/u/Adrian_D)\
**Replies:** 1\
**Last updated:** [June 23, 2009, 10:40pm UTC](https://www.ruby-forum.com/t/problem-with-ajax-and-nested-forms/170874 "2009-06-23T22:40:37Z")

</div>

Hi everybody, I have the following problem: My model ‘event’ has many ‘eventdates’. I use a nested form to edit these events and its eventdates. Everything gets updated using js, which works fine. def update @event …

---

## [Not really a Rails post but](https://www.ruby-forum.com/t/not-really-a-rails-post-but/170644)

<div class="topic-metadata">

**Author:** [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Replies:** 7\
**Last updated:** [June 23, 2009, 9:01pm UTC](https://www.ruby-forum.com/t/not-really-a-rails-post-but/170644 "2009-06-23T21:01:00Z")

</div>

This isn’t really a Rails post but this group has given such great responses to a range of questions over the years I though I’d ask anyway. I’ve been tasked with writting a Rails app that takes a block of text, anyw…

---

## [Ails based shopping cart/e-commerce engines/starter apps](https://www.ruby-forum.com/t/ails-based-shopping-cart-e-commerce-engines-starter-apps/170871)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [June 23, 2009, 9:00pm UTC](https://www.ruby-forum.com/t/ails-based-shopping-cart-e-commerce-engines-starter-apps/170871 "2009-06-23T21:00:52Z")

</div>

All, I’m looking at possibly working on an e-commerce site prototype which will require all of the standard elements (product management, shopping cart, hooks to payment, etc.), and I was wondering if anyone had any …

---

## [Your expert views on rails code security needed!](https://www.ruby-forum.com/t/your-expert-views-on-rails-code-security-needed/170347)

<div class="topic-metadata">

**Author:** [@san2821](https://www.ruby-forum.com/u/san2821)\
**Replies:** 6\
**Last updated:** [June 23, 2009, 8:01pm UTC](https://www.ruby-forum.com/t/your-expert-views-on-rails-code-security-needed/170347 "2009-06-23T20:01:08Z")

</div>

Hello All, I wanted to know your views on how rails application code can be secured while deployment. I know there are some commercial encryption tools which can do it for you. Anyone have any idea on this ?? Than…

---

## [Opening old project](https://www.ruby-forum.com/t/opening-old-project/170805)

<div class="topic-metadata">

**Author:** [@Luciano](https://www.ruby-forum.com/u/Luciano)\
**Replies:** 7\
**Last updated:** [June 23, 2009, 7:42pm UTC](https://www.ruby-forum.com/t/opening-old-project/170805 "2009-06-23T19:42:03Z")

</div>

Hello there, On friend asked me to update his rails app… But it’s app was made with Rails 1.2.3 and I can not start it on my computer, Leopard, Rails 2.3 Does anybody have any advice on opening and updating old proje…

---

## [Rails Hosting: Can't make up my mind](https://www.ruby-forum.com/t/rails-hosting-cant-make-up-my-mind/170852)

<div class="topic-metadata">

**Author:** [@ben-v](https://www.ruby-forum.com/u/ben-v)\
**Replies:** 6\
**Last updated:** [June 23, 2009, 7:23pm UTC](https://www.ruby-forum.com/t/rails-hosting-cant-make-up-my-mind/170852 "2009-06-23T19:23:13Z")

</div>

I’ve been irresolute about who to choose for hosting for the past few days. Right now my two favorites are Rails Playground and Blue Box Group. Anyone have any advice or experience with them?

---

## [Find\_by should return a default](https://www.ruby-forum.com/t/find-by-should-return-a-default/170859)

<div class="topic-metadata">

**Author:** [@jc71229](https://www.ruby-forum.com/u/jc71229)\
**Replies:** 2\
**Last updated:** [June 23, 2009, 6:48pm UTC](https://www.ruby-forum.com/t/find-by-should-return-a-default/170859 "2009-06-23T18:48:39Z")

</div>

Hi, I am puzzlin for quite a while on this. I use find\_by methods to retieve AR objects. In some cases find\_by will return nil if there is no match. However I would like to have find\_by return a default object instead…

---

## [Rails Hosting: Slicehost vs. Rimuhosting](https://www.ruby-forum.com/t/rails-hosting-slicehost-vs-rimuhosting/170779)

<div class="topic-metadata">

**Author:** [@khagimoto](https://www.ruby-forum.com/u/khagimoto)\
**Replies:** 12\
**Last updated:** [June 23, 2009, 6:18pm UTC](https://www.ruby-forum.com/t/rails-hosting-slicehost-vs-rimuhosting/170779 "2009-06-23T18:18:06Z")

</div>

I know similar topics have been covered before, but I’d like to get a more up-to-date Ruby developer’s opinions. (Please note that I’ve read similar threads in this group and read a lot of hosting comparison sites, e…

---

## [Modules and models](https://www.ruby-forum.com/t/modules-and-models/170785)

<div class="topic-metadata">

**Author:** [@lee](https://www.ruby-forum.com/u/lee)\
**Replies:** 3\
**Last updated:** [June 23, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/modules-and-models/170785 "2009-06-23T17:58:59Z")

</div>

We have decided to wrap each of our model classes in a module, where the module name is currently the same across all models and is the name of the application. So, for example, we have: module SpringBase class User \<…

---

## [Twitter gem documentation?](https://www.ruby-forum.com/t/twitter-gem-documentation/170857)

<div class="topic-metadata">

**Author:** [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Replies:** 0\
**Last updated:** [June 23, 2009, 5:42pm UTC](https://www.ruby-forum.com/t/twitter-gem-documentation/170857 "2009-06-23T17:42:39Z")

</div>

I’ve just started a new project using the twitter gem http://twitter.rubyforge.org/ I’ve managed to authenticate a user and create an object out of it. Then I’ve pulled that user’s timeline and created an array out of…

---

## [Session timeout using prototype](https://www.ruby-forum.com/t/session-timeout-using-prototype/170842)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 5\
**Last updated:** [June 23, 2009, 5:37pm UTC](https://www.ruby-forum.com/t/session-timeout-using-prototype/170842 "2009-06-23T17:37:28Z")

</div>

Dear all I want my rails web application include a timeout function using prototype… say, if the browser is idle for 15 mins, then it automatically redirect to the admin/logout, where admin is my controller name, log…

---

## [Syntax error, unexpected tINTEGER, expecting $end](https://www.ruby-forum.com/t/syntax-error-unexpected-tinteger-expecting-end/170838)

<div class="topic-metadata">

**Author:** [@learnbydoing](https://www.ruby-forum.com/u/learnbydoing)\
**Replies:** 2\
**Last updated:** [June 23, 2009, 5:24pm UTC](https://www.ruby-forum.com/t/syntax-error-unexpected-tinteger-expecting-end/170838 "2009-06-23T17:24:44Z")

</div>

Please help me solve the following error message: syntax error, unexpected tINTEGER, expecting $end I have this model: Code: class GeoDatum \< ActiveRecord::Base end The database contains the table geo\_data, which c…

---

## [Render\_to\_string inside method shared across several controllers](https://www.ruby-forum.com/t/render-to-string-inside-method-shared-across-several-controllers/170855)

<div class="topic-metadata">

**Author:** [@christer](https://www.ruby-forum.com/u/christer)\
**Replies:** 0\
**Last updated:** [June 23, 2009, 5:22pm UTC](https://www.ruby-forum.com/t/render-to-string-inside-method-shared-across-several-controllers/170855 "2009-06-23T17:22:23Z")

</div>

I use render\_to\_string to generate short reports (in HTML) under certain conditions when users access my application. The reports are stored in the database and uses database information at the time they are generated…

---

## [Serialize methods by to\_json](https://www.ruby-forum.com/t/serialize-methods-by-to-json/170836)

<div class="topic-metadata">

**Author:** [@gpierce](https://www.ruby-forum.com/u/gpierce)\
**Replies:** 1\
**Last updated:** [June 23, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/serialize-methods-by-to-json/170836 "2009-06-23T16:41:54Z")

</div>

Hello, Is there possible to pass arguments for serialized methods using to\_json?? I want to serialize my collection of users with income and outcome which is calculate by methods: collection.to\_json(:methods =\> \[:in…

---

## [Rails error](https://www.ruby-forum.com/t/rails-error/170851)

<div class="topic-metadata">

**Author:** [@llinklater](https://www.ruby-forum.com/u/llinklater)\
**Replies:** 3\
**Last updated:** [June 23, 2009, 4:02pm UTC](https://www.ruby-forum.com/t/rails-error/170851 "2009-06-23T16:02:47Z")

</div>

I am trying to learn rails from “Agile Web D. with Rails, 3rd Edition” and am having troubles. I get an error when I try to run this command on pg 68: ruby script/generate scaffold product \\ title:string description:…

---

## [Rails 2.3 view caching in development](https://www.ruby-forum.com/t/rails-2-3-view-caching-in-development/170843)

<div class="topic-metadata">

**Author:** [@trybeee](https://www.ruby-forum.com/u/trybeee)\
**Replies:** 1\
**Last updated:** [June 23, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/rails-2-3-view-caching-in-development/170843 "2009-06-23T14:50:53Z")

</div>

Anybody knows hot to disable views caching in development on rails 2.3?

---

## [Rails + IE Problem](https://www.ruby-forum.com/t/rails-ie-problem/170761)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 5\
**Last updated:** [June 23, 2009, 12:05pm UTC](https://www.ruby-forum.com/t/rails-ie-problem/170761 "2009-06-23T12:05:57Z")

</div>

Hey Dudes, Once again, seeking for ur help :slight\_smile: Actually the thing is mine code is working fine in Mozilla/Any other browser but in IE … yellow icon comes up and says that “Done but, errors with this page”… …

---

## [One Quick help needed!](https://www.ruby-forum.com/t/one-quick-help-needed/170597)

<div class="topic-metadata">

**Author:** [@san2821](https://www.ruby-forum.com/u/san2821)\
**Replies:** 4\
**Last updated:** [June 23, 2009, 10:58am UTC](https://www.ruby-forum.com/t/one-quick-help-needed/170597 "2009-06-23T10:58:37Z")

</div>

Hello Friends ! from my script/console I am getting channel blog feature as below Channel.find(:first).blog =\> #\<Blog id: 1, activated\_at: nil, state: true, channel\_id: 1, feature\_id: 1, created\_at: “2009-05-18 1…

---

## [How to properly override ActiveRecord::Base.find](https://www.ruby-forum.com/t/how-to-properly-override-activerecord-base-find/166452)

<div class="topic-metadata">

**Author:** [@Commander\_J](https://www.ruby-forum.com/u/Commander_J)\
**Replies:** 5\
**Last updated:** [June 23, 2009, 10:45am UTC](https://www.ruby-forum.com/t/how-to-properly-override-activerecord-base-find/166452 "2009-06-23T10:45:42Z")

</div>

Hi, I want the find(:all) method to only return published Comments. This works: Override find method to only return published comments def self.find(\*args) options = args.extract\_options! validate\_find\_options(optio…

---

## [Can't modify frozen hash](https://www.ruby-forum.com/t/cant-modify-frozen-hash/196973)

<div class="topic-metadata">

**Author:** [@skumar](https://www.ruby-forum.com/u/skumar)\
**Replies:** 1\
**Last updated:** [June 23, 2009, 10:44am UTC](https://www.ruby-forum.com/t/cant-modify-frozen-hash/196973 "2009-06-23T10:44:31Z")

</div>

Hi, When I upgraded my rails application to rails 2.3.2 I am getting error ‘can’t modify frozen hash’ on using @something.update\_attribute(params\[:something\]). Can anyone help me who is familiarize with this bug? Th…

---

## [Roles, STI and convention](https://www.ruby-forum.com/t/roles-sti-and-convention/170832)

<div class="topic-metadata">

**Author:** [@tachekent](https://www.ruby-forum.com/u/tachekent)\
**Replies:** 0\
**Last updated:** [June 23, 2009, 9:30am UTC](https://www.ruby-forum.com/t/roles-sti-and-convention/170832 "2009-06-23T09:30:00Z")

</div>

Hi, I have been using the restful\_authentication plugin and the default roles setup that it came with. I have a system with 1 admin, 20-30 clients(customers) and 500+ users all of whom can login. I found that often w…

---

## [Newbie need help](https://www.ruby-forum.com/t/newbie-need-help/170655)

<div class="topic-metadata">

**Author:** [@rubyrailer23](https://www.ruby-forum.com/u/rubyrailer23)\
**Replies:** 8\
**Last updated:** [June 23, 2009, 9:20am UTC](https://www.ruby-forum.com/t/newbie-need-help/170655 "2009-06-23T09:20:01Z")

</div>

Can someone help me get started with ruby on rails? I searched a lot of tutorials on how to get it started but most are out dated and all doesn’t seems to work. Getting really frustrated on where to begin. I hope so…

---

## [Encode string to utf-8](https://www.ruby-forum.com/t/encode-string-to-utf-8/170827)

<div class="topic-metadata">

**Author:** [@twittwit](https://www.ruby-forum.com/u/twittwit)\
**Replies:** 0\
**Last updated:** [June 23, 2009, 8:46am UTC](https://www.ruby-forum.com/t/encode-string-to-utf-8/170827 "2009-06-23T08:46:03Z")

</div>

hi all, i realised that rails provide string in non-encode format. may i know how can I encode it in utf-8? i tried using html\_helpers but i donno how to encode it? i typed this : \<%= encode\_entities(“Über geek”) %\> …

---

## [Word document parsing using ROR](https://www.ruby-forum.com/t/word-document-parsing-using-ror/170109)

<div class="topic-metadata">

**Author:** [@anandhkumar](https://www.ruby-forum.com/u/anandhkumar)\
**Replies:** 5\
**Last updated:** [June 23, 2009, 7:23am UTC](https://www.ruby-forum.com/t/word-document-parsing-using-ror/170109 "2009-06-23T07:23:23Z")

</div>

Hi dudes Is there anyway to parse word document to upload the data from word doc to d/b pls help me in sorting this issue. Thanks Anandh

---

## [Question about create\_table](https://www.ruby-forum.com/t/question-about-create-table/170802)

<div class="topic-metadata">

**Author:** [@Xiahong\_G](https://www.ruby-forum.com/u/Xiahong_G)\
**Replies:** 2\
**Last updated:** [June 23, 2009, 5:10am UTC](https://www.ruby-forum.com/t/question-about-create-table/170802 "2009-06-23T05:10:38Z")

</div>

Hi everyone, I am a newb. I have one question about following code: def self.up create\_table :order\_histories do |t| t.column :order\_id, :integer, :null =\> false t.column :created\_at, :timestamp t.column :notes, :t…

---

## [How would I implement this as a named scope?](https://www.ruby-forum.com/t/how-would-i-implement-this-as-a-named-scope/170812)

<div class="topic-metadata">

**Author:** [@talex83](https://www.ruby-forum.com/u/talex83)\
**Replies:** 0\
**Last updated:** [June 23, 2009, 4:39am UTC](https://www.ruby-forum.com/t/how-would-i-implement-this-as-a-named-scope/170812 "2009-06-23T04:39:13Z")

</div>

I’ve made some fairly simple methods that perform a kind of generic ACL check. I use it as an initializer that adds one singleton method and one method to any subclasses of ActiveRecord. How would I go about changing…

---

## [DD IE PNG with Ajax Modal Window](https://www.ruby-forum.com/t/dd-ie-png-with-ajax-modal-window/170808)

<div class="topic-metadata">

**Author:** [@Geekyra](https://www.ruby-forum.com/u/Geekyra)\
**Replies:** 0\
**Last updated:** [June 23, 2009, 2:09am UTC](https://www.ruby-forum.com/t/dd-ie-png-with-ajax-modal-window/170808 "2009-06-23T02:09:18Z")

</div>

Hello all, Currently i’m using DDIEPNG (http://www.dillerdesign.com/experiment/ DD\_belatedPNG/) as my IE6 png headache pill, but i hit a problem with ajax modal window… I’m trying to create modal window using lightbo…

---

## [Connecting Ruby on rails with MySQL](https://www.ruby-forum.com/t/connecting-ruby-on-rails-with-mysql/170643)

<div class="topic-metadata">

**Author:** [@scholar](https://www.ruby-forum.com/u/scholar)\
**Replies:** 7\
**Last updated:** [June 23, 2009, 12:30am UTC](https://www.ruby-forum.com/t/connecting-ruby-on-rails-with-mysql/170643 "2009-06-23T00:30:47Z")

</div>

I am using Fedora 8 in my system and I have installed ruby, rails and mysql…Can anyone please explain the steps for connecting Ruby on Rails with MySQL. Actually I am getting this problem $rake db.migrate (in /home/…

---

## [Has\_many through , or habtm , using form](https://www.ruby-forum.com/t/has-many-through-or-habtm-using-form/170762)

<div class="topic-metadata">

**Author:** [@lecielbleu](https://www.ruby-forum.com/u/lecielbleu)\
**Replies:** 5\
**Last updated:** [June 23, 2009, 12:23am UTC](https://www.ruby-forum.com/t/has-many-through-or-habtm-using-form/170762 "2009-06-23T00:23:26Z")

</div>

i think there ara two ways of relate products and categories , basically i want to fix one product(e.g hp dv7…) to some categories (notebook,17"notebooks…) i made a table named categorization(incuding category\_id,pro…

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

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