# Rails

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

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

---

## [Form\_remote\_tag running only once](https://www.ruby-forum.com/t/form-remote-tag-running-only-once/190232)

<div class="topic-metadata">

**Author:** [@AGoofin](https://www.ruby-forum.com/u/AGoofin)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/form-remote-tag-running-only-once/190232 "2010-06-17T16:27:02Z")

</div>

I’m trying to add a simple search to an index page of my project. It takes a term, does a ‘like’ query and populates a common partial which is displayed with javascript in the div ‘search\_remote’. It runs fine, once. …

---

## [Rails authentication from non-web interface](https://www.ruby-forum.com/t/rails-authentication-from-non-web-interface/190282)

<div class="topic-metadata">

**Author:** [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Replies:** 4\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/rails-authentication-from-non-web-interface/190282 "2010-06-17T16:27:02Z")

</div>

Hi all, I want to authenticate my mobile phone apps to my online Rails apps. What would be the best approach to do this? Can anybody give suggestion both on how I should do it in the mobile app and in the rails app? …

---

## [Rails3 beta4 + Ruby 1.9](https://www.ruby-forum.com/t/rails3-beta4-ruby-1-9/189933)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 9\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/rails3-beta4-ruby-1-9/189933 "2010-06-17T16:27:01Z")

</div>

When I try rails console using Rails3 beta4 and Ruby 1.9.1-p378 I cannot save a record: rails console Loading development environment (Rails 3.0.0.beta4) ruby-1.9.1-p378 \> g = Game.new =\> #\<Game id: nil, player\_id:…

---

## [Noob question string problem](https://www.ruby-forum.com/t/noob-question-string-problem/190286)

<div class="topic-metadata">

**Author:** [@rpuspana](https://www.ruby-forum.com/u/rpuspana)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/noob-question-string-problem/190286 "2010-06-17T16:27:01Z")

</div>

Hu there guys, I hava some problem with the strings, the double-quoted ones. here is my code : a = “parsley” but a\[0\] returns 112 which is ASCII for ‘o’ not ‘p’ the same for a\[1\] a\[2\] they all return the incorrect a…

---

## [Store objects in sessions](https://www.ruby-forum.com/t/store-objects-in-sessions/190240)

<div class="topic-metadata">

**Author:** [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/store-objects-in-sessions/190240 "2010-06-17T16:27:01Z")

</div>

I have a non active revord object and i have to find an instance of that object between requests I have tried to save it in session but as the object uses Libxml i got the error no marshall dump exists I cannot make …

---

## [Best techniques for ajax-submitting multiple forms at once requested](https://www.ruby-forum.com/t/best-techniques-for-ajax-submitting-multiple-forms-at-once-requested/190258)

<div class="topic-metadata">

**Author:** [@Lille](https://www.ruby-forum.com/u/Lille)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/best-techniques-for-ajax-submitting-multiple-forms-at-once-requested/190258 "2010-06-17T16:27:01Z")

</div>

Hi, I have multiple forms on a page that can be sent individually via submit\_to\_remote. I’d also like to offer the option of sending the data from my several forms at once. Based on google searches related to this, i…

---

## [How to do a performance test](https://www.ruby-forum.com/t/how-to-do-a-performance-test/190259)

<div class="topic-metadata">

**Author:** [@Xiaohua\_D](https://www.ruby-forum.com/u/Xiaohua_D)\
**Replies:** 1\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/how-to-do-a-performance-test/190259 "2010-06-17T16:27:00Z")

</div>

hey guys, I’ve been working on performance testing. Find some nice tools to help on performance test, like newrelic and rail\_reviewer. With thess fancy results, i don’t have much idea about what to do next. So is …

---

## [How to send sms to mobiles](https://www.ruby-forum.com/t/how-to-send-sms-to-mobiles/190312)

<div class="topic-metadata">

**Author:** [@kirankinuforu](https://www.ruby-forum.com/u/kirankinuforu)\
**Replies:** 4\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/how-to-send-sms-to-mobiles/190312 "2010-06-17T16:27:00Z")

</div>

how to send sms to mobiles

---

## [Using :through to get grandchildren objects](https://www.ruby-forum.com/t/using-through-to-get-grandchildren-objects/190078)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 12\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/using-through-to-get-grandchildren-objects/190078 "2010-06-17T16:27:00Z")

</div>

I cant seem to use :through to get the grandchildren objects when the intermedetiate uses a has\_one relationship with the grandchild model. E.g. class User \< ActiveRecord::Base has\_many :sentences has\_many :correcti…

---

## [I installed rails 3 and how to install rails 2](https://www.ruby-forum.com/t/i-installed-rails-3-and-how-to-install-rails-2/190231)

<div class="topic-metadata">

**Author:** [@kirankinuforu](https://www.ruby-forum.com/u/kirankinuforu)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/i-installed-rails-3-and-how-to-install-rails-2/190231 "2010-06-17T16:26:59Z")

</div>

Hi all, i installed rails 3 and how to install rails 2 in the same machine please help me thanks

---

## [URL Hiding](https://www.ruby-forum.com/t/url-hiding/190216)

<div class="topic-metadata">

**Author:** [@JuKuen](https://www.ruby-forum.com/u/JuKuen)\
**Replies:** 6\
**Last updated:** [June 17, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/url-hiding/190216 "2010-06-17T16:26:59Z")

</div>

Greetings friends, Please, take my apologies, if the question was asked before. I\`m interested to find out, how to integrate URL hiding technology into Rails app. Any help will be helpful. Thanks in Advance

---

## [Internal server error(500) when attempting to sendmail](https://www.ruby-forum.com/t/internal-server-error-500-when-attempting-to-sendmail/190268)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 4\
**Last updated:** [June 17, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/internal-server-error-500-when-attempting-to-sendmail/190268 "2010-06-17T16:26:59Z")

</div>

Hello, I have an application that, when you create an appointment it sends an email to the client to say someone has just booked. Locally, this works fine (i’m just using sendmail) Locally - all email tests have come…

---

## [Building a Cascading Drop Down Selection List for Ruby on Rails with jQuery Ajax](https://www.ruby-forum.com/t/building-a-cascading-drop-down-selection-list-for-ruby-on-rails-with-jquery-ajax/190293)

<div class="topic-metadata">

**Author:** [@Ian\_I](https://www.ruby-forum.com/u/Ian_I)\
**Replies:** 1\
**Last updated:** [June 17, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/building-a-cascading-drop-down-selection-list-for-ruby-on-rails-with-jquery-ajax/190293 "2010-06-17T16:26:23Z")

</div>

Cascading Drop Down Selection Lists are when the value of a second drop down are filtered based on the values a first field (usually a drop down, but could be a radio box, check box or even text) Select a Country and …

---

## [Database.yml host read from yml](https://www.ruby-forum.com/t/database-yml-host-read-from-yml/190276)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 5\
**Last updated:** [June 17, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/database-yml-host-read-from-yml/190276 "2010-06-17T16:26:21Z")

</div>

I have a yml file with ip info. When I try to do " host: Site\[‘name’\] \[‘ip’\] it is getting interpreted directly and it is saying Bad URI: Site\[‘name’\]\[‘ip’\] How do I get the database yml to interpret the Site const…

---

## [Newbie trying to set up rails with MySQL](https://www.ruby-forum.com/t/newbie-trying-to-set-up-rails-with-mysql/190266)

<div class="topic-metadata">

**Author:** [@sk1](https://www.ruby-forum.com/u/sk1)\
**Replies:** 3\
**Last updated:** [June 17, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/newbie-trying-to-set-up-rails-with-mysql/190266 "2010-06-17T16:26:21Z")

</div>

Hello – Please pardon my newness – I’m just getting started with rails, and I’m having some difficulty getting it set up with MySQL. I am able to get the basic ruby server running (script\\server). When I created a ne…

---

## [Routing Error in rails 3.0](https://www.ruby-forum.com/t/routing-error-in-rails-3-0/190178)

<div class="topic-metadata">

**Author:** [@kirankinuforu](https://www.ruby-forum.com/u/kirankinuforu)\
**Replies:** 1\
**Last updated:** [June 17, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/routing-error-in-rails-3-0/190178 "2010-06-17T16:26:21Z")

</div>

Hi All, $rails g controller Pages home contact then, I go to http://localhost:3000/pages/home I got Routing Error No route matches “/pages/contact” How can I fix this problem? Thanks!

---

## [How do you update one object of a has\_many :through relationship](https://www.ruby-forum.com/t/how-do-you-update-one-object-of-a-has-many-through-relationship/190236)

<div class="topic-metadata">

**Author:** [@ali](https://www.ruby-forum.com/u/ali)\
**Replies:** 3\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/how-do-you-update-one-object-of-a-has-many-through-relationship/190236 "2010-06-17T16:22:49Z")

</div>

Hi guys. How do you update nested attributes for one object of a has\_many :through relationship? So I have an entity model and this model can have many fact\_values. The difference between fact and fact\_value is that …

---

## [Edge Rails Nested has\_many :through Association](https://www.ruby-forum.com/t/edge-rails-nested-has-many-through-association/190314)

<div class="topic-metadata">

**Author:** [@Randuin](https://www.ruby-forum.com/u/Randuin)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/edge-rails-nested-has-many-through-association/190314 "2010-06-17T16:22:48Z")

</div>

So this functionality isn’t supported natively in Rails 3 (or any versions before that for that matter) But I had found a work around via this blog post: http://geoff.evason.name/2010/04/23/nested-has\_many-through-in-…

---

## [RoutingError](https://www.ruby-forum.com/t/routingerror/190112)

<div class="topic-metadata">

**Author:** [@aashishkiran](https://www.ruby-forum.com/u/aashishkiran)\
**Replies:** 3\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/routingerror/190112 "2010-06-17T16:22:48Z")

</div>

hi, can anyone help me. i want to create an url to invoke create action of a controller. routes.rb has the routes. But i am getting error at line 23. i have @user variable. user\_contact\_path(@user.id) I want generat…

---

## [Self Cross Join?](https://www.ruby-forum.com/t/self-cross-join/190300)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 1\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/self-cross-join/190300 "2010-06-17T16:22:48Z")

</div>

I have a table with an integer column. I want to retrieve pairs of records where this integer sums to a total. For example: 4|red 6|blue 2|yellow If I want pairs that add up to 8 I should get \[\[red,red\],\[blue,yello…

---

## [Swedish sort order not working](https://www.ruby-forum.com/t/swedish-sort-order-not-working/190070)

<div class="topic-metadata">

**Author:** [@jeb](https://www.ruby-forum.com/u/jeb)\
**Replies:** 4\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/swedish-sort-order-not-working/190070 "2010-06-17T16:22:48Z")

</div>

Hi all, I have a MySQL DB in my production environment with collation set to latin1\_swedish\_ci When I do a simple find and order by ‘name’ the names are not sorted in Swedish order. They are “Anna, Östen, Kalle, Rut”…

---

## [Errno::ENOENT in User sessionsController#new No such file or directory - getcwd](https://www.ruby-forum.com/t/errno-enoent-in-user-sessionscontroller-new-no-such-file-or-directory-getcwd/190250)

<div class="topic-metadata">

**Author:** [@bpfarmer](https://www.ruby-forum.com/u/bpfarmer)\
**Replies:** 1\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/errno-enoent-in-user-sessionscontroller-new-no-such-file-or-directory-getcwd/190250 "2010-06-17T16:22:46Z")

</div>

I cloned an existing git repo and get that error when I try to use script/server and view the application on a mongrel server. I can still access the models in script/console. Thanks, -Brendan

---

## [Cannot run rake on rails 3 beta 4](https://www.ruby-forum.com/t/cannot-run-rake-on-rails-3-beta-4/190305)

<div class="topic-metadata">

**Author:** [@nbnbnb](https://www.ruby-forum.com/u/nbnbnb)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/cannot-run-rake-on-rails-3-beta-4/190305 "2010-06-17T16:22:45Z")

</div>

I am running into a brick wall when trying out Rails 3 beta 4. I am getting this: rails new blog cd blog rake --trace rake aborted! wrong argument type Symbol (expected Proc) /Users/me/.rvm/gems/ruby-1.8.7-p174…

---

## [The Ruby Hoedown 2010 -- The FREE Regional Ruby Conference -- Sept 3-4, 2010, Nashville, TN](https://www.ruby-forum.com/t/the-ruby-hoedown-2010-the-free-regional-ruby-conference-sept-3-4-2010-nashville-tn/197048)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/the-ruby-hoedown-2010-the-free-regional-ruby-conference-sept-3-4-2010-nashville-tn/197048 "2010-06-17T16:22:45Z")

</div>

Hello all, I just opened registration and the CFP for the Ruby Hoedown 2010, presented by Intridea! In previous years we’ve hosted great speakers like Bruce Tate, Chad F., Marcel Molina, Jr., David Black, Chris Wans…

---

## [Validation on nested models](https://www.ruby-forum.com/t/validation-on-nested-models/189476)

<div class="topic-metadata">

**Author:** [@Mlle](https://www.ruby-forum.com/u/Mlle)\
**Replies:** 1\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/validation-on-nested-models/189476 "2010-06-17T16:22:41Z")

</div>

I use javascript to insert a nested model form into a page. If I use validation on the data entered and it reloads the page with an error displayed, the nested model form is gone because it’s not part of the original…

---

## [Learning RoR](https://www.ruby-forum.com/t/learning-ror/190222)

<div class="topic-metadata">

**Author:** [@ryank](https://www.ruby-forum.com/u/ryank)\
**Replies:** 4\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/learning-ror/190222 "2010-06-17T16:22:41Z")

</div>

Hey. I’m just getting into RoR and was hoping someone could direct me to the best learning resources. P.S.: I took a couple computer sciences courses in university (learned some Java and C++). Cheers, Ryan

---

## [How do I upgrade rack in my current rails app?](https://www.ruby-forum.com/t/how-do-i-upgrade-rack-in-my-current-rails-app/190086)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 3\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/how-do-i-upgrade-rack-in-my-current-rails-app/190086 "2010-06-17T16:22:40Z")

</div>

Hi, I have a rails 2.3.8 app which has rack 1.1.0. I get parse\_multipart error. There’s a new release of rack 1.2.0 which might fix the multipart error. The question is how I upgrade the rack? I froze the rails. I …

---

## [Rails and HTML 5 offline application cache](https://www.ruby-forum.com/t/rails-and-html-5-offline-application-cache/190285)

<div class="topic-metadata">

**Author:** [@simon1](https://www.ruby-forum.com/u/simon1)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/rails-and-html-5-offline-application-cache/190285 "2010-06-17T16:22:40Z")

</div>

I’m working on building an app that will also function offline using new features available in HTML 5, including the offline application cache. I am having some issues with defining the resources in the cache manifes…

---

## [Windows 7 and imagemagick](https://www.ruby-forum.com/t/windows-7-and-imagemagick/190280)

<div class="topic-metadata">

**Author:** [@ashu](https://www.ruby-forum.com/u/ashu)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/windows-7-and-imagemagick/190280 "2010-06-17T16:22:39Z")

</div>

rails 2-.3.8 i am using install rmagick having an error fo Core\_rl\_rmaigick.dll mising re-install may solve the problem i think its issue of where to install imagemagick in which folder can you please suggest .

---

## [Form\_for can someone please explain this?](https://www.ruby-forum.com/t/form-for-can-someone-please-explain-this/190188)

<div class="topic-metadata">

**Author:** [@supernoob](https://www.ruby-forum.com/u/supernoob)\
**Replies:** 1\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/form-for-can-someone-please-explain-this/190188 "2010-06-17T16:22:39Z")

</div>

I have been trying to understand how form\_for works and the api or anything on the web does not offer a simple explanation that i could understand. seems all their explanations are too complicated for me.

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

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