# Rails

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

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

---

## [Stuff to do - Redmine - Error saving lists. Please refresh the page and try again](https://www.ruby-forum.com/t/stuff-to-do-redmine-error-saving-lists-please-refresh-the-page-and-try-again/162591)

<div class="topic-metadata">

**Author:** [@shahroon\_ali](https://www.ruby-forum.com/u/shahroon_ali)\
**Replies:** 4\
**Last updated:** [March 11, 2009, 5:51pm UTC](https://www.ruby-forum.com/t/stuff-to-do-redmine-error-saving-lists-please-refresh-the-page-and-try-again/162591 "2009-03-11T17:51:07Z")

</div>

Hi, I am trying to save a list through this “stuff to do” plugin, but it leads me to an error which is “Error saving lists. Please refresh the page and try again” I have googled a lot but got no solution for this. An…

---

## [How to retrieve single record through chained associations](https://www.ruby-forum.com/t/how-to-retrieve-single-record-through-chained-associations/162258)

<div class="topic-metadata">

**Author:** [@tod](https://www.ruby-forum.com/u/tod)\
**Replies:** 11\
**Last updated:** [March 11, 2009, 5:46pm UTC](https://www.ruby-forum.com/t/how-to-retrieve-single-record-through-chained-associations/162258 "2009-03-11T17:46:34Z")

</div>

Hi I have a standard associations belongs\_to, has\_many :through class Shop \< ActiveRecord::Base has\_many :show\_categories has\_many :categories, :through =\> :shop\_categories end class Category \< ActiveRecord::Base …

---

## [InvalidAuthenticityToken when using Mechanize](https://www.ruby-forum.com/t/invalidauthenticitytoken-when-using-mechanize/162592)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 0\
**Last updated:** [March 11, 2009, 5:38pm UTC](https://www.ruby-forum.com/t/invalidauthenticitytoken-when-using-mechanize/162592 "2009-03-11T17:38:47Z")

</div>

I am sending post requests to another rails app via mechanize and getting the InvalidAuthenticityToken error. I know its due to the protect\_from\_forgery line on the application\_controller. How do I manage to overcome …

---

## [Making a user created in a complex (nested) form an admin](https://www.ruby-forum.com/t/making-a-user-created-in-a-complex-nested-form-an-admin/162540)

<div class="topic-metadata">

**Author:** [@bagadoughnuts](https://www.ruby-forum.com/u/bagadoughnuts)\
**Replies:** 1\
**Last updated:** [March 11, 2009, 5:11pm UTC](https://www.ruby-forum.com/t/making-a-user-created-in-a-complex-nested-form-an-admin/162540 "2009-03-11T17:11:57Z")

</div>

Hi all, I’m using a nested form (#73 Complex Forms Part 1 - RailsCasts) to set up a school + faculty user in a single form. Everything works great following the above screencast. However, I’ve come to a temporary hal…

---

## [View and css - two floats in div arent level](https://www.ruby-forum.com/t/view-and-css-two-floats-in-div-arent-level/162574)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 2\
**Last updated:** [March 11, 2009, 4:30pm UTC](https://www.ruby-forum.com/t/view-and-css-two-floats-in-div-arent-level/162574 "2009-03-11T16:30:11Z")

</div>

Im new to rails and html and css. Ive read through tutorials but cant get this to work. I have a navbar which has the site name on the left and then some nav links on the right ( for now the links are just text placeh…

---

## [Job Opportunity in Sunny Tampa, FL](https://www.ruby-forum.com/t/job-opportunity-in-sunny-tampa-fl/162585)

<div class="topic-metadata">

**Author:** [@sunnyflorida](https://www.ruby-forum.com/u/sunnyflorida)\
**Replies:** 0\
**Last updated:** [March 11, 2009, 4:10pm UTC](https://www.ruby-forum.com/t/job-opportunity-in-sunny-tampa-fl/162585 "2009-03-11T16:10:53Z")

</div>

Hello, We current have an opening for a Ruby on Rails Developer (6+ months of experience desired) in Tampa, FL requiring an active (DOD) security clearance. If you or anyone you know would be interested please contac…

---

## [Setting up access rules](https://www.ruby-forum.com/t/setting-up-access-rules/162536)

<div class="topic-metadata">

**Author:** [@neubyr](https://www.ruby-forum.com/u/neubyr)\
**Replies:** 4\
**Last updated:** [March 11, 2009, 3:49pm UTC](https://www.ruby-forum.com/t/setting-up-access-rules/162536 "2009-03-11T15:49:07Z")

</div>

I am referring to this wonderful post: http://pivotallabs.com/users/nick/blog/articles/272-access-control-permissions-in-rails/comments for creating access rules for my application. So from my controller and views I a…

---

## [Ajax.inplaceditor maintain text formatting](https://www.ruby-forum.com/t/ajax-inplaceditor-maintain-text-formatting/162581)

<div class="topic-metadata">

**Author:** [@paul\_yu](https://www.ruby-forum.com/u/paul_yu)\
**Replies:** 0\
**Last updated:** [March 11, 2009, 3:43pm UTC](https://www.ruby-forum.com/t/ajax-inplaceditor-maintain-text-formatting/162581 "2009-03-11T15:43:01Z")

</div>

Is there a way to have ajax.inplaceeditor to not strip out carriage returns in a multi row text field?

---

## [Update a table depending on icon click](https://www.ruby-forum.com/t/update-a-table-depending-on-icon-click/162534)

<div class="topic-metadata">

**Author:** [@Sacredceltic](https://www.ruby-forum.com/u/Sacredceltic)\
**Replies:** 5\
**Last updated:** [March 11, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/update-a-table-depending-on-icon-click/162534 "2009-03-11T14:41:48Z")

</div>

Hi, in a ‘new’ view for a persons model & controller, I want to be able to present a number of attribute options in the shape of icons. Each click on a different icon should set a given value to an attribute. For ins…

---

## [Creating search using active record](https://www.ruby-forum.com/t/creating-search-using-active-record/162566)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 1\
**Last updated:** [March 11, 2009, 1:32pm UTC](https://www.ruby-forum.com/t/creating-search-using-active-record/162566 "2009-03-11T13:32:26Z")

</div>

I am trying to create a search with two fields but struggling on how to query it in active record. I have a view with two fields. text field #userstring and search by value #searchby eg search bob by eithier name or …

---

## [Routing problem](https://www.ruby-forum.com/t/routing-problem/162478)

<div class="topic-metadata">

**Author:** [@makarakao](https://www.ruby-forum.com/u/makarakao)\
**Replies:** 2\
**Last updated:** [March 11, 2009, 1:22pm UTC](https://www.ruby-forum.com/t/routing-problem/162478 "2009-03-11T13:22:27Z")

</div>

Hi all, I want the url something like this: http://localhost:3000/profile/anyusername This will access the controller: profile and the action: view and the value “anyusername” is the :username parameter. So I wrote …

---

## [Finding out template's filename in application layout file code?](https://www.ruby-forum.com/t/finding-out-templates-filename-in-application-layout-file-code/162508)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 11, 2009, 11:23am UTC](https://www.ruby-forum.com/t/finding-out-templates-filename-in-application-layout-file-code/162508 "2009-03-11T11:23:20Z")

</div>

Hi, I would like to access the filename of the (main) template used for a request, and I would like to do so in the (main application) layout template. I know about @template, but @template.template.filename yields t…

---

## [High Priority Problem , when uploading image](https://www.ruby-forum.com/t/high-priority-problem-when-uploading-image/162499)

<div class="topic-metadata">

**Author:** [@hamidraza](https://www.ruby-forum.com/u/hamidraza)\
**Replies:** 4\
**Last updated:** [March 11, 2009, 11:10am UTC](https://www.ruby-forum.com/t/high-priority-problem-when-uploading-image/162499 "2009-03-11T11:10:57Z")

</div>

i m uploading an image and found following error , plz n e buddi help me out , thxxxxxx in advace , my rails version is 2.2.2 and ruby version is 1.8.7 and i m using attachment\_fu + mini\_magick the error is Proces…

---

## [Can you update a db record without first retrieving it?](https://www.ruby-forum.com/t/can-you-update-a-db-record-without-first-retrieving-it/162537)

<div class="topic-metadata">

**Author:** [@sktib](https://www.ruby-forum.com/u/sktib)\
**Replies:** 1\
**Last updated:** [March 11, 2009, 10:59am UTC](https://www.ruby-forum.com/t/can-you-update-a-db-record-without-first-retrieving-it/162537 "2009-03-11T10:59:05Z")

</div>

Folks, I display a set of records to the user who can make changes to one or more of those records. When the user saves the changes, I get them back in an array that contains only the changed records - with both the …

---

## [NoMethodError for select\_tag](https://www.ruby-forum.com/t/nomethoderror-for-select-tag/162556)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 11, 2009, 10:56am UTC](https://www.ruby-forum.com/t/nomethoderror-for-select-tag/162556 "2009-03-11T10:56:44Z")

</div>

Hello there. I am following a tutorial with rails 2.1 and I have come across a problem where \<%= f.label :artist\_id %\> \<%= f.select\_tag(:artist\_id, options\_for\_select(\[\[‘choose one’, ‘’\]\] + @artists.collect {|art| …

---

## [Trapping or rewriting crappy urls](https://www.ruby-forum.com/t/trapping-or-rewriting-crappy-urls/162557)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 0\
**Last updated:** [March 11, 2009, 10:53am UTC](https://www.ruby-forum.com/t/trapping-or-rewriting-crappy-urls/162557 "2009-03-11T10:53:51Z")

</div>

Hi, Sometimes in my log, I see correct urls that have been appended with some crap characters and that currently raises an internal server error which I don’t really care about. What would be the cleanest way to deal …

---

## [Is there a better way to do this (SQL groups)?](https://www.ruby-forum.com/t/is-there-a-better-way-to-do-this-sql-groups/162551)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 0\
**Last updated:** [March 11, 2009, 9:06am UTC](https://www.ruby-forum.com/t/is-there-a-better-way-to-do-this-sql-groups/162551 "2009-03-11T09:06:54Z")

</div>

I have a Task model and a Category model with belongs\_to and has\_many. What I want is to get from de DB the tasks in groups of categories and each one of this groups with a maximum of 5 tasks. Later, I want to show th…

---

## [RoR on Bluehost](https://www.ruby-forum.com/t/ror-on-bluehost/162486)

<div class="topic-metadata">

**Author:** [@prichard](https://www.ruby-forum.com/u/prichard)\
**Replies:** 4\
**Last updated:** [March 11, 2009, 5:59am UTC](https://www.ruby-forum.com/t/ror-on-bluehost/162486 "2009-03-11T05:59:09Z")

</div>

Hi all. I’m having problems getting a RoR app to run on bluehost. Here’s the rundown. First I’m frustrated because I have two accounts, I’ve gotten an app to run on one account, and I can’t get one running on the othe…

---

## [Getting started, sort of](https://www.ruby-forum.com/t/getting-started-sort-of/161369)

<div class="topic-metadata">

**Author:** [@bachcole](https://www.ruby-forum.com/u/bachcole)\
**Replies:** 8\
**Last updated:** [March 11, 2009, 4:11am UTC](https://www.ruby-forum.com/t/getting-started-sort-of/161369 "2009-03-11T04:11:39Z")

</div>

I was working with: The Rails Cookbook A Ruby on Rails Crash Course Brian H. http://www.napcs.com/resources/rails/cookbook/rails\_cookbook.pdf page 5 And I did this: C:\\ruby\>gem install sqlite3-ruby And I got this…

---

## [Help starting rails](https://www.ruby-forum.com/t/help-starting-rails/162517)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 5\
**Last updated:** [March 11, 2009, 1:26am UTC](https://www.ruby-forum.com/t/help-starting-rails/162517 "2009-03-11T01:26:09Z")

</div>

I have a weird issue. I can’t start my rails project… I was working on it yesterday, and everything was fine. I came into work today and I can’t boot it up… The server comes up fine when I run ruby script/server, but …

---

## [Uninitialized constant CachedModel](https://www.ruby-forum.com/t/uninitialized-constant-cachedmodel/162531)

<div class="topic-metadata">

**Author:** [@vlo](https://www.ruby-forum.com/u/vlo)\
**Replies:** 1\
**Last updated:** [March 11, 2009, 1:14am UTC](https://www.ruby-forum.com/t/uninitialized-constant-cachedmodel/162531 "2009-03-11T01:14:27Z")

</div>

I just upgraded my app from 1.2.6 to 2.2.2. When I do the rake db:migrate, I hit “uninitialized constant CachedModel.” (Full stack at the end of the message.) I found out from doing a Google search that CachedModel an…

---

## [\[JOBS\] Ruby Developer in Manhattan Beach, CA](https://www.ruby-forum.com/t/jobs-ruby-developer-in-manhattan-beach-ca/162532)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 11, 2009, 12:33am UTC](https://www.ruby-forum.com/t/jobs-ruby-developer-in-manhattan-beach-ca/162532 "2009-03-11T00:33:32Z")

</div>

Hello everyone, I’m looking for a Ruby Developer who is willing to work out of the Manhattan Beach location on a full-time permanent onsite basis. My client is doing a confidential search but they are a social networ…

---

## [Resubmitting remote form via AJAX -- old parameters get passed!](https://www.ruby-forum.com/t/resubmitting-remote-form-via-ajax-old-parameters-get-passed/162529)

<div class="topic-metadata">

**Author:** [@gaveeno](https://www.ruby-forum.com/u/gaveeno)\
**Replies:** 1\
**Last updated:** [March 10, 2009, 11:33pm UTC](https://www.ruby-forum.com/t/resubmitting-remote-form-via-ajax-old-parameters-get-passed/162529 "2009-03-10T23:33:45Z")

</div>

When I submit a form via AJAX and get back some errors in my “errors” div, if I try to resubmit the form with the errors corrected it still passes the old parameters. See my code at: http://pastie.org/413269 (also p…

---

## [Managing migrations](https://www.ruby-forum.com/t/managing-migrations/162525)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 7\
**Last updated:** [March 10, 2009, 10:32pm UTC](https://www.ruby-forum.com/t/managing-migrations/162525 "2009-03-10T22:32:05Z")

</div>

I have a migration “x” that when it runs self.up it adds a new column to a table, and of course when self. down is run it deletes said table… After I ran this migration I continued to work and in the process added a …

---

## [Phusion Passenger Installation Problem](https://www.ruby-forum.com/t/phusion-passenger-installation-problem/162477)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 4\
**Last updated:** [March 10, 2009, 10:01pm UTC](https://www.ruby-forum.com/t/phusion-passenger-installation-problem/162477 "2009-03-10T22:01:00Z")

</div>

Hello, I am trying to install Passenger on Mac OS 10.5 but running: % sudo gem install passenger gives me: Error installing passenger: invalid gem format for /Library/Ruby/Gems/1.8/cache/ passenger-2.0.6.gem I don…

---

## [Rails cross platform problem](https://www.ruby-forum.com/t/rails-cross-platform-problem/162445)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 1\
**Last updated:** [March 10, 2009, 8:57pm UTC](https://www.ruby-forum.com/t/rails-cross-platform-problem/162445 "2009-03-10T20:57:26Z")

</div>

My Rails working on a Linux system and a client access this server from Windows. The client inputs something in a text area and click submit, in the server side, it put the input into a file. The problem is that at th…

---

## [Inheritance problem](https://www.ruby-forum.com/t/inheritance-problem/162515)

<div class="topic-metadata">

**Author:** [@mahmoud\_cs](https://www.ruby-forum.com/u/mahmoud_cs)\
**Replies:** 2\
**Last updated:** [March 10, 2009, 8:57pm UTC](https://www.ruby-forum.com/t/inheritance-problem/162515 "2009-03-10T20:57:25Z")

</div>

i create java class and i want to create ruby class and inherit from this java class

---

## [RAILS\_ROOT issue - plugin unit tests won't work under vendor/plugins](https://www.ruby-forum.com/t/rails-root-issue-plugin-unit-tests-wont-work-under-vendor-plugins/162521)

<div class="topic-metadata">

**Author:** [@lee](https://www.ruby-forum.com/u/lee)\
**Replies:** 0\
**Last updated:** [March 10, 2009, 8:55pm UTC](https://www.ruby-forum.com/t/rails-root-issue-plugin-unit-tests-wont-work-under-vendor-plugins/162521 "2009-03-10T20:55:05Z")

</div>

Hi, I’m relatively new to Ruby/Rails (and developing on Windows boxes). I’ve inherited a system and am trying to get the unit tests for a plugin running in Windows. Specifically, I have a plugin with some unit tests …

---

## [Multiple Active Record Connection](https://www.ruby-forum.com/t/multiple-active-record-connection/162497)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 1\
**Last updated:** [March 10, 2009, 8:54pm UTC](https://www.ruby-forum.com/t/multiple-active-record-connection/162497 "2009-03-10T20:54:29Z")

</div>

Dear all My ActiveRecord::Base is connected to server\_a (local server), has a Server model contains about 100 server records (remote server). I use the following block to retrieve the server infomation. It works fine…

---

## [Will\_paginate plugin](https://www.ruby-forum.com/t/will-paginate-plugin/162382)

<div class="topic-metadata">

**Author:** [@nilez](https://www.ruby-forum.com/u/nilez)\
**Replies:** 1\
**Last updated:** [March 10, 2009, 7:28pm UTC](https://www.ruby-forum.com/t/will-paginate-plugin/162382 "2009-03-10T19:28:26Z")

</div>

hi all, I am using will\_paginate plug\_in i am getting URL as http://localhost:3000/admin/edit#/admin/edit?page=3 but i want it should be http://localhost:3000/admin/edit?page=3 how can I do it.

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

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