# Rails

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

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

---

## [Ajax calls in application.js (authenticity\_token problem?)](https://www.ruby-forum.com/t/ajax-calls-in-application-js-authenticity-token-problem/178267)

<div class="topic-metadata">

**Author:** [@jazcyk](https://www.ruby-forum.com/u/jazcyk)\
**Replies:** 0\
**Last updated:** [November 1, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/ajax-calls-in-application-js-authenticity-token-problem/178267 "2009-11-01T17:15:44Z")

</div>

Hi, I have a long list (~50) of items which should each be clickable and will send an Ajax request to the server. Now, each item will be calling the same action, just with a different id. Ideally this looks like a cl…

---

## [How to changing a AASM state using a Edit Action+Form View?](https://www.ruby-forum.com/t/how-to-changing-a-aasm-state-using-a-edit-action-form-view/178245)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 1\
**Last updated:** [November 1, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/how-to-changing-a-aasm-state-using-a-edit-action-form-view/178245 "2009-11-01T16:43:35Z")

</div>

Hello there, I’m using AASM to manage states in my User model. I want to change the status through the edit action. To do this I’m using the method User.aasm\_states\_for\_select in my form to populate the select input …

---

## [Change authlogic config at runtime](https://www.ruby-forum.com/t/change-authlogic-config-at-runtime/178264)

<div class="topic-metadata">

**Author:** [@sweb](https://www.ruby-forum.com/u/sweb)\
**Replies:** 0\
**Last updated:** [November 1, 2009, 4:42pm UTC](https://www.ruby-forum.com/t/change-authlogic-config-at-runtime/178264 "2009-11-01T16:42:05Z")

</div>

Hi, I’m trying to change my authlogic configuration at runtime like follows: def save\_without\_session\_maintenance\_and\_allow\_blank\_password return false if facebook\_uid.blank? object = Mutex.new tmp = nil object.synch…

---

## [Writing all rails application exceptions/errors to a model](https://www.ruby-forum.com/t/writing-all-rails-application-exceptions-errors-to-a-model/178240)

<div class="topic-metadata">

**Author:** [@cduv](https://www.ruby-forum.com/u/cduv)\
**Replies:** 2\
**Last updated:** [November 1, 2009, 4:10pm UTC](https://www.ruby-forum.com/t/writing-all-rails-application-exceptions-errors-to-a-model/178240 "2009-11-01T16:10:48Z")

</div>

Hi, I will like to trap all application exceptions to a model. Can someone give me some approach to do this task? The idea is to know in a model log what exceptions and errors my app is having. Thanks in advance Ge…

---

## [Getting blank 404.html and 500.html pages](https://www.ruby-forum.com/t/getting-blank-404-html-and-500-html-pages/178262)

<div class="topic-metadata">

**Author:** [@newmonarch](https://www.ruby-forum.com/u/newmonarch)\
**Replies:** 2\
**Last updated:** [November 1, 2009, 3:29pm UTC](https://www.ruby-forum.com/t/getting-blank-404-html-and-500-html-pages/178262 "2009-11-01T15:29:14Z")

</div>

Hey guys. I’ve a pretty experienced Rails developer, but I’ve never seen this one before. I’m not getting my custom error pages to serve up under Passenger. They worked just fine in an earlier version of my app, bu…

---

## [Has\_many :through another has\_many :through](https://www.ruby-forum.com/t/has-many-through-another-has-many-through/178251)

<div class="topic-metadata">

**Author:** [@pond](https://www.ruby-forum.com/u/pond)\
**Replies:** 1\
**Last updated:** [November 1, 2009, 2:29pm UTC](https://www.ruby-forum.com/t/has-many-through-another-has-many-through/178251 "2009-11-01T14:29:15Z")

</div>

I need to access all instances of a particular object that is a has\_many through two other classes. It’s easier to show what I mean with some example classes… Here’s what I have: class ClassOne has\_many :class\_twos …

---

## [/usr/local/bin](https://www.ruby-forum.com/t/usr-local-bin/178257)

<div class="topic-metadata">

**Author:** [@eduardopa](https://www.ruby-forum.com/u/eduardopa)\
**Replies:** 2\
**Last updated:** [November 1, 2009, 9:19am UTC](https://www.ruby-forum.com/t/usr-local-bin/178257 "2009-11-01T09:19:21Z")

</div>

Hi, I am following the hivelogic article to compile ruby on snow leopard. It says to set the path of the terminal to: export PATH=“/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin: $PATH” Until this part is fine…

---

## [Having link\_to\_function with insert\_html locks up browser when doing replace\_html](https://www.ruby-forum.com/t/having-link-to-function-with-insert-html-locks-up-browser-when-doing-replace-html/178248)

<div class="topic-metadata">

**Author:** [@mrmanishs](https://www.ruby-forum.com/u/mrmanishs)\
**Replies:** 0\
**Last updated:** [October 31, 2009, 9:20pm UTC](https://www.ruby-forum.com/t/having-link-to-function-with-insert-html-locks-up-browser-when-doing-replace-html/178248 "2009-10-31T21:20:25Z")

</div>

Hello, I have a link\_to\_function in a div, and when I try to call replace\_html on the div, the link\_to\_function locks up my browser when it tries to replace my div. Any idea why and how to solve it? It’s consistently…

---

## [Reply to this comment](https://www.ruby-forum.com/t/reply-to-this-comment/178235)

<div class="topic-metadata">

**Author:** [@Luthien](https://www.ruby-forum.com/u/Luthien)\
**Replies:** 1\
**Last updated:** [October 31, 2009, 5:30pm UTC](https://www.ruby-forum.com/t/reply-to-this-comment/178235 "2009-10-31T17:30:22Z")

</div>

I have a kind of blog. How to make the possibility to reply to comment? Namely, how to make a tree of comments? Thanks for any help :slight\_smile:

---

## [Firing Rails Controller Actions From Command Line Console](https://www.ruby-forum.com/t/firing-rails-controller-actions-from-command-line-console/178223)

<div class="topic-metadata">

**Author:** [@Katherine](https://www.ruby-forum.com/u/Katherine)\
**Replies:** 4\
**Last updated:** [October 31, 2009, 3:23pm UTC](https://www.ruby-forum.com/t/firing-rails-controller-actions-from-command-line-console/178223 "2009-10-31T15:23:15Z")

</div>

Hi… I trying to make this example work: http://www.misuse.org/science/2007/07/24/firing-rails-controller-actions-from-command-line-console/ I need it for sending out emails and doing a lot of other tasks from a speci…

---

## [A connection attempt failed because the connected party did not properly respond after a period of](https://www.ruby-forum.com/t/a-connection-attempt-failed-because-the-connected-party-did-not-properly-respond-after-a-period-of/178229)

<div class="topic-metadata">

**Author:** [@about2flip](https://www.ruby-forum.com/u/about2flip)\
**Replies:** 0\
**Last updated:** [October 31, 2009, 9:56am UTC](https://www.ruby-forum.com/t/a-connection-attempt-failed-because-the-connected-party-did-not-properly-respond-after-a-period-of/178229 "2009-10-31T09:56:40Z")

</div>

Hi: Need help. Using Actionmailer in development mode, and I keep getting this error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection …

---

## [Ramaze app for Dynamic URL Music Generation](https://www.ruby-forum.com/t/ramaze-app-for-dynamic-url-music-generation/178221)

<div class="topic-metadata">

**Author:** [@GabrielG1976](https://www.ruby-forum.com/u/GabrielG1976)\
**Replies:** 0\
**Last updated:** [October 31, 2009, 6:04am UTC](https://www.ruby-forum.com/t/ramaze-app-for-dynamic-url-music-generation/178221 "2009-10-31T06:04:51Z")

</div>

Started a new github on Ramaze app for Dynamic URL Music Generation and have laid the framework and foundation down feel free to fork or contribute to this project… Gabriel G

---

## [Need help named route and link\_to](https://www.ruby-forum.com/t/need-help-named-route-and-link-to/178212)

<div class="topic-metadata">

**Author:** [@cswebgrl](https://www.ruby-forum.com/u/cswebgrl)\
**Replies:** 4\
**Last updated:** [October 31, 2009, 12:34am UTC](https://www.ruby-forum.com/t/need-help-named-route-and-link-to/178212 "2009-10-31T00:34:49Z")

</div>

Hi, In my application I’ve set up a custom route that works as long as I stay within the same model. This makes me think that I must have something wrong with the route. map.agent ‘:agent’, :controller =\> ‘agents’, …

---

## [Rails + sqlite3 - very slow data saving](https://www.ruby-forum.com/t/rails-sqlite3-very-slow-data-saving/178167)

<div class="topic-metadata">

**Author:** [@ggolebio](https://www.ruby-forum.com/u/ggolebio)\
**Replies:** 3\
**Last updated:** [October 30, 2009, 11:57pm UTC](https://www.ruby-forum.com/t/rails-sqlite3-very-slow-data-saving/178167 "2009-10-30T23:57:53Z")

</div>

Hi, I start my adventure with rails and I meet seriously problem. When I try save data to DB - save operation take ~0.5 second per row. I generate 5000 records with 6 numbers and later every position from my array is…

---

## [Starting server is failing on Mac OSX 10.6 Snow Leopard](https://www.ruby-forum.com/t/starting-server-is-failing-on-mac-osx-10-6-snow-leopard/174984)

<div class="topic-metadata">

**Author:** [@ryokamiya](https://www.ruby-forum.com/u/ryokamiya)\
**Replies:** 2\
**Last updated:** [October 30, 2009, 11:09pm UTC](https://www.ruby-forum.com/t/starting-server-is-failing-on-mac-osx-10-6-snow-leopard/174984 "2009-10-30T23:09:51Z")

</div>

fter upgradeing from Mac OSX 10.5 to 10.6 (Snow Leopard), it’s failing to start server with the following error message (replacing my username to \[UserName\]). I have reinstalled Aptana but still returning the same err…

---

## [Problems installing ruby gems on linux](https://www.ruby-forum.com/t/problems-installing-ruby-gems-on-linux/176690)

<div class="topic-metadata">

**Author:** [@mpcengineer](https://www.ruby-forum.com/u/mpcengineer)\
**Replies:** 11\
**Last updated:** [October 30, 2009, 11:09pm UTC](https://www.ruby-forum.com/t/problems-installing-ruby-gems-on-linux/176690 "2009-10-30T23:09:51Z")

</div>

Hi, I am really finding this frustrating. i am trying to install ruby gems to allow me to try out rails. I have tried it on two linux systems. I can install ruby no problem. but when I run ruby setup.rb I get the err…

---

## [Eager loading with dynamic conditions?](https://www.ruby-forum.com/t/eager-loading-with-dynamic-conditions/178152)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 1\
**Last updated:** [October 30, 2009, 10:41pm UTC](https://www.ruby-forum.com/t/eager-loading-with-dynamic-conditions/178152 "2009-10-30T22:41:45Z")

</div>

If I have an association A habtm B and I say A.find…, :include =\> B but I only want some of the B’s to be loaded, the rails docs (http:// ar.rubyonrails.org/classes/ActiveRecord/Associations/ ClassMethods.html) say: …

---

## [Page.call](https://www.ruby-forum.com/t/page-call/178206)

<div class="topic-metadata">

**Author:** [@wtn12049](https://www.ruby-forum.com/u/wtn12049)\
**Replies:** 3\
**Last updated:** [October 30, 2009, 9:06pm UTC](https://www.ruby-forum.com/t/page-call/178206 "2009-10-30T21:06:42Z")

</div>

Hi Everyone, I’m trying to get page.call to work and if i call something like page.call ‘alert’, ‘this is a test’ everything works ok, however when i try calling a function that i defined in application.js function…

---

## [Ajax in RoR - observe\_field](https://www.ruby-forum.com/t/ajax-in-ror-observe-field/177835)

<div class="topic-metadata">

**Author:** [@nicpon](https://www.ruby-forum.com/u/nicpon)\
**Replies:** 11\
**Last updated:** [October 30, 2009, 8:56pm UTC](https://www.ruby-forum.com/t/ajax-in-ror-observe-field/177835 "2009-10-30T20:56:07Z")

</div>

Hey, I’m trying to achieve something relatively simple and missing something that is probably very simple, which I’m loosing my head over. My situation is the following: I have two tables: -education\_plans -students …

---

## [Script/generate broken on vendored rails2.3.4 project](https://www.ruby-forum.com/t/script-generate-broken-on-vendored-rails2-3-4-project/178199)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 2\
**Last updated:** [October 30, 2009, 8:17pm UTC](https://www.ruby-forum.com/t/script-generate-broken-on-vendored-rails2-3-4-project/178199 "2009-10-30T20:17:09Z")

</div>

I was trying to add cucumber to a project which is using rails2.3.4 (which is vendored). The script/generate cucumber step is failing. I first thought that this was a problem specific to cucumber but it appears that…

---

## [Paginate issues](https://www.ruby-forum.com/t/paginate-issues/178049)

<div class="topic-metadata">

**Author:** [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Replies:** 12\
**Last updated:** [October 30, 2009, 7:28pm UTC](https://www.ruby-forum.com/t/paginate-issues/178049 "2009-10-30T19:28:33Z")

</div>

Hi there, I have managed to overcome my search issue, and now I am able to return users successfully. I am now trying to paginate the results, so only 10 are displayed on each page. The paginate example in the Rails…

---

## [MySQL, unsigned bigint and fixtures](https://www.ruby-forum.com/t/mysql-unsigned-bigint-and-fixtures/178123)

<div class="topic-metadata">

**Author:** [@Foon](https://www.ruby-forum.com/u/Foon)\
**Replies:** 4\
**Last updated:** [October 30, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/mysql-unsigned-bigint-and-fixtures/178123 "2009-10-30T18:22:19Z")

</div>

Hi, I am working on a project for which I have to store unsigned integer values up to 2^64 - 1. Even bigger values would be valuable but 2^64-1 is the minimum required. My Rails project uses a MySQL database. And gue…

---

## [Native sql query with array-like, prepared statement](https://www.ruby-forum.com/t/native-sql-query-with-array-like-prepared-statement/178180)

<div class="topic-metadata">

**Author:** [@neomizer](https://www.ruby-forum.com/u/neomizer)\
**Replies:** 5\
**Last updated:** [October 30, 2009, 6:17pm UTC](https://www.ruby-forum.com/t/native-sql-query-with-array-like-prepared-statement/178180 "2009-10-30T18:17:45Z")

</div>

Hi, I’m using in my project ActiveRecord::Base.connection.select\_value and ActiveRecord::Base.connection.select\_rows several times to execute complex queries. This basically works, but I need to check the params in o…

---

## [Any pioneers who've configured passenger to support some apps running in 1.8.x others in 1.9?](https://www.ruby-forum.com/t/any-pioneers-whove-configured-passenger-to-support-some-apps-running-in-1-8-x-others-in-1-9/178192)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 1\
**Last updated:** [October 30, 2009, 4:23pm UTC](https://www.ruby-forum.com/t/any-pioneers-whove-configured-passenger-to-support-some-apps-running-in-1-8-x-others-in-1-9/178192 "2009-10-30T16:23:36Z")

</div>

Passenger configuration selects which ruby executable to use via a global configuration variable (at least for Apache, I assume it’s the same for Nginx). I’m in a situation where I’ve got at least one rails app I’d li…

---

## [Nested\_attributes and fields\_for and ajax](https://www.ruby-forum.com/t/nested-attributes-and-fields-for-and-ajax/178183)

<div class="topic-metadata">

**Author:** [@mrmanishs](https://www.ruby-forum.com/u/mrmanishs)\
**Replies:** 2\
**Last updated:** [October 30, 2009, 3:12pm UTC](https://www.ruby-forum.com/t/nested-attributes-and-fields-for-and-ajax/178183 "2009-10-30T15:12:02Z")

</div>

Hello there, I have a form\_for and a fields\_for within the form\_for. I want to add/delete item in the fields\_for and refresh the items in the fields\_for list without having to regenerate the whole form. Now, if I set …

---

## [Updating model while reading CSV](https://www.ruby-forum.com/t/updating-model-while-reading-csv/178140)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 2\
**Last updated:** [October 30, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/updating-model-while-reading-csv/178140 "2009-10-30T14:49:12Z")

</div>

Hello all, I was wondering how to update an existing table column when reading in a CSV? I’m using FasterCSV and my controller method is this… Import Controller - def process\_csv set file name file = params\[:impor…

---

## [Problem getting started with auto\_complete](https://www.ruby-forum.com/t/problem-getting-started-with-auto-complete/178073)

<div class="topic-metadata">

**Author:** [@Gee-off](https://www.ruby-forum.com/u/Gee-off)\
**Replies:** 5\
**Last updated:** [October 30, 2009, 2:40pm UTC](https://www.ruby-forum.com/t/problem-getting-started-with-auto-complete/178073 "2009-10-30T14:40:25Z")

</div>

I’m a n00b with Rails, and I’m trying to implement basic autocomplete according to Agile Web Dev w/Rails 3rd edition (p. 584-586) I’ve installed the auto\_complete plugin, added the statement “auto\_complete\_for :game,…

---

## [Passenger ajax problem?](https://www.ruby-forum.com/t/passenger-ajax-problem/178190)

<div class="topic-metadata">

**Author:** [@fRAnKEnSTEin](https://www.ruby-forum.com/u/fRAnKEnSTEin)\
**Replies:** 1\
**Last updated:** [October 30, 2009, 2:07pm UTC](https://www.ruby-forum.com/t/passenger-ajax-problem/178190 "2009-10-30T14:07:02Z")

</div>

Hi, i am using this script: http://www.craigambrose.com/projects/redbox to overlay a box with html content inside. The script makes an ajax call for rendering the data, when i use mongrel everything works fine, but o…

---

## [Online Web Calendar](https://www.ruby-forum.com/t/online-web-calendar/178189)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 0\
**Last updated:** [October 30, 2009, 1:30pm UTC](https://www.ruby-forum.com/t/online-web-calendar/178189 "2009-10-30T13:30:16Z")

</div>

Hi all, Is there an apllicaiton that allows to handle an Online Web Calendar, similar to the TaDalist.com? Regards

---

## [Relating javascript](https://www.ruby-forum.com/t/relating-javascript/178182)

<div class="topic-metadata">

**Author:** [@hunt](https://www.ruby-forum.com/u/hunt)\
**Replies:** 3\
**Last updated:** [October 30, 2009, 11:29am UTC](https://www.ruby-forum.com/t/relating-javascript/178182 "2009-10-30T11:29:16Z")

</div>

\<% form\_tag :action =\> “login”, :html\_options =\> {:onClick =\> “return validate\_form(this)”} do %\> Login: \<%= text\_field\_tag :name %\> Password: \<%= password\_field\_tag :password %\> \<%= submit\_tag “SignIn” %\> \<%…

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

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