# Rails

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

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

---

## [Problem gettinh attachtment\_fu & imagescience to work](https://www.ruby-forum.com/t/problem-gettinh-attachtment-fu-imagescience-to-work/128722)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 1:07am UTC](https://www.ruby-forum.com/t/problem-gettinh-attachtment-fu-imagescience-to-work/128722 "2008-02-11T01:07:40Z")

</div>

In my app, i want my users to upload an avatar so after some searching i ended up on Mike C.'s blog (http://clarkware.com/cgi/ blosxom/2007/02/24) I followed the instructions in his tutorial, using ImageScience as th…

---

## [Filtering 'hidden' records](https://www.ruby-forum.com/t/filtering-hidden-records/128718)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 2\
**Last updated:** [February 11, 2008, 12:40am UTC](https://www.ruby-forum.com/t/filtering-hidden-records/128718 "2008-02-11T00:40:07Z")

</div>

A common pattern I’ve used in database application development is some form of ‘state’ field that is used to administratively manage records. Rather than deleting records I will mark them with a state of ‘deleted’ an…

---

## [Adding methods to Collections](https://www.ruby-forum.com/t/adding-methods-to-collections/128713)

<div class="topic-metadata">

**Author:** [@jonas\_s](https://www.ruby-forum.com/u/jonas_s)\
**Replies:** 5\
**Last updated:** [February 10, 2008, 11:27pm UTC](https://www.ruby-forum.com/t/adding-methods-to-collections/128713 "2008-02-10T23:27:52Z")

</div>

Hello, I´m planning to create a room managaement system in Rails. I have a collection of rooms, like this: @rooms = Room.find :all Then I want to write: @rooms.to\_svg # (or any other method name) to convert this co…

---

## [Problem with has\_and\_belongs\_to\_many](https://www.ruby-forum.com/t/problem-with-has-and-belongs-to-many/128709)

<div class="topic-metadata">

**Author:** [@Felix\_N](https://www.ruby-forum.com/u/Felix_N)\
**Replies:** 6\
**Last updated:** [February 10, 2008, 11:06pm UTC](https://www.ruby-forum.com/t/problem-with-has-and-belongs-to-many/128709 "2008-02-10T23:06:09Z")

</div>

hello, I have an m:n relationsship (has\_and\_belongs\_to\_many) between the models CoreUser and CoreGroup. So from some rails experience I thought I’d be able to add a (user,group)-relation simply by doing agroup.core\_u…

---

## [Action Pack: Cookie store sessions = blow up app in 2.0?](https://www.ruby-forum.com/t/action-pack-cookie-store-sessions-blow-up-app-in-2-0/124534)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 13\
**Last updated:** [February 10, 2008, 10:45pm UTC](https://www.ruby-forum.com/t/action-pack-cookie-store-sessions-blow-up-app-in-2-0/124534 "2008-02-10T22:45:36Z")

</div>

DHH writes in his new 2.0 update over view the following: The default session store in Rails 2.0 is now a cookie-based one. That means sessions are no longer stored on the file system or in the database, but kept by t…

---

## [Adding validation to text fields with autocomplete and to select fields](https://www.ruby-forum.com/t/adding-validation-to-text-fields-with-autocomplete-and-to-select-fields/128716)

<div class="topic-metadata">

**Author:** [@CSSSSssio\_Marques](https://www.ruby-forum.com/u/CSSSSssio_Marques)\
**Replies:** 0\
**Last updated:** [February 10, 2008, 10:38pm UTC](https://www.ruby-forum.com/t/adding-validation-to-text-fields-with-autocomplete-and-to-select-fields/128716 "2008-02-10T22:38:29Z")

</div>

Hello everybody, I’m just learning rails right now and for simple CRUD operations I’m using scaffold to generate some code. I’m using Rails 1.2.6. I’ve changed some of the fields to use an autocomplete feature and v…

---

## [Weird "Unknown action" error](https://www.ruby-forum.com/t/weird-unknown-action-error/128662)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 10, 2008, 10:24pm UTC](https://www.ruby-forum.com/t/weird-unknown-action-error/128662 "2008-02-10T22:24:57Z")

</div>

Hi, When I visit this URL in my app, http://mydomain.com/admin/user/search, I get Unknown action No action responded to user I am confused by this because I have these files app/controllers/admin\_controller.rb app…

---

## [Using a partial inside a form\_for tag](https://www.ruby-forum.com/t/using-a-partial-inside-a-form-for-tag/128630)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 2\
**Last updated:** [February 10, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/using-a-partial-inside-a-form-for-tag/128630 "2008-02-10T22:05:59Z")

</div>

I have the following: \<% form\_for @user do |f| -%\> … \<%= render :partial =\> “relationship\_status” %\> … \<% end -%\> How do I pass f to the partial! :slight\_smile: Or can I not do that? – John K. removed\_email\_add…

---

## [Singular\_path calling index instead of show using a GET](https://www.ruby-forum.com/t/singular-path-calling-index-instead-of-show-using-a-get/128669)

<div class="topic-metadata">

**Author:** [@Don\_F](https://www.ruby-forum.com/u/Don_F)\
**Replies:** 1\
**Last updated:** [February 10, 2008, 8:38pm UTC](https://www.ruby-forum.com/t/singular-path-calling-index-instead-of-show-using-a-get/128669 "2008-02-10T20:38:14Z")

</div>

I have a general query page that contains the following: \<% form\_tag(search\_url(@id), :method =\> :get) do %\> \<%= text\_field\_tag(:id, ‘’, :size =\> 25) %\> \<%= submit\_tag "Search Database" %\> \<% end %\> I want…

---

## [How retrieve session time stamp?](https://www.ruby-forum.com/t/how-retrieve-session-time-stamp/128650)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 1\
**Last updated:** [February 10, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/how-retrieve-session-time-stamp/128650 "2008-02-10T19:48:14Z")

</div>

Sessions stored to db have an updated\_at field. I need to get that data. session.updated\_at doesn’t work. I can’t find any docs on this. what’s the syntax for doing this? thx. – gw

---

## [Shared Partial Folder Inheritance](https://www.ruby-forum.com/t/shared-partial-folder-inheritance/128694)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 1\
**Last updated:** [February 10, 2008, 7:46pm UTC](https://www.ruby-forum.com/t/shared-partial-folder-inheritance/128694 "2008-02-10T19:46:28Z")

</div>

I am rendering the partial “shared/list” from within a controller. This partial in turn renders the partial “shared/listitem”. My question is: Is there an option for render to inherit the location of the called parti…

---

## [Problems setting up a RoR server](https://www.ruby-forum.com/t/problems-setting-up-a-ror-server/128706)

<div class="topic-metadata">

**Author:** [@olivier](https://www.ruby-forum.com/u/olivier)\
**Replies:** 0\
**Last updated:** [February 10, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/problems-setting-up-a-ror-server/128706 "2008-02-10T19:42:21Z")

</div>

Hi, I’m trying to launch my new RoR site but I’ve some problems with my server. On the the test server of my website developer everything works just great but not on my official VPS. This is the link to the test ser…

---

## [Ruby 1.9](https://www.ruby-forum.com/t/ruby-1-9/128693)

<div class="topic-metadata">

**Author:** [@bcurtu](https://www.ruby-forum.com/u/bcurtu)\
**Replies:** 2\
**Last updated:** [February 10, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/ruby-1-9/128693 "2008-02-10T19:42:21Z")

</div>

Hi there, 1.- Does Rails 2.0 work with Ruby 1.9? 2.- Does a code made with Ruby 1.8 compile with 1.9? 3.- Apart from the performance issue, is it worthy to program with Ruby 1.9 rather than 1.8? Thanks a lot.

---

## [Google map mashup design](https://www.ruby-forum.com/t/google-map-mashup-design/128704)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 0\
**Last updated:** [February 10, 2008, 7:34pm UTC](https://www.ruby-forum.com/t/google-map-mashup-design/128704 "2008-02-10T19:34:07Z")

</div>

I’m working on a mashup with google maps and I’m not sure how to proceed with the design. The main page has a map, a list of events and a calendar. Users add events for specific days on the calendar. The “add event” i…

---

## [Email Sending Now Throws Error in 2.0.2](https://www.ruby-forum.com/t/email-sending-now-throws-error-in-2-0-2/128701)

<div class="topic-metadata">

**Author:** [@fattymelt](https://www.ruby-forum.com/u/fattymelt)\
**Replies:** 0\
**Last updated:** [February 10, 2008, 6:56pm UTC](https://www.ruby-forum.com/t/email-sending-now-throws-error-in-2-0-2/128701 "2008-02-10T18:56:50Z")

</div>

(sorry if this is a dupe - first one didn’t go through) This code worked fine in 1.1.6. I just migrated to 2.0.2 and I get the error below. However, the fix that is suggested in the error does not apply to my code. …

---

## [Page.insert\_rhtml in partial displayed by page.insert\_rhtml](https://www.ruby-forum.com/t/page-insert-rhtml-in-partial-displayed-by-page-insert-rhtml/128698)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 0\
**Last updated:** [February 10, 2008, 6:51pm UTC](https://www.ruby-forum.com/t/page-insert-rhtml-in-partial-displayed-by-page-insert-rhtml/128698 "2008-02-10T18:51:32Z")

</div>

hello, I need to use page.insert\_html inside a partial that rendered and displayed by using page.insert\_html. This is because a form has a inner form that is called dynamically and the inner form again has a form. i…

---

## [Where is the source "get(..) post(..).." methods from ActionController::TestCase](https://www.ruby-forum.com/t/where-is-the-source-get-post-methods-from-actioncontroller-testcase/128674)

<div class="topic-metadata">

**Author:** [@nhm\_tanveer\_hossain](https://www.ruby-forum.com/u/nhm_tanveer_hossain)\
**Replies:** 2\
**Last updated:** [February 10, 2008, 6:26pm UTC](https://www.ruby-forum.com/t/where-is-the-source-get-post-methods-from-actioncontroller-testcase/128674 "2008-02-10T18:26:09Z")

</div>

hi, i was wondering, where i can find the source for “get(…), post(…)” methods. since i can see these are inherited from ActionController::TestCase. i had a quick look on the actionpack/lib/ test\_case.rb and later i …

---

## [ActiveRecord - counter\_cache =\> true no update of record](https://www.ruby-forum.com/t/activerecord-counter-cache-true-no-update-of-record/128690)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [February 10, 2008, 3:33pm UTC](https://www.ruby-forum.com/t/activerecord-counter-cache-true-no-update-of-record/128690 "2008-02-10T15:33:59Z")

</div>

Hello , I’ld need some help (read it could be a bug … patch coming in 2.0.3 ?) I have hm / bt relationships class User \< ActiveRecord::Base has\_many :infos, :dependent =\> :destroy class Info \< ActiveRecord::Base b…

---

## [Mongrel in development mode not reloading classes](https://www.ruby-forum.com/t/mongrel-in-development-mode-not-reloading-classes/128687)

<div class="topic-metadata">

**Author:** [@Andy\_Mayer](https://www.ruby-forum.com/u/Andy_Mayer)\
**Replies:** 2\
**Last updated:** [February 10, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/mongrel-in-development-mode-not-reloading-classes/128687 "2008-02-10T15:11:35Z")

</div>

Hi there, Even though I am running Mongrel in development mode, I have to manually restart Mongrel to load any changes that I have made to controller or model code. This is the output when I start Mongrel: $ script/…

---

## [After\_update race condition](https://www.ruby-forum.com/t/after-update-race-condition/128684)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 0\
**Last updated:** [February 10, 2008, 2:43pm UTC](https://www.ruby-forum.com/t/after-update-race-condition/128684 "2008-02-10T14:43:42Z")

</div>

Hello, I have two models. people and organisations they have a many to many relationship between them. I want to be able to create person in an organisation form and vice versa. the forms for them are according to t…

---

## [How to override plugin method?](https://www.ruby-forum.com/t/how-to-override-plugin-method/128682)

<div class="topic-metadata">

**Author:** [@mamatux](https://www.ruby-forum.com/u/mamatux)\
**Replies:** 0\
**Last updated:** [February 10, 2008, 12:22pm UTC](https://www.ruby-forum.com/t/how-to-override-plugin-method/128682 "2008-02-10T12:22:32Z")

</div>

Hello, I have made a change to a method in the jrails plugin. Now it would be a lot easier if I could make this change in a seperate file in my lib directory being able to deploy the change to my production server us…

---

## [197,345 mem ONLINE NOW! BDSM Lifestyle](https://www.ruby-forum.com/t/197-345-mem-online-now-bdsm-lifestyle/128681)

<div class="topic-metadata">

**Author:** [@Verona\_dsm](https://www.ruby-forum.com/u/Verona_dsm)\
**Replies:** 0\
**Last updated:** [February 10, 2008, 12:21pm UTC](https://www.ruby-forum.com/t/197-345-mem-online-now-bdsm-lifestyle/128681 "2008-02-10T12:21:48Z")

</div>

What are You into? Neet others who Share it! servik.com - servik Resources and Information.

---

## [How to check password before changing it?](https://www.ruby-forum.com/t/how-to-check-password-before-changing-it/128678)

<div class="topic-metadata">

**Author:** [@kamhei82](https://www.ruby-forum.com/u/kamhei82)\
**Replies:** 1\
**Last updated:** [February 10, 2008, 11:22am UTC](https://www.ruby-forum.com/t/how-to-check-password-before-changing-it/128678 "2008-02-10T11:22:29Z")

</div>

Hello, I’ve installed acts as authenticated plugin and I’m trying to change it a little bit. I’ve created form where I can change my password. There are 3 inputs: old pass, new and confirm new pass. In user model ther…

---

## [How to stop invoke a method more than one times](https://www.ruby-forum.com/t/how-to-stop-invoke-a-method-more-than-one-times/128599)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 3\
**Last updated:** [February 10, 2008, 9:44am UTC](https://www.ruby-forum.com/t/how-to-stop-invoke-a-method-more-than-one-times/128599 "2008-02-10T09:44:35Z")

</div>

How to stop invoking a method more than one times when this method has submitted to server.My shopping system have methods to manage bill,ship,pay… But i found when i was submitting a method such as bill,i can still …

---

## [Secure Downloads](https://www.ruby-forum.com/t/secure-downloads/128212)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 2\
**Last updated:** [February 10, 2008, 4:05am UTC](https://www.ruby-forum.com/t/secure-downloads/128212 "2008-02-10T04:05:32Z")

</div>

I need to create a site which has downloadable files in a library. The site will be accessed via username/password login done in the Rails app. However, I need the actual downloadable files to be protected as well. I’…

---

## [Undocumented syntax?](https://www.ruby-forum.com/t/undocumented-syntax/128655)

<div class="topic-metadata">

**Author:** [@rogwei](https://www.ruby-forum.com/u/rogwei)\
**Replies:** 2\
**Last updated:** [February 10, 2008, 1:03am UTC](https://www.ruby-forum.com/t/undocumented-syntax/128655 "2008-02-10T01:03:24Z")

</div>

I came across this in api.rubyonrails.org and am wondering if it is a typo or an undocumented feature. Can someone explain? \<% form\_tag ‘/posts’ do -%\> \<%= submit\_tag ‘Save’ %\> \<% end -%\> In particular, I refer to …

---

## [Disable layouts for specific .rhtmls](https://www.ruby-forum.com/t/disable-layouts-for-specific-rhtmls/128657)

<div class="topic-metadata">

**Author:** [@isea](https://www.ruby-forum.com/u/isea)\
**Replies:** 1\
**Last updated:** [February 10, 2008, 1:02am UTC](https://www.ruby-forum.com/t/disable-layouts-for-specific-rhtmls/128657 "2008-02-10T01:02:27Z")

</div>

Hello, Is it possible to disable the layout for a specific file? I have a file\_upload.rhtml that gets it’s layout from the account.rhtml layout. Inside file\_upload.rhtml there is an iframe (upload.rhtml) that handles …

---

## [Rails associations question](https://www.ruby-forum.com/t/rails-associations-question/128437)

<div class="topic-metadata">

**Author:** [@Thoughtware.TV](https://www.ruby-forum.com/u/Thoughtware.TV)\
**Replies:** 3\
**Last updated:** [February 10, 2008, 12:32am UTC](https://www.ruby-forum.com/t/rails-associations-question/128437 "2008-02-10T00:32:16Z")

</div>

I have two models: Post: has\_many :votes Vote: belongs\_to :post when i do: v = Vote.find(1) I can access all the post information. If I get a post, howerver: p = Post.find(1) And try to get the votes: total = …

---

## [Acts\_as\_taggable Rails 2.0](https://www.ruby-forum.com/t/acts-as-taggable-rails-2-0/128663)

<div class="topic-metadata">

**Author:** [@arte\_fact](https://www.ruby-forum.com/u/arte_fact)\
**Replies:** 0\
**Last updated:** [February 10, 2008, 12:28am UTC](https://www.ruby-forum.com/t/acts-as-taggable-rails-2-0/128663 "2008-02-10T00:28:45Z")

</div>

Helleo, I’m currently in trouble with acts\_as\_taggable, indeed, the system raises this kind of error in Rail 2.0.2. But this works with Rails 1.2.3. I do not know how to fix it. It seems that something is connected …

---

## [Simple: Routing error, no route matches](https://www.ruby-forum.com/t/simple-routing-error-no-route-matches/128356)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 9, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/simple-routing-error-no-route-matches/128356 "2008-02-09T23:15:11Z")

</div>

Hi, I’m sure this is really simple and I’m missing something really obvious but maybe another pair of eyes could help. I’m getting this error: Routing Error No route matches “/super\_admin/index.rhtml” with {:method…

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

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