# Rails

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

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

---

## [RoR free e-books](https://www.ruby-forum.com/t/ror-free-e-books/195333)

<div class="topic-metadata">

**Author:** [@kishore](https://www.ruby-forum.com/u/kishore)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 9:03pm UTC](https://www.ruby-forum.com/t/ror-free-e-books/195333 "2010-09-21T21:03:56Z")

</div>

Hi friends, You can search get a list of websites for Ruby on Rails e-books from the following website

---

## [Ruby on Rails Resources](https://www.ruby-forum.com/t/ruby-on-rails-resources/195332)

<div class="topic-metadata">

**Author:** [@kishore](https://www.ruby-forum.com/u/kishore)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 8:55pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-resources/195332 "2010-09-21T20:55:10Z")

</div>

Hi Friends, You can access the list of ruby on rails resources that are useful for development from the following http://cognition-sharing.blogspot.com/

---

## [Handsoap: Parsing Attributes](https://www.ruby-forum.com/t/handsoap-parsing-attributes/195326)

<div class="topic-metadata">

**Author:** [@Aaron\_Carlton](https://www.ruby-forum.com/u/Aaron_Carlton)\
**Replies:** 1\
**Last updated:** [September 21, 2010, 7:20pm UTC](https://www.ruby-forum.com/t/handsoap-parsing-attributes/195326 "2010-09-21T19:20:54Z")

</div>

Hi, I am using Handsoap to integrate my Rails app with a SOAP web service, and when parsing the XML in the response, I need to change behavior depending on an element’s ‘type’ attribute. A snippet of the XML respons…

---

## [Rails 3 deployment on Passenger](https://www.ruby-forum.com/t/rails-3-deployment-on-passenger/195316)

<div class="topic-metadata">

**Author:** [@sgbmn](https://www.ruby-forum.com/u/sgbmn)\
**Replies:** 3\
**Last updated:** [September 21, 2010, 7:08pm UTC](https://www.ruby-forum.com/t/rails-3-deployment-on-passenger/195316 "2010-09-21T19:08:01Z")

</div>

I’m trying to move up to Rails 3 and everything is going fine on my workstation where I have installed all of the necessary gems. The problem I’m having is getting it to run on the production server that I have to use…

---

## [JOBS in NYC and DC](https://www.ruby-forum.com/t/jobs-in-nyc-and-dc/195327)

<div class="topic-metadata">

**Author:** [@MichaelM](https://www.ruby-forum.com/u/MichaelM)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 7:04pm UTC](https://www.ruby-forum.com/t/jobs-in-nyc-and-dc/195327 "2010-09-21T19:04:30Z")

</div>

Hello! Interviewing now for the position below – several openings – contract and full time. Top $$$. Please reply with your Ruby projects & experience clearly noted and advise your availability and daily rate / salar…

---

## [Load error](https://www.ruby-forum.com/t/load-error/195321)

<div class="topic-metadata">

**Author:** [@irfan](https://www.ruby-forum.com/u/irfan)\
**Replies:** 3\
**Last updated:** [September 21, 2010, 6:35pm UTC](https://www.ruby-forum.com/t/load-error/195321 "2010-09-21T18:35:50Z")

</div>

Hi, Just install ruby on the rails in my windows followed by this Ruby on the Rails on Windows (wikis)http://www.google.com/url?sa=t&source=web&cd=4&ved=0CC4QFjAD&url=http%3A%2F%2Fwiki.rubyonrails.org%2Fgetting-start…

---

## [Server load error (sorry)](https://www.ruby-forum.com/t/server-load-error-sorry/195322)

<div class="topic-metadata">

**Author:** [@irfan](https://www.ruby-forum.com/u/irfan)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 6:25pm UTC](https://www.ruby-forum.com/t/server-load-error-sorry/195322 "2010-09-21T18:25:17Z")

</div>

Hi, Just install ruby on the rails in my windows followed by this Ruby on the Rails on Windows (wikis)http://www.google.com/url?sa=t&source=web&cd=4&ved=0CC4QFjAD&url=http%3A%2F%2Fwiki.rubyonrails.org%2Fgetting-start…

---

## [Create\_table :products do |t|](https://www.ruby-forum.com/t/create-table-products-do-t/195314)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [September 21, 2010, 6:22pm UTC](https://www.ruby-forum.com/t/create-table-products-do-t/195314 "2010-09-21T18:22:21Z")

</div>

At the following: Active Record Migrations — Ruby on Rails Guides You can find: def self.up create\_table :products do |t| t.string :name t.text :description t.timestamps end Regarding this line: create\_table :pr…

---

## [Surveys](https://www.ruby-forum.com/t/surveys/226079)

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 6:08pm UTC](https://www.ruby-forum.com/t/surveys/226079 "2010-09-21T18:08:53Z")

</div>

Hello everyone - I implemented a survey module based on Ryan B.'s Railscasts on nested forms: http://asciicasts.com/episodes/196-nested-model-form-part-1 I need users to take a survey upon close of a request they had …

---

## [Replicate with different tables/fields names](https://www.ruby-forum.com/t/replicate-with-different-tables-fields-names/195315)

<div class="topic-metadata">

**Author:** [@AndrSSSS\_Martins](https://www.ruby-forum.com/u/AndrSSSS_Martins)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 4:52pm UTC](https://www.ruby-forum.com/t/replicate-with-different-tables-fields-names/195315 "2010-09-21T16:52:47Z")

</div>

Hi everyone. I have a project that I have the arduous task of doing a replication system from a database with headquarters units. I tested and works very well with Rubyrep if the databases are identical. But the prob…

---

## [How do i clear rails cache](https://www.ruby-forum.com/t/how-do-i-clear-rails-cache/195310)

<div class="topic-metadata">

**Author:** [@amit-singh](https://www.ruby-forum.com/u/amit-singh)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 3:10pm UTC](https://www.ruby-forum.com/t/how-do-i-clear-rails-cache/195310 "2010-09-21T15:10:02Z")

</div>

hii all, i would like to know how do i clear rails cache memory,Actully in my rails application i havt to upload and download large size file,so when i am trying to downlaod files multiplt time am getting failed to …

---

## [Any easy way to change a Name for a Model?](https://www.ruby-forum.com/t/any-easy-way-to-change-a-name-for-a-model/195263)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 7\
**Last updated:** [September 21, 2010, 2:23pm UTC](https://www.ruby-forum.com/t/any-easy-way-to-change-a-name-for-a-model/195263 "2010-09-21T14:23:44Z")

</div>

Hello, I’ve been building an app recently that has a model Books that is a database table and linked to several models/controllers. I recently learned that instead of Books it needs to be called publications (just an …

---

## [ENV\[ â€˜REQUEST\_URIâ€™ \] = â€œ/demo/indexâ€](https://www.ruby-forum.com/t/env-a-request-uria-a-oe-demo-indexa/195298)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [September 21, 2010, 12:45pm UTC](https://www.ruby-forum.com/t/env-a-request-uria-a-oe-demo-indexa/195298 "2010-09-21T12:45:27Z")

</div>

In the “Rails Way” book, the following was written in the console: ENV\[ â€˜REQUEST\_URIâ€™ \] = â€œ/demo/indexâ€ I searched for a place to describe what ENV\[ â€˜REQUEST\_URIâ€™ \] means but didn’t find. I know it is cle…

---

## [NameError: uninitialized constant Dispatch](https://www.ruby-forum.com/t/nameerror-uninitialized-constant-dispatch/195299)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 1\
**Last updated:** [September 21, 2010, 12:18pm UTC](https://www.ruby-forum.com/t/nameerror-uninitialized-constant-dispatch/195299 "2010-09-21T12:18:52Z")

</div>

In the “Rails Way” book, following an example, I came to a point where I had to run: Dispatch.dispatch But, I get the following: irb(main):003:0\> Dispatch.dispatch NameError: uninitialized constant Dispatch from (i…

---

## [Routing ... Mapping... can only get to index](https://www.ruby-forum.com/t/routing-mapping-can-only-get-to-index/195271)

<div class="topic-metadata">

**Author:** [@cameron1inm](https://www.ruby-forum.com/u/cameron1inm)\
**Replies:** 11\
**Last updated:** [September 21, 2010, 9:39am UTC](https://www.ruby-forum.com/t/routing-mapping-can-only-get-to-index/195271 "2010-09-21T09:39:53Z")

</div>

I have used scaffold to create several controlers… each controller has 3 to 5 views/actions? I am thinking I should be able to call on each view by simply putting the url call in the browser address right? http://loc…

---

## [Ruby on Rails full time opportunity](https://www.ruby-forum.com/t/ruby-on-rails-full-time-opportunity/195290)

<div class="topic-metadata">

**Author:** [@Interested](https://www.ruby-forum.com/u/Interested)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 9:31am UTC](https://www.ruby-forum.com/t/ruby-on-rails-full-time-opportunity/195290 "2010-09-21T09:31:22Z")

</div>

My client is a world class provider of business solutions through the development of software products for the financial solutions industry. They are looking for a Mid-Senior Level Engineer that is specialized with Ru…

---

## [YM4R multiple points on Google Map](https://www.ruby-forum.com/t/ym4r-multiple-points-on-google-map/87310)

<div class="topic-metadata">

**Author:** [@ldk2005](https://www.ruby-forum.com/u/ldk2005)\
**Replies:** 9\
**Last updated:** [September 21, 2010, 9:13am UTC](https://www.ruby-forum.com/t/ym4r-multiple-points-on-google-map/87310 "2010-09-21T09:13:01Z")

</div>

Just started using YM4R to display a Google Map. I can display a map with 1 Marker. But, I’d like to initialize the map with multiple markers. Does anyone know how to do that? I’ve tried: def index @map = GMap.n…

---

## [No route matches â€œ/error/HTTP\_BAD\_GATEWAY.html.varâ€ with {:m](https://www.ruby-forum.com/t/no-route-matches-a-oe-error-http-bad-gateway-html-vara-with-m/195288)

<div class="topic-metadata">

**Author:** [@amit-singh](https://www.ruby-forum.com/u/amit-singh)\
**Replies:** 0\
**Last updated:** [September 21, 2010, 8:46am UTC](https://www.ruby-forum.com/t/no-route-matches-a-oe-error-http-bad-gateway-html-vara-with-m/195288 "2010-09-21T08:46:24Z")

</div>

hi all, am running apache(2.2.11) as frontend server to mongrel and using rails pplication trying to upload 2.2 gb of data but i am getting route matches “/error/HTTP\_BAD\_GATEWAY.html.var” with {:method=\>:get} error …

---

## [Should a Gem's dependencies be listed in the parent app's Gemfile?](https://www.ruby-forum.com/t/should-a-gems-dependencies-be-listed-in-the-parent-apps-gemfile/195266)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 1\
**Last updated:** [September 21, 2010, 5:40am UTC](https://www.ruby-forum.com/t/should-a-gems-dependencies-be-listed-in-the-parent-apps-gemfile/195266 "2010-09-21T05:40:12Z")

</div>

I am working on a Gem that has several Gem dependencies of its own. The Gem’s .gemspec looks good (I think) and when “bundle install” is called from the parent app, it lists that it is indeed “Using” the Gem’s require…

---

## [Trying to look up comment through an ID, but failing](https://www.ruby-forum.com/t/trying-to-look-up-comment-through-an-id-but-failing/195160)

<div class="topic-metadata">

**Author:** [@kelp](https://www.ruby-forum.com/u/kelp)\
**Replies:** 25\
**Last updated:** [September 21, 2010, 5:27am UTC](https://www.ruby-forum.com/t/trying-to-look-up-comment-through-an-id-but-failing/195160 "2010-09-21T05:27:19Z")

</div>

I am trying to allow users to reply through comments by allowing users to click a reply link next to the parent comment. It will send in a parameter to the ‘new’ comment view, like so: | \<%= link\_to “Reply”, new\_comme…

---

## [I want to build a Web App with Rails.... What to use for the Client Layer?](https://www.ruby-forum.com/t/i-want-to-build-a-web-app-with-rails-what-to-use-for-the-client-layer/195272)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 7\
**Last updated:** [September 21, 2010, 3:29am UTC](https://www.ruby-forum.com/t/i-want-to-build-a-web-app-with-rails-what-to-use-for-the-client-layer/195272 "2010-09-21T03:29:05Z")

</div>

Hello, I’m building a web app that I want to have a feel like GMAIL. I have Rails 3 setup for all the backend, restful type services… But I want it to be a web app and not a web page. What are some client- side type f…

---

## [Modal pop up](https://www.ruby-forum.com/t/modal-pop-up/195222)

<div class="topic-metadata">

**Author:** [@sahanar17](https://www.ruby-forum.com/u/sahanar17)\
**Replies:** 2\
**Last updated:** [September 21, 2010, 1:38am UTC](https://www.ruby-forum.com/t/modal-pop-up/195222 "2010-09-21T01:38:59Z")

</div>

I have a link which opens the modal pop fading the background. I have this line of code to create the pop up \<%= javascript\_tag “new Popup(‘new\_author\_popup’,‘new\_author\_link’,{modal:true})” %\> Popup comes up but the…

---

## [Unless params\[:photo\]\['photo'\].content\_type =~ /^image/](https://www.ruby-forum.com/t/unless-params-photo-photo-content-type-image/195269)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 15\
**Last updated:** [September 21, 2010, 1:12am UTC](https://www.ruby-forum.com/t/unless-params-photo-photo-content-type-image/195269 "2010-09-21T01:12:09Z")

</div>

In the “Rails cookbook”, I read the following statement: unless params\[:photo\]\[‘photo’\].content\_type =~ /^image/ What do those parts mean? params\[:photo\]\[‘photo’\]? =~ /^image/ Thanks.

---

## [Hello](https://www.ruby-forum.com/t/hello/194991)

<div class="topic-metadata">

**Author:** [@abdelkarim](https://www.ruby-forum.com/u/abdelkarim)\
**Replies:** 4\
**Last updated:** [September 20, 2010, 11:28pm UTC](https://www.ruby-forum.com/t/hello/194991 "2010-09-20T23:28:32Z")

</div>

Hello every body , i am new in this group and so happy to find a RoR group on the net . I work in some projects in ROR like a web application to administrate the iptables layer on Linux :slight\_smile: I wish that I’m…

---

## [Max-age/header problems with nginx](https://www.ruby-forum.com/t/max-age-header-problems-with-nginx/195192)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 3\
**Last updated:** [September 20, 2010, 9:21pm UTC](https://www.ruby-forum.com/t/max-age-header-problems-with-nginx/195192 "2010-09-20T21:21:26Z")

</div>

0 down vote favorite I notice that in my production enviornment (where I have memcached implemented) in see a cache-control - max-age header in firebug, anytime I am looking at an index page (posts for example). Ca…

---

## [How to access a model method from within a view?](https://www.ruby-forum.com/t/how-to-access-a-model-method-from-within-a-view/195088)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 39\
**Last updated:** [September 20, 2010, 8:41pm UTC](https://www.ruby-forum.com/t/how-to-access-a-model-method-from-within-a-view/195088 "2010-09-20T20:41:04Z")

</div>

I have asked this question on this forum: http://www.ruby-forum.com/topic/216998#new I think that main key here is how can I access the method in a model within a view. Is there a way to do that? Thanks.

---

## [Calling a Javascript method from a view](https://www.ruby-forum.com/t/calling-a-javascript-method-from-a-view/195200)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 21\
**Last updated:** [September 20, 2010, 6:09pm UTC](https://www.ruby-forum.com/t/calling-a-javascript-method-from-a-view/195200 "2010-09-20T18:09:26Z")

</div>

I have a “coordinate.js” javascript in public/javascripts and in app/views/dicoms, I have a “show.html.erb”. For example, if I want to call the getWidth function from the .js file in the view what should I do? I remem…

---

## [Mysql2 throws errors on invalid dates. Need suggestion for catching](https://www.ruby-forum.com/t/mysql2-throws-errors-on-invalid-dates-need-suggestion-for-catching/194954)

<div class="topic-metadata">

**Author:** [@rambor](https://www.ruby-forum.com/u/rambor)\
**Replies:** 4\
**Last updated:** [September 20, 2010, 5:49pm UTC](https://www.ruby-forum.com/t/mysql2-throws-errors-on-invalid-dates-need-suggestion-for-catching/194954 "2010-09-20T17:49:34Z")

</div>

A dataset I’m working with has bad dates in it (2010-00-09 for example). This causes Mysql2 to throw an error at the adapter level. How am I supposed to catch it so I can handle it correctly? I don’t think it fails in…

---

## [File\_field](https://www.ruby-forum.com/t/file-field/195259)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 0\
**Last updated:** [September 20, 2010, 5:34pm UTC](https://www.ruby-forum.com/t/file-field/195259 "2010-09-20T17:34:21Z")

</div>

At: Ruby on Rails - File Uploading | Tutorialspoint You can find: \<%= file\_field ‘upload’, ‘datafile’ %\> I saw the file\_field documentation from here: But, still cannot get how the parameters ‘upload’ and ‘datafile…

---

## [Update to website not printing special Characters](https://www.ruby-forum.com/t/update-to-website-not-printing-special-characters/195241)

<div class="topic-metadata">

**Author:** [@dmcclean](https://www.ruby-forum.com/u/dmcclean)\
**Replies:** 5\
**Last updated:** [September 20, 2010, 5:09pm UTC](https://www.ruby-forum.com/t/update-to-website-not-printing-special-characters/195241 "2010-09-20T17:09:43Z")

</div>

I thought you might be interested in how far I have got with solving my problem with MySql(via phpMyAdmin) to website character\_set problems. I thought I had solved the problem when my characters on my website starte…

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

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