# Rails

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

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

---

## [Plugging in to rails application lifecycle](https://www.ruby-forum.com/t/plugging-in-to-rails-application-lifecycle/147946)

<div class="topic-metadata">

**Author:** [@mjand](https://www.ruby-forum.com/u/mjand)\
**Replies:** 11\
**Last updated:** [September 8, 2008, 1:55am UTC](https://www.ruby-forum.com/t/plugging-in-to-rails-application-lifecycle/147946 "2008-09-08T01:55:34Z")

</div>

Hello, I’m developing a rails 2 app with a custom database for persistence (not activerecord, not sql). I need to open the database once at application startup and close it once at application shutdown. I figured o…

---

## [Speed up Rails application and CGI script](https://www.ruby-forum.com/t/speed-up-rails-application-and-cgi-script/147960)

<div class="topic-metadata">

**Author:** [@konstantin](https://www.ruby-forum.com/u/konstantin)\
**Replies:** 1\
**Last updated:** [September 7, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/speed-up-rails-application-and-cgi-script/147960 "2008-09-07T22:48:32Z")

</div>

Hello! I was redirected to this group from another. Here is my question: what kind of configuration do you have on your production server for Rails? I need to speed up my application in 10-15 times, and I wonder how …

---

## [Ajax on rails](https://www.ruby-forum.com/t/ajax-on-rails/147867)

<div class="topic-metadata">

**Author:** [@pipex](https://www.ruby-forum.com/u/pipex)\
**Replies:** 6\
**Last updated:** [September 7, 2008, 10:30pm UTC](https://www.ruby-forum.com/t/ajax-on-rails/147867 "2008-09-07T22:30:57Z")

</div>

I need som help i want tha a hole to have a link to remote to a controllers action (yo do click on any part inside th div and the action is executed) how can i do that!! – Felipe V. Contesse IngenierÃ­a Civil In…

---

## [How highrise/famspam do custom emails](https://www.ruby-forum.com/t/how-highrise-famspam-do-custom-emails/147972)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 0\
**Last updated:** [September 7, 2008, 10:06pm UTC](https://www.ruby-forum.com/t/how-highrise-famspam-do-custom-emails/147972 "2008-09-07T22:06:19Z")

</div>

hey all, i’m trying to implement a system that allows mail to be sent to a custom e-mail address, like how highrise allows you to forward mail to an account specific address. Anyone know how this is accomplished? M…

---

## [Text\_field with has\_many, :through =\>](https://www.ruby-forum.com/t/text-field-with-has-many-through/147971)

<div class="topic-metadata">

**Author:** [@gwendydd](https://www.ruby-forum.com/u/gwendydd)\
**Replies:** 0\
**Last updated:** [September 7, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/text-field-with-has-many-through/147971 "2008-09-07T21:19:32Z")

</div>

This should be a really simple thing, I just haven’t figured out how to do it yet… I have two models with a has\_many, :through =\> relationship: class Source \< ActiveRecord::Base has\_many :authorships has\_many :autho…

---

## [Bug in ActiveRecord::Dirty (2.1)](https://www.ruby-forum.com/t/bug-in-activerecord-dirty-2-1/147968)

<div class="topic-metadata">

**Author:** [@janovetz](https://www.ruby-forum.com/u/janovetz)\
**Replies:** 0\
**Last updated:** [September 7, 2008, 9:04pm UTC](https://www.ruby-forum.com/t/bug-in-activerecord-dirty-2-1/147968 "2008-09-07T21:04:01Z")

</div>

Hey folks… I was looking at activerecord/lib/active\_record/dirty.rb#field\_changed? upon chasing a bug. Shouldn’t there be a similar clause for “:float” as there is for “:integer” ? Cheers, Jake

---

## [Processing pictures](https://www.ruby-forum.com/t/processing-pictures/147967)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 1\
**Last updated:** [September 7, 2008, 8:21pm UTC](https://www.ruby-forum.com/t/processing-pictures/147967 "2008-09-07T20:21:52Z")

</div>

hi all, Is there any application that allows to compare images and find some patterns that to classify the new picture in a specific group. “We have a microscope that imports a picture into the computer and we need s…

---

## [ActiveRecord not writing to tables](https://www.ruby-forum.com/t/activerecord-not-writing-to-tables/147947)

<div class="topic-metadata">

**Author:** [@KevinJones](https://www.ruby-forum.com/u/KevinJones)\
**Replies:** 3\
**Last updated:** [September 7, 2008, 8:13pm UTC](https://www.ruby-forum.com/t/activerecord-not-writing-to-tables/147947 "2008-09-07T20:13:35Z")

</div>

I have two tables in MySQL: football\_fixtures and weekly\_fixtures. In my code I have two classes class FootballFixture end and class WeeklyFixture has\_many :football\_fixtures end the WeeklyFixture class has more …

---

## [Screencast on deployment with Capistrano and Passenger](https://www.ruby-forum.com/t/screencast-on-deployment-with-capistrano-and-passenger/147965)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 0\
**Last updated:** [September 7, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/screencast-on-deployment-with-capistrano-and-passenger/147965 "2008-09-07T20:04:44Z")

</div>

The Learning Rails screencast series that Christopher Haupt and I have been creating has finally reached its 22nd episode, Deployment. Check it out at www.BuildingWebApps.com/learningrails/22 It was a real challenge t…

---

## [In\_place\_edit\_field HELP](https://www.ruby-forum.com/t/in-place-edit-field-help/147959)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [September 7, 2008, 7:53pm UTC](https://www.ruby-forum.com/t/in-place-edit-field-help/147959 "2008-09-07T19:53:00Z")

</div>

Ok I am on rails 2.1 My show view does not have a"for\_for" but the controller has @nocpage = Nocpage.find(params\[:id\]) and the view for section i am trying to use: Companyname: \<%=h @nocpage.companyname %\> I tried…

---

## [Problem finding method while testing a helper](https://www.ruby-forum.com/t/problem-finding-method-while-testing-a-helper/147957)

<div class="topic-metadata">

**Author:** [@HSWade\_M](https://www.ruby-forum.com/u/HSWade_M)\
**Replies:** 2\
**Last updated:** [September 7, 2008, 6:36pm UTC](https://www.ruby-forum.com/t/problem-finding-method-while-testing-a-helper/147957 "2008-09-07T18:36:46Z")

</div>

I’m trying to test the code in my helpers, using the great Viget Labs helper\_me\_test plugin. However, I’m running into an oddity (unrelated to the plugin - it was happening when I was trying to roll my own solution a…

---

## [Seriously stumped cannot call attribute out](https://www.ruby-forum.com/t/seriously-stumped-cannot-call-attribute-out/147958)

<div class="topic-metadata">

**Author:** [@tyliong](https://www.ruby-forum.com/u/tyliong)\
**Replies:** 2\
**Last updated:** [September 7, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/seriously-stumped-cannot-call-attribute-out/147958 "2008-09-07T17:45:13Z")

</div>

Hi, i am having problems displaying a simple attribute. what is weird is that all the other attributes are can be called but not .p . I have been racking my brain on why but I just don’t get it. it doesn’t make sense…

---

## [What am i doing?](https://www.ruby-forum.com/t/what-am-i-doing/147896)

<div class="topic-metadata">

**Author:** [@cherok](https://www.ruby-forum.com/u/cherok)\
**Replies:** 4\
**Last updated:** [September 7, 2008, 5:10pm UTC](https://www.ruby-forum.com/t/what-am-i-doing/147896 "2008-09-07T17:10:04Z")

</div>

this is my first application in RoR and am kind of stuck. part of my confusion is where/when to use the model, controller or view. one of my tables is called gi\_maps which is basically a hash: sqlite\> select \* from g…

---

## [Active record question](https://www.ruby-forum.com/t/active-record-question/147920)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 4\
**Last updated:** [September 7, 2008, 2:30pm UTC](https://www.ruby-forum.com/t/active-record-question/147920 "2008-09-07T14:30:38Z")

</div>

I’m not quite sure how to get at this data using Actrive record… I’m trying to get all the appointments made for a particular project. I’m using four models, Projects, Tasks, Resources and Appointments. The SQL gets…

---

## [How to properly upload a file in the same form as a parent model?](https://www.ruby-forum.com/t/how-to-properly-upload-a-file-in-the-same-form-as-a-parent-model/147950)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 0\
**Last updated:** [September 7, 2008, 2:25pm UTC](https://www.ruby-forum.com/t/how-to-properly-upload-a-file-in-the-same-form-as-a-parent-model/147950 "2008-09-07T14:25:21Z")

</div>

Hi, let’s say you got a Gallery model that has one (to simplify things a bit for now) Image (attachment\_fu model). Gallery has i.e. title and description, both fields are required. In the “create new gallery form” yo…

---

## [Attachment\_fu stores the wrong size](https://www.ruby-forum.com/t/attachment-fu-stores-the-wrong-size/147945)

<div class="topic-metadata">

**Author:** [@tranquiliste](https://www.ruby-forum.com/u/tranquiliste)\
**Replies:** 0\
**Last updated:** [September 7, 2008, 12:35pm UTC](https://www.ruby-forum.com/t/attachment-fu-stores-the-wrong-size/147945 "2008-09-07T12:35:53Z")

</div>

hello, I am testing attachment\_fu to load and store images. I am resizing them and generating a thumbnail but apparently it saves the wrong size in the DB : the image has the original size the thumbnail has the size…

---

## [Can you use observe\_field to watch a select list and then update the contents of a text field?](https://www.ruby-forum.com/t/can-you-use-observe-field-to-watch-a-select-list-and-then-update-the-contents-of-a-text-field/147705)

<div class="topic-metadata">

**Author:** [@sharon](https://www.ruby-forum.com/u/sharon)\
**Replies:** 3\
**Last updated:** [September 7, 2008, 12:14pm UTC](https://www.ruby-forum.com/t/can-you-use-observe-field-to-watch-a-select-list-and-then-update-the-contents-of-a-text-field/147705 "2008-09-07T12:14:48Z")

</div>

Before I waste more time trying to figure that out, I was wondering if it’s even possible? The Rails Way says that observe\_field by default will trigger changes in text fields and text areas, and on clicks for radio b…

---

## [Request profiling - login and authenticity token](https://www.ruby-forum.com/t/request-profiling-login-and-authenticity-token/147941)

<div class="topic-metadata">

**Author:** [@Drogomir](https://www.ruby-forum.com/u/Drogomir)\
**Replies:** 0\
**Last updated:** [September 7, 2008, 11:05am UTC](https://www.ruby-forum.com/t/request-profiling-login-and-authenticity-token/147941 "2008-09-07T11:05:06Z")

</div>

I was doing Request profiling like Ryan B. showed on railscasts (#98 Request Profiling - RailsCasts) and I wanted to profile some update action. I’ve prepared a script: http://pastie.org/267554 After running request …

---

## [Re: Active record question](https://www.ruby-forum.com/t/re-active-record-question/147927)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 1\
**Last updated:** [September 7, 2008, 6:12am UTC](https://www.ruby-forum.com/t/re-active-record-question/147927 "2008-09-07T06:12:40Z")

</div>

Thanks Phlip - Thanks for the response - I’ll play around with your suggestions. What I was trying to do was something like this project.appointments to display all the appointments for a specific project. The way I …

---

## [Recommendation for a multilingual site](https://www.ruby-forum.com/t/recommendation-for-a-multilingual-site/147843)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 1\
**Last updated:** [September 7, 2008, 5:35am UTC](https://www.ruby-forum.com/t/recommendation-for-a-multilingual-site/147843 "2008-09-07T05:35:51Z")

</div>

I’am looking for a easy way to create a multilingual site - a online shop. What would U recommend: gibberisch, globalize, gettext or what for rails 2.2. Thanx

---

## [Authenticity Token into javascript](https://www.ruby-forum.com/t/authenticity-token-into-javascript/147721)

<div class="topic-metadata">

**Author:** [@Jorg\_L](https://www.ruby-forum.com/u/Jorg_L)\
**Replies:** 1\
**Last updated:** [September 7, 2008, 4:58am UTC](https://www.ruby-forum.com/t/authenticity-token-into-javascript/147721 "2008-09-07T04:58:26Z")

</div>

How can I get the rails authenticity token into a javascript request.

---

## [Problem with video uploading](https://www.ruby-forum.com/t/problem-with-video-uploading/147689)

<div class="topic-metadata">

**Author:** [@rizwana](https://www.ruby-forum.com/u/rizwana)\
**Replies:** 1\
**Last updated:** [September 7, 2008, 4:53am UTC](https://www.ruby-forum.com/t/problem-with-video-uploading/147689 "2008-09-07T04:53:46Z")

</div>

Hi all, Hope u all are doing well. I am supposed to build a website using Ruby on Rails in which the user should be able to upload his/her video to YouTube via a form in my application. I have no idea how to use Yout…

---

## [Custom Sort - Possible?](https://www.ruby-forum.com/t/custom-sort-possible/147646)

<div class="topic-metadata">

**Author:** [@Neal\_L](https://www.ruby-forum.com/u/Neal_L)\
**Replies:** 2\
**Last updated:** [September 7, 2008, 4:42am UTC](https://www.ruby-forum.com/t/custom-sort-possible/147646 "2008-09-07T04:42:39Z")

</div>

Hi all, I’m working on a help system that lets users assign a “tag color” to their requests in addition to assigning the usual “high, medium, low” priority. My question is whether it’s possible to do a sort based on …

---

## [Update HABTM](https://www.ruby-forum.com/t/update-habtm/147925)

<div class="topic-metadata">

**Author:** [@splashlin](https://www.ruby-forum.com/u/splashlin)\
**Replies:** 0\
**Last updated:** [September 7, 2008, 4:38am UTC](https://www.ruby-forum.com/t/update-habtm/147925 "2008-09-07T04:38:09Z")

</div>

Hey guys I am new to rails and was wondering how you update HABTM tables. I have a join table called platforms and another table called games. They are joined with the table games\_platforms. I have a view that creat…

---

## [Installing a plugin from a git repository](https://www.ruby-forum.com/t/installing-a-plugin-from-a-git-repository/143061)

<div class="topic-metadata">

**Author:** [@francois](https://www.ruby-forum.com/u/francois)\
**Replies:** 3\
**Last updated:** [September 7, 2008, 3:23am UTC](https://www.ruby-forum.com/t/installing-a-plugin-from-a-git-repository/143061 "2008-09-07T03:23:06Z")

</div>

Hi, I’ve just upgraded my system to rails 2.1 If I start a new rails project I can issue this command without a problem: ./script/plugin install git://github.com/thoughtbot/shoulda.git However, I can’t seem to get t…

---

## [Speed up Rails and cgi script](https://www.ruby-forum.com/t/speed-up-rails-and-cgi-script/147882)

<div class="topic-metadata">

**Author:** [@konstantin](https://www.ruby-forum.com/u/konstantin)\
**Replies:** 4\
**Last updated:** [September 7, 2008, 1:29am UTC](https://www.ruby-forum.com/t/speed-up-rails-and-cgi-script/147882 "2008-09-07T01:29:04Z")

</div>

Hello! I have a Rails application and a CGI script which uses this application models (api script). The application makes http requests to the api script and shows result. It works really slow… I have found some good…

---

## [SVN question?](https://www.ruby-forum.com/t/svn-question/147520)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 7\
**Last updated:** [September 6, 2008, 10:29pm UTC](https://www.ruby-forum.com/t/svn-question/147520 "2008-09-06T22:29:23Z")

</div>

I am using running rails using instant rails and was trying to install the acts\_as\_ferret plugin located at svn://site\_ad. I have a SVN cleint on my machine tortoise but I can not get the pug in to install. i type the…

---

## [Is Rails 2.1 "protect\_from\_forgery" == csrf\_killer plugin?](https://www.ruby-forum.com/t/is-rails-2-1-protect-from-forgery-csrf-killer-plugin/147862)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 4\
**Last updated:** [September 6, 2008, 10:17pm UTC](https://www.ruby-forum.com/t/is-rails-2-1-protect-from-forgery-csrf-killer-plugin/147862 "2008-09-06T22:17:19Z")

</div>

Just would like to verify: Is protect\_from\_forgery (in Rails 2.1) == the csrf\_killer plugin from Rick O.? Thanks, Wes

---

## [Mongrel configuration](https://www.ruby-forum.com/t/mongrel-configuration/147761)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 11\
**Last updated:** [September 6, 2008, 9:54pm UTC](https://www.ruby-forum.com/t/mongrel-configuration/147761 "2008-09-06T21:54:15Z")

</div>

How do you know the right number of mongrel servers to run? I believe it defaults to 3…is there a better number than 3? If so, how do you know? We tried 3, 10, 100… However, not sure the right setting for this one…

---

## [Need a suggestion for calculated value](https://www.ruby-forum.com/t/need-a-suggestion-for-calculated-value/147903)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 1\
**Last updated:** [September 6, 2008, 9:53pm UTC](https://www.ruby-forum.com/t/need-a-suggestion-for-calculated-value/147903 "2008-09-06T21:53:40Z")

</div>

I need a suggestion for a calculated value. I have an order object with a total in it. I’d like to recalculate the order total during the checkout process (as user selects shipping, etc.) but after the checkout is c…

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

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