# Rails

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

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

---

## [NameError and routing problem](https://www.ruby-forum.com/t/nameerror-and-routing-problem/140494)

<div class="topic-metadata">

**Author:** [@ewo](https://www.ruby-forum.com/u/ewo)\
**Replies:** 0\
**Last updated:** [June 14, 2008, 11:46pm UTC](https://www.ruby-forum.com/t/nameerror-and-routing-problem/140494 "2008-06-14T23:46:14Z")

</div>

I have the following (abridged) routes in routes.rb: map.namespace :member do |member| member.resource :profile, :controller =\> ‘profile’ do |profile| profile.edit\_address ‘address/:id/edit’, :action =\> ‘edit\_address…

---

## [A general implemetation question](https://www.ruby-forum.com/t/a-general-implemetation-question/140452)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [June 14, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/a-general-implemetation-question/140452 "2008-06-14T23:43:38Z")

</div>

Hi I am asking a general implementation question…I have two models ServiceDeskTicket and ServiceDeskActivity.The service\_desk\_tickets table has an updated\_on field(one of magic field supplied by rails) which carries …

---

## [Fragment caching with Memcached slow?](https://www.ruby-forum.com/t/fragment-caching-with-memcached-slow/63795)

<div class="topic-metadata">

**Author:** [@big\_mac](https://www.ruby-forum.com/u/big_mac)\
**Replies:** 3\
**Last updated:** [June 14, 2008, 10:34pm UTC](https://www.ruby-forum.com/t/fragment-caching-with-memcached-slow/63795 "2008-06-14T22:34:58Z")

</div>

Hi, I am trying to do fragment caching using :mem\_cache\_store. However, when I compare it to fragment caching using :file\_store, it seems to be a lot slower. Here are the results: uncache Completed in 2.20246 (0 …

---

## [Auto\_complete with multiple params](https://www.ruby-forum.com/t/auto-complete-with-multiple-params/140337)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 11\
**Last updated:** [June 14, 2008, 10:28pm UTC](https://www.ruby-forum.com/t/auto-complete-with-multiple-params/140337 "2008-06-14T22:28:46Z")

</div>

I’m using the auto\_complete plugin, and it works great, my problem is i need to pass multiple parameters to the controller other that what is typed in the text field. \<%= text\_field\_with\_auto\_complete :search, :contai…

---

## [Default Data Templates](https://www.ruby-forum.com/t/default-data-templates/140023)

<div class="topic-metadata">

**Author:** [@glenviewjeff](https://www.ruby-forum.com/u/glenviewjeff)\
**Replies:** 3\
**Last updated:** [June 14, 2008, 9:57pm UTC](https://www.ruby-forum.com/t/default-data-templates/140023 "2008-06-14T21:57:58Z")

</div>

In my database, I have a lot of duplicated data between entries. For example, I might have a database of foods where Meats is the parent object and Cheeseburger is one of its children. o=Food.New o.name = “Meats” o…

---

## [Before\_filter order of execution](https://www.ruby-forum.com/t/before-filter-order-of-execution/140439)

<div class="topic-metadata">

**Author:** [@abraham](https://www.ruby-forum.com/u/abraham)\
**Replies:** 3\
**Last updated:** [June 14, 2008, 9:54pm UTC](https://www.ruby-forum.com/t/before-filter-order-of-execution/140439 "2008-06-14T21:54:39Z")

</div>

Hi I’m trying to use before\_filter to allow access to a site. Only logged in users can view any object in the controller, but only users with a access\_level higher than 2 can view specific objects. My code is: IN US…

---

## [Looking for a Developer in Greenwich, CT](https://www.ruby-forum.com/t/looking-for-a-developer-in-greenwich-ct/140486)

<div class="topic-metadata">

**Author:** [@stephen](https://www.ruby-forum.com/u/stephen)\
**Replies:** 0\
**Last updated:** [June 14, 2008, 9:00pm UTC](https://www.ruby-forum.com/t/looking-for-a-developer-in-greenwich-ct/140486 "2008-06-14T21:00:20Z")

</div>

Hi Everybody, I’m looking to fill a Ruby/RoR position in Greenwich, CT for a money market fund. If anyone is interested, please shoot me a resume and I’ll be sure to get back to you. Ideally, the candidate would a…

---

## [Assert\_select\_rjs cant find RJS result (via Element.update) with page.replace\_html](https://www.ruby-forum.com/t/assert-select-rjs-cant-find-rjs-result-via-element-update-with-page-replace-html/140458)

<div class="topic-metadata">

**Author:** [@goodwill](https://www.ruby-forum.com/u/goodwill)\
**Replies:** 2\
**Last updated:** [June 14, 2008, 7:45pm UTC](https://www.ruby-forum.com/t/assert-select-rjs-cant-find-rjs-result-via-element-update-with-page-replace-html/140458 "2008-06-14T19:45:36Z")

</div>

I have a RJS with the following code: page.replace\_html(“new\_task”, :partial=\>‘task\_edit’) page.show(“new\_task”) page.hide(“new\_task\_link”) Then I try to do a functional test assertion with: assert\_select\_rjs :task\_…

---

## [Got a new rubygem group](https://www.ruby-forum.com/t/got-a-new-rubygem-group/140475)

<div class="topic-metadata">

**Author:** [@pavanagrawal](https://www.ruby-forum.com/u/pavanagrawal)\
**Replies:** 0\
**Last updated:** [June 14, 2008, 7:21pm UTC](https://www.ruby-forum.com/t/got-a-new-rubygem-group/140475 "2008-06-14T19:21:25Z")

</div>

Dear All, Got a new group on which we can have the expertise in ruby gems, ie. , how to create a gem… etc… please go through the group… its waiting for the explore the gem… http://groups.google.com/group/rubygems

---

## [Observe\_field synchronous request](https://www.ruby-forum.com/t/observe-field-synchronous-request/140446)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 5\
**Last updated:** [June 14, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/observe-field-synchronous-request/140446 "2008-06-14T19:06:10Z")

</div>

I am using an observe field that completely re-renders a page based on what language the user selects. I would like to do this and force the action into a sychronous action so when the user wants to copy the url and e…

---

## [Auto\_complete](https://www.ruby-forum.com/t/auto-complete/139500)

<div class="topic-metadata">

**Author:** [@indra](https://www.ruby-forum.com/u/indra)\
**Replies:** 3\
**Last updated:** [June 14, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/auto-complete/139500 "2008-06-14T17:21:14Z")

</div>

Hello, is there any way to pass additional parameters (e.g. a string) from the text\_field\_with\_auto\_complete to the controller? Indra

---

## [Public/.htaccess missing from Rails 2.1?](https://www.ruby-forum.com/t/public-htaccess-missing-from-rails-2-1/140435)

<div class="topic-metadata">

**Author:** [@dean](https://www.ruby-forum.com/u/dean)\
**Replies:** 2\
**Last updated:** [June 14, 2008, 4:26pm UTC](https://www.ruby-forum.com/t/public-htaccess-missing-from-rails-2-1/140435 "2008-06-14T16:26:41Z")

</div>

I just started with rails and have been using rails 2.0.2 up until today. I did a gem install of Rails 2.1 and I noticed that when I created a new project with: rails -d mysql projectname, I don’t have a .htaccess fi…

---

## [Help with collection\_select](https://www.ruby-forum.com/t/help-with-collection-select/140468)

<div class="topic-metadata">

**Author:** [@ANSS](https://www.ruby-forum.com/u/ANSS)\
**Replies:** 1\
**Last updated:** [June 14, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/help-with-collection-select/140468 "2008-06-14T15:32:27Z")

</div>

Hi, I have a table called ‘users’, there is a field called ‘username’ and another field called ‘mobile\_number’ (among other fields). In my application the user can send SMS message and can choose between his/her user…

---

## [Display "..." for text LONER than a certain length](https://www.ruby-forum.com/t/display-for-text-loner-than-a-certain-length/139935)

<div class="topic-metadata">

**Author:** [@nahabed](https://www.ruby-forum.com/u/nahabed)\
**Replies:** 16\
**Last updated:** [June 14, 2008, 2:39pm UTC](https://www.ruby-forum.com/t/display-for-text-loner-than-a-certain-length/139935 "2008-06-14T14:39:40Z")

</div>

I am working on an app that has user generated content. What I’d like to do, is display X characters of, say, a title and put “…” for the rest. This sounds like something you see in soc networking type app and wonderi…

---

## [Rails 2.1.0 - find with :include and missing JOIN in SQL query](https://www.ruby-forum.com/t/rails-2-1-0-find-with-include-and-missing-join-in-sql-query/140401)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 2\
**Last updated:** [June 14, 2008, 2:16pm UTC](https://www.ruby-forum.com/t/rails-2-1-0-find-with-include-and-missing-join-in-sql-query/140401 "2008-06-14T14:16:03Z")

</div>

Hi, We’re trying to rewrite veeeery old Rails app that we successfully managed to move to 1.2.6 and now we’re trying with 2.1.0. One of the problems is caused by :include in AR.find. Rails 1.2.6 generates totally dif…

---

## [Schema in Rails](https://www.ruby-forum.com/t/schema-in-rails/140467)

<div class="topic-metadata">

**Author:** [@frogstarr78](https://www.ruby-forum.com/u/frogstarr78)\
**Replies:** 0\
**Last updated:** [June 14, 2008, 2:07pm UTC](https://www.ruby-forum.com/t/schema-in-rails/140467 "2008-06-14T14:07:09Z")

</div>

http://rubyforge.org/projects/railspgprocs/ Sorry, this’ll be my first posting here. Hope it’s an appropriate place.

---

## [SESSIONS, REST and multi-step / multi-page forms](https://www.ruby-forum.com/t/sessions-rest-and-multi-step-multi-page-forms/140466)

<div class="topic-metadata">

**Author:** [@Matthew\_J\_Mucklo](https://www.ruby-forum.com/u/Matthew_J_Mucklo)\
**Replies:** 0\
**Last updated:** [June 14, 2008, 2:07pm UTC](https://www.ruby-forum.com/t/sessions-rest-and-multi-step-multi-page-forms/140466 "2008-06-14T14:07:09Z")

</div>

Greetings, I have a question regarding using sessions with REST. I’m wondering if passing form data between controllers using sessions is not recommended for Rails / REST? I need to prepopulate a form, based on infor…

---

## [Active Record session store breaks file uploads](https://www.ruby-forum.com/t/active-record-session-store-breaks-file-uploads/140444)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 1\
**Last updated:** [June 14, 2008, 12:52pm UTC](https://www.ruby-forum.com/t/active-record-session-store-breaks-file-uploads/140444 "2008-06-14T12:52:02Z")

</div>

Hi all, I recently switched from the default session store to :active\_record\_store, and my file uploading (using attachment\_fu) has broken. When I select a file to upload, using a standard form, and click submit, I a…

---

## [Noob question; remote\_form\_for](https://www.ruby-forum.com/t/noob-question-remote-form-for/140423)

<div class="topic-metadata">

**Author:** [@ANSS](https://www.ruby-forum.com/u/ANSS)\
**Replies:** 3\
**Last updated:** [June 14, 2008, 12:05pm UTC](https://www.ruby-forum.com/t/noob-question-remote-form-for/140423 "2008-06-14T12:05:58Z")

</div>

Hello, My problem is when submitting a form with remote\_form\_for I got a message that says:"Template is missing Missing template messages/create.html.erb" so the remote\_form\_for searches for a template of the create …

---

## [Ruby Rails Images & Lowpro](https://www.ruby-forum.com/t/ruby-rails-images-lowpro/140450)

<div class="topic-metadata">

**Author:** [@freaknasty](https://www.ruby-forum.com/u/freaknasty)\
**Replies:** 1\
**Last updated:** [June 14, 2008, 10:34am UTC](https://www.ruby-forum.com/t/ruby-rails-images-lowpro/140450 "2008-06-14T10:34:04Z")

</div>

I’ve been reading around and found out lowpro but with few examples. I was wondering if anyone here could give elaborate examples of some AJAX calls and lowpro. How about a mouseover an image? Also how about link\_to\_…

---

## [Routes.rb headache on production server only](https://www.ruby-forum.com/t/routes-rb-headache-on-production-server-only/140456)

<div class="topic-metadata">

**Author:** [@chovy](https://www.ruby-forum.com/u/chovy)\
**Replies:** 0\
**Last updated:** [June 14, 2008, 10:23am UTC](https://www.ruby-forum.com/t/routes-rb-headache-on-production-server-only/140456 "2008-06-14T10:23:13Z")

</div>

For whatever reason, my routes don’t work on production. #dev $ rake routes /:controller/service.wsdl {:action=\>“wsdl”} /:controller/:action/:id.:format /:controller/:action/:id /:controller/:action.:format …

---

## [Unobtrusive Javascript](https://www.ruby-forum.com/t/unobtrusive-javascript/138949)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 7\
**Last updated:** [June 14, 2008, 10:00am UTC](https://www.ruby-forum.com/t/unobtrusive-javascript/138949 "2008-06-14T10:00:22Z")

</div>

Something that has always bugged me about rails are the JavaScript helpers. They are brilliant in what they do, but create some fairly nasty looking inline javascript. Everything else in rails is nicely separated, but…

---

## [In\_place\_editor\_field](https://www.ruby-forum.com/t/in-place-editor-field/140455)

<div class="topic-metadata">

**Author:** [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Replies:** 0\
**Last updated:** [June 14, 2008, 8:41am UTC](https://www.ruby-forum.com/t/in-place-editor-field/140455 "2008-06-14T08:41:26Z")

</div>

Hi… I am doing in\_place editing on a text field using in\_place\_editor\_field. In view I wrote: \<%= in\_place\_editor\_field :ci\_class, :name, {:id =\> @ci\_class.id}, :html =\> {:class=\>‘pageDATAFIELD’} %\> In Controller: …

---

## [Problems with link\_to\_remote and send\_file](https://www.ruby-forum.com/t/problems-with-link-to-remote-and-send-file/127830)

<div class="topic-metadata">

**Author:** [@jimache](https://www.ruby-forum.com/u/jimache)\
**Replies:** 2\
**Last updated:** [June 14, 2008, 7:54am UTC](https://www.ruby-forum.com/t/problems-with-link-to-remote-and-send-file/127830 "2008-06-14T07:54:26Z")

</div>

Hi everyone, I working on an app that at some point generates an xls report(charts, summary lines, etc) and sends it to the user. If i use link\_to everything works fine; however when change to link\_to\_remote so i ca…

---

## [\[Q\] How to change template file path dinamically?](https://www.ruby-forum.com/t/q-how-to-change-template-file-path-dinamically/140449)

<div class="topic-metadata">

**Author:** [@makoto\_kuwata](https://www.ruby-forum.com/u/makoto_kuwata)\
**Replies:** 0\
**Last updated:** [June 14, 2008, 7:28am UTC](https://www.ruby-forum.com/t/q-how-to-change-template-file-path-dinamically/140449 "2008-06-14T07:28:42Z")

</div>

Hi, I have a question about template file path. I want to change template path according to a certain condition. I tried the following code and it works fine in Rails 2.1. But I don’t know this is good or not. Is th…

---

## [Moving Site and DB](https://www.ruby-forum.com/t/moving-site-and-db/139529)

<div class="topic-metadata">

**Author:** [@OhMyRuby](https://www.ruby-forum.com/u/OhMyRuby)\
**Replies:** 5\
**Last updated:** [June 14, 2008, 3:45am UTC](https://www.ruby-forum.com/t/moving-site-and-db/139529 "2008-06-14T03:45:22Z")

</div>

I have a site and postgresql db that i set up on 1 server. i have just created a new ruby server. does anyone have tutorial on how to move the application to another server? is a simple matter of copy the application…

---

## [Which free RoR IDE would you recommend?](https://www.ruby-forum.com/t/which-free-ror-ide-would-you-recommend/138908)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 37\
**Last updated:** [June 14, 2008, 2:50am UTC](https://www.ruby-forum.com/t/which-free-ror-ide-would-you-recommend/138908 "2008-06-14T02:50:19Z")

</div>

I’m a newbie and I’d like the support that an IDE provides. Searching around the web reveals a number of options and I was wondering whether there were one or two that stood out above the others? TIA, David

---

## [Sorting through array?](https://www.ruby-forum.com/t/sorting-through-array/140352)

<div class="topic-metadata">

**Author:** [@GabrielG1976](https://www.ruby-forum.com/u/GabrielG1976)\
**Replies:** 4\
**Last updated:** [June 14, 2008, 2:25am UTC](https://www.ruby-forum.com/t/sorting-through-array/140352 "2008-06-14T02:25:10Z")

</div>

I have a sorting and collecting question say i have a array with 18 elements and each element is storing 5 numbers i want to collect each of the 5 numbers out of the that index of the array and store there values into…

---

## [Alternative to storing ActiveRecord object in session](https://www.ruby-forum.com/t/alternative-to-storing-activerecord-object-in-session/140340)

<div class="topic-metadata">

**Author:** [@Eric\_LIn](https://www.ruby-forum.com/u/Eric_LIn)\
**Replies:** 3\
**Last updated:** [June 14, 2008, 1:49am UTC](https://www.ruby-forum.com/t/alternative-to-storing-activerecord-object-in-session/140340 "2008-06-14T01:49:29Z")

</div>

I’m writing a wizard-like module in my application where, in a series of steps, the user builds upon an ActiveRecord object, and in the end, saves the AR object into the database. The ActiveRecord object is fairly co…

---

## [After\_create callback called twice in test env when using fi](https://www.ruby-forum.com/t/after-create-callback-called-twice-in-test-env-when-using-fi/113858)

<div class="topic-metadata">

**Author:** [@tsaleh](https://www.ruby-forum.com/u/tsaleh)\
**Replies:** 2\
**Last updated:** [June 14, 2008, 12:30am UTC](https://www.ruby-forum.com/t/after-create-callback-called-twice-in-test-env-when-using-fi/113858 "2008-06-14T00:30:24Z")

</div>

All, I’ve been trying to figure out a strange bug in one of my applications that I think I’ve narrowed down to a problem with rails fixtures. It seems as though the after\_create callback is being run twice when I sa…

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

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