# Rails

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

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

---

## [Passing variables from View to Controller](https://www.ruby-forum.com/t/passing-variables-from-view-to-controller/111597)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [August 9, 2007, 9:05am UTC](https://www.ruby-forum.com/t/passing-variables-from-view-to-controller/111597 "2007-08-09T09:05:17Z")

</div>

Hi! I was wondering if somebody would be able to help me out here for a second. I would like to pass a variable from the view into the controller. An example would look like this… \<%= text\_area ‘business’, ‘accepti…

---

## [China antique](https://www.ruby-forum.com/t/china-antique/111623)

<div class="topic-metadata">

**Author:** [@chinartdirect07](https://www.ruby-forum.com/u/chinartdirect07)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 8:55am UTC](https://www.ruby-forum.com/t/china-antique/111623 "2007-08-09T08:55:59Z")

</div>

I collect the Chinese antique, is pregnant the happy Chinese antiquefriend to be allowed to exchange together with me, is extremely happy http://stores.ebay.com/Panjiayuan-Online\_Antique- Copperware\_W0QQcolZ4QQdirZ1Q…

---

## [Layered SOAP webservices](https://www.ruby-forum.com/t/layered-soap-webservices/111621)

<div class="topic-metadata">

**Author:** [@gnuman](https://www.ruby-forum.com/u/gnuman)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 8:19am UTC](https://www.ruby-forum.com/t/layered-soap-webservices/111621 "2007-08-09T08:19:09Z")

</div>

Hi all, My SOAP web service works with direct and delegated dispatching. But as soon as I switch to layered, I get an error message no such web service ‘api’ Now, the actionwebservice/lib/action\_web\_service/protocol/ …

---

## [How to replace special charracters](https://www.ruby-forum.com/t/how-to-replace-special-charracters/93066)

<div class="topic-metadata">

**Author:** [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Replies:** 3\
**Last updated:** [August 9, 2007, 7:48am UTC](https://www.ruby-forum.com/t/how-to-replace-special-charracters/93066 "2007-08-09T07:48:54Z")

</div>

From the form input I have some data which is inserted into database , and this data may have some special characters which can cause problems in other parts of the system. Now before inserting into db, how can I repl…

---

## [Problem using X-Accel-Redirect in nginx under ssl](https://www.ruby-forum.com/t/problem-using-x-accel-redirect-in-nginx-under-ssl/111559)

<div class="topic-metadata">

**Author:** [@nadav](https://www.ruby-forum.com/u/nadav)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 7:34am UTC](https://www.ruby-forum.com/t/problem-using-x-accel-redirect-in-nginx-under-ssl/111559 "2007-08-09T07:34:06Z")

</div>

Hi everybody. I have a problem using X-Accel-Redirect under ssl in nginx for serving static image-files that I want to protect from unauthorized downloads. The problem is that the images downloading is extremely slow,…

---

## [Best way get all addresses near a postcode?](https://www.ruby-forum.com/t/best-way-get-all-addresses-near-a-postcode/111472)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 13\
**Last updated:** [August 9, 2007, 7:21am UTC](https://www.ruby-forum.com/t/best-way-get-all-addresses-near-a-postcode/111472 "2007-08-09T07:21:05Z")

</div>

What would be the best technique to use to get all the addresses in my DB that are , say, within 10 miles of a given postcode? Each of my addresses has a postcode. Does anyone have any experience of doing this? any in…

---

## [Comparison of Web Frameworks Screencast](https://www.ruby-forum.com/t/comparison-of-web-frameworks-screencast/111616)

<div class="topic-metadata">

**Author:** [@conz](https://www.ruby-forum.com/u/conz)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 7:16am UTC](https://www.ruby-forum.com/t/comparison-of-web-frameworks-screencast/111616 "2007-08-09T07:16:04Z")

</div>

Hi ALL, I came across a very interested in screencast that does a comparison of web application framework that include Rails: http://oodt.jpl.nasa.gov/better-web-app.mov Enjoy, -Conrad

---

## [Windows XP optimization tricks](https://www.ruby-forum.com/t/windows-xp-optimization-tricks/111490)

<div class="topic-metadata">

**Author:** [@John\_Travolta](https://www.ruby-forum.com/u/John_Travolta)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 6:54am UTC](https://www.ruby-forum.com/t/windows-xp-optimization-tricks/111490 "2007-08-09T06:54:03Z")

</div>

Collection of very useful tips and tricks

---

## [Microsoft Access DB support. . .?](https://www.ruby-forum.com/t/microsoft-access-db-support/111599)

<div class="topic-metadata">

**Author:** [@gberz3](https://www.ruby-forum.com/u/gberz3)\
**Replies:** 2\
**Last updated:** [August 9, 2007, 6:48am UTC](https://www.ruby-forum.com/t/microsoft-access-db-support/111599 "2007-08-09T06:48:02Z")

</div>

Hi All, Is there currently any support in Rails for MS Access? Is anyone working on anything at the moment? Regards

---

## [SQL Server nvarchar support?](https://www.ruby-forum.com/t/sql-server-nvarchar-support/82154)

<div class="topic-metadata">

**Author:** [@Diego](https://www.ruby-forum.com/u/Diego)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 6:39am UTC](https://www.ruby-forum.com/t/sql-server-nvarchar-support/82154 "2007-08-09T06:39:24Z")

</div>

Hi all, I was wondering, when creating migration classes against a SQL Server database, is it possible to have it use nvarchar types for char base columns (instead of just varchar)? Thanks. Cheers, Diego

---

## [Different views for the same function](https://www.ruby-forum.com/t/different-views-for-the-same-function/111556)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 4\
**Last updated:** [August 9, 2007, 4:45am UTC](https://www.ruby-forum.com/t/different-views-for-the-same-function/111556 "2007-08-09T04:45:54Z")

</div>

This question is more for future reference after I’ve made my website, but one thing I’ve noticed was there was I had to make a lot of functions on the controller, and different views for each one, each with the same …

---

## [Method\_missing error......need some eyes for this one](https://www.ruby-forum.com/t/method-missing-error-need-some-eyes-for-this-one/111611)

<div class="topic-metadata">

**Author:** [@wheresdave](https://www.ruby-forum.com/u/wheresdave)\
**Replies:** 3\
**Last updated:** [August 9, 2007, 3:23am UTC](https://www.ruby-forum.com/t/method-missing-error-need-some-eyes-for-this-one/111611 "2007-08-09T03:23:45Z")

</div>

Working through the tutorials in the RailsSpace book, and cannot figure out what I am doing wrong here. Full code for the edit function which is tossing the error as well as appropriate code from the model the actual …

---

## [Data modeling a timesheet](https://www.ruby-forum.com/t/data-modeling-a-timesheet/111604)

<div class="topic-metadata">

**Author:** [@rubylover](https://www.ruby-forum.com/u/rubylover)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 1:53am UTC](https://www.ruby-forum.com/t/data-modeling-a-timesheet/111604 "2007-08-09T01:53:40Z")

</div>

I have an existing application that lets a company track the tutor/ student relationships through a Job model. I now want to add in functionality that lets the tutors login and enter the time they spend each week tut…

---

## [Deploying the data](https://www.ruby-forum.com/t/deploying-the-data/111602)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [August 9, 2007, 1:42am UTC](https://www.ruby-forum.com/t/deploying-the-data/111602 "2007-08-09T01:42:40Z")

</div>

I think I have a fundamental misunderstanding of the deployment process that I’m hoping someone can clear up for me. I’ve been developing a rails app on my local machine in the development environment. All data is wr…

---

## [Writing actionview wrappers?](https://www.ruby-forum.com/t/writing-actionview-wrappers/111580)

<div class="topic-metadata">

**Author:** [@andreim](https://www.ruby-forum.com/u/andreim)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 1:11am UTC](https://www.ruby-forum.com/t/writing-actionview-wrappers/111580 "2007-08-09T01:11:38Z")

</div>

Hi, I want to write a method that acts like actionview’s form\_for method. Meaning: \<% fancy\_div do |div| %\> ruby is awesome should produce something like: ruby is awesome I tried def test return “ #{…

---

## [Ruby Web App not loading in IE or Safari ... only loads in F](https://www.ruby-forum.com/t/ruby-web-app-not-loading-in-ie-or-safari-only-loads-in-f/111589)

<div class="topic-metadata">

**Author:** [@LAB](https://www.ruby-forum.com/u/LAB)\
**Replies:** 2\
**Last updated:** [August 8, 2007, 11:57pm UTC](https://www.ruby-forum.com/t/ruby-web-app-not-loading-in-ie-or-safari-only-loads-in-f/111589 "2007-08-08T23:57:30Z")

</div>

I have been developing my ruby on rails web app and testing it out using Firefox. Today I tried a different browser, Safari, but when I went to my index page nothing rendered. I viewed the source, and all the html i…

---

## [Six Figure Income](https://www.ruby-forum.com/t/six-figure-income/111594)

<div class="topic-metadata">

**Author:** [@SFI](https://www.ruby-forum.com/u/SFI)\
**Replies:** 0\
**Last updated:** [August 8, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/six-figure-income/111594 "2007-08-08T22:20:19Z")

</div>

Start Your Own Profitable Internet Business From Home. Since 1998, SFI has been leading the Internet income revolution with its cutting edge affiliate program that empowers even average people to earn $20, $50, even $…

---

## [What ruby/rails componet do I need?](https://www.ruby-forum.com/t/what-ruby-rails-componet-do-i-need/111548)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 6\
**Last updated:** [August 8, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/what-ruby-rails-componet-do-i-need/111548 "2007-08-08T22:15:18Z")

</div>

I stole a script from the archives which shows how to launch an https version of webrick. However I am getting an error that indicates that my ruby/rails isntallation is missing a component to support ssl as called f…

---

## [Tuning - Styling](https://www.ruby-forum.com/t/tuning-styling/111591)

<div class="topic-metadata">

**Author:** [@knjaz\_milos](https://www.ruby-forum.com/u/knjaz_milos)\
**Replies:** 0\
**Last updated:** [August 8, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/tuning-styling/111591 "2007-08-08T21:52:14Z")

</div>

Cool cars, tuning & styling, here you can find many tuned cars with tons of pictures!!!

---

## [I want most, but not all routes created by map.resources](https://www.ruby-forum.com/t/i-want-most-but-not-all-routes-created-by-map-resources/111562)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 4\
**Last updated:** [August 8, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/i-want-most-but-not-all-routes-created-by-map-resources/111562 "2007-08-08T21:18:49Z")

</div>

How do I do that? I’m my case, I don’t want GET /resource/:id;edit and DELETE / resource/:id ;edit is not needed for my app, and DELETE is not allowed. Do I have create all the routes by hand? Or can I pass some kin…

---

## [Appending object into a collection of objects](https://www.ruby-forum.com/t/appending-object-into-a-collection-of-objects/111587)

<div class="topic-metadata">

**Author:** [@rornb](https://www.ruby-forum.com/u/rornb)\
**Replies:** 0\
**Last updated:** [August 8, 2007, 9:08pm UTC](https://www.ruby-forum.com/t/appending-object-into-a-collection-of-objects/111587 "2007-08-08T21:08:57Z")

</div>

Hi Can anyone please tell me how to append an object into a collection of objects. I have seen it somw where is possible to use the each method by declearing a variable. This will be from 2 tables with many to many …

---

## [Which module needs most work?](https://www.ruby-forum.com/t/which-module-needs-most-work/111492)

<div class="topic-metadata">

**Author:** [@zeejayll9](https://www.ruby-forum.com/u/zeejayll9)\
**Replies:** 4\
**Last updated:** [August 8, 2007, 7:53pm UTC](https://www.ruby-forum.com/t/which-module-needs-most-work/111492 "2007-08-08T19:53:41Z")

</div>

Hi, I have some time to spend on anything at all and figured that I’d try to help out the Ruby/Rails community. If all goes well, this will both improve the Rails environment and add to my list of accomplishments. S…

---

## [Noob question - assigning hash to flash error](https://www.ruby-forum.com/t/noob-question-assigning-hash-to-flash-error/111577)

<div class="topic-metadata">

**Author:** [@donna](https://www.ruby-forum.com/u/donna)\
**Replies:** 1\
**Last updated:** [August 8, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/noob-question-assigning-hash-to-flash-error/111577 "2007-08-08T19:41:54Z")

</div>

In my controller, I have this simple code: hashThing = Hash.new{ |hash, key| hash\[key\] = \[\] }; # this declares a hash with array values hashThing\[‘something’\] \<\< “value1” \<\< “value”; flash\[:quick\_store\_hash\] = hashTh…

---

## [Two fields associated to the same table](https://www.ruby-forum.com/t/two-fields-associated-to-the-same-table/111574)

<div class="topic-metadata">

**Author:** [@coelho](https://www.ruby-forum.com/u/coelho)\
**Replies:** 1\
**Last updated:** [August 8, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/two-fields-associated-to-the-same-table/111574 "2007-08-08T19:24:35Z")

</div>

Hello, I have a model that contains two fields associated with the same table, I hooked one up using the standard has\_many association but I have no clue on how to do the second one. here are my models class Task \< …

---

## [Autocomplete field in ajax response html - css does not get](https://www.ruby-forum.com/t/autocomplete-field-in-ajax-response-html-css-does-not-get/111569)

<div class="topic-metadata">

**Author:** [@bakki](https://www.ruby-forum.com/u/bakki)\
**Replies:** 1\
**Last updated:** [August 8, 2007, 7:19pm UTC](https://www.ruby-forum.com/t/autocomplete-field-in-ajax-response-html-css-does-not-get/111569 "2007-08-08T19:19:25Z")

</div>

Hi all, I have a page in which a div is updated with some html via Ajax. The returned html contains an autocomplete field. The autocomplete field works but the drop down results div does not get css applied to it so …

---

## [InstantRails and NetBeans](https://www.ruby-forum.com/t/instantrails-and-netbeans/110900)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 6\
**Last updated:** [August 8, 2007, 7:01pm UTC](https://www.ruby-forum.com/t/instantrails-and-netbeans/110900 "2007-08-08T19:01:19Z")

</div>

Anybody got any experience using NetBeans with Instant Rails? I’m getting an error on migrations saying it can’t find RubyGem soap4r. It’s installed, of course. Any experience / thoughts? TIA, Bill

---

## [Undefined method \`mittens.driver' for {}:Hash](https://www.ruby-forum.com/t/undefined-method-mittens-driver-for-hash/111386)

<div class="topic-metadata">

**Author:** [@ramiab1](https://www.ruby-forum.com/u/ramiab1)\
**Replies:** 1\
**Last updated:** [August 8, 2007, 6:51pm UTC](https://www.ruby-forum.com/t/undefined-method-mittens-driver-for-hash/111386 "2007-08-08T18:51:49Z")

</div>

I am using radrails and this error has been killing me… this is my controller: def confirmCMSdb @cmsdbProperties = session\[:cmsdbProperties\] for property in params\[:cmsdbProperties\].keys #puts property #puts params…

---

## [Rails, Mongrel & Pound / SSL and Browser Caching](https://www.ruby-forum.com/t/rails-mongrel-pound-ssl-and-browser-caching/111572)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 0\
**Last updated:** [August 8, 2007, 6:37pm UTC](https://www.ruby-forum.com/t/rails-mongrel-pound-ssl-and-browser-caching/111572 "2007-08-08T18:37:10Z")

</div>

This may not exactly be a Rails question, but I think this is the most likely place to find someone with an answer. We’ve got a Rails site that uses several mongrels and pound as the balancer between them. The site u…

---

## [Return an unauthorised header unless the request format is x](https://www.ruby-forum.com/t/return-an-unauthorised-header-unless-the-request-format-is-x/111570)

<div class="topic-metadata">

**Author:** [@tobycatlin](https://www.ruby-forum.com/u/tobycatlin)\
**Replies:** 1\
**Last updated:** [August 8, 2007, 6:36pm UTC](https://www.ruby-forum.com/t/return-an-unauthorised-header-unless-the-request-format-is-x/111570 "2007-08-08T18:36:10Z")

</div>

Hi, I’d like to return a header that indicates an action is unauthorised unless the request was an xml request. I’m using REST in my controllers and I only want create, delete and update capability for those requests…

---

## [Rails Session Problem](https://www.ruby-forum.com/t/rails-session-problem/111571)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 8, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/rails-session-problem/111571 "2007-08-08T18:35:09Z")

</div>

Rails 1.2.3 Ruby 1.8.5 Mongrel 1.0.1 Mongrel cluster 1.0.2 (using 2 instances) Apache 2.2.4 RAILS\_ENV=production session storage = PStore Solaris 10 (11/06) Background: I have devloped an automated test system f…

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

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