# Rails

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

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

---

## [Fragment caching in a helper?](https://www.ruby-forum.com/t/fragment-caching-in-a-helper/103858)

<div class="topic-metadata">

**Author:** [@morten](https://www.ruby-forum.com/u/morten)\
**Replies:** 0\
**Last updated:** [May 11, 2007, 1:15am UTC](https://www.ruby-forum.com/t/fragment-caching-in-a-helper/103858 "2007-05-11T01:15:46Z")

</div>

Hi. I’d like to do fragment caching in a helper method, is this possible? Thanks. Morten

---

## [Testing with attachment\_fu](https://www.ruby-forum.com/t/testing-with-attachment-fu/103201)

<div class="topic-metadata">

**Author:** [@dissolved](https://www.ruby-forum.com/u/dissolved)\
**Replies:** 1\
**Last updated:** [May 11, 2007, 12:25am UTC](https://www.ruby-forum.com/t/testing-with-attachment-fu/103201 "2007-05-11T00:25:34Z")

</div>

Mike C.'s attachment\_fu guide is great! (http://clarkware.com/cgi/ blosxom/2007/02/24) But what about unit and functional testing? Does anyone have some examples they can share? I seem to be getting stuck on how t…

---

## [Disobedient 'gem env' Causing Rails "undefined method \`gem'](https://www.ruby-forum.com/t/disobedient-gem-env-causing-rails-undefined-method-gem/103828)

<div class="topic-metadata">

**Author:** [@transonik](https://www.ruby-forum.com/u/transonik)\
**Replies:** 2\
**Last updated:** [May 11, 2007, 12:24am UTC](https://www.ruby-forum.com/t/disobedient-gem-env-causing-rails-undefined-method-gem/103828 "2007-05-11T00:24:42Z")

</div>

I’m setting up on a textdrive shared host, and have installed my gems to a local directory called ‘gems’. I did this by installing the gems on my ubuntu 7.04 system and tar’ing up the ‘gems’ to a like-named directory…

---

## [RejectConf @RailsConf](https://www.ruby-forum.com/t/rejectconf-railsconf/86439)

<div class="topic-metadata">

**Author:** [@rrwhite](https://www.ruby-forum.com/u/rrwhite)\
**Replies:** 5\
**Last updated:** [May 11, 2007, 12:09am UTC](https://www.ruby-forum.com/t/rejectconf-railsconf/86439 "2007-05-11T00:09:03Z")

</div>

I heard about the success that was RejectConf which was put on in parallel to RubyConf for all those who’s presentation proposals got shot down. I definitely interested in seeing something like this put together for R…

---

## [Error with gem install rails](https://www.ruby-forum.com/t/error-with-gem-install-rails/103845)

<div class="topic-metadata">

**Author:** [@aginghipster](https://www.ruby-forum.com/u/aginghipster)\
**Replies:** 1\
**Last updated:** [May 10, 2007, 11:57pm UTC](https://www.ruby-forum.com/t/error-with-gem-install-rails/103845 "2007-05-10T23:57:39Z")

</div>

On a Windows 2000 server , I have installed ruby. but when I try to install rails I get this error. Any Ideas? C:\>gem install rails --include-dependencies ERROR: While executing gem … (Gem::RemoteFetcher::FetchError) …

---

## [Link\_to\_remote for a div](https://www.ruby-forum.com/t/link-to-remote-for-a-div/103831)

<div class="topic-metadata">

**Author:** [@cfingerh](https://www.ruby-forum.com/u/cfingerh)\
**Replies:** 2\
**Last updated:** [May 10, 2007, 11:57pm UTC](https://www.ruby-forum.com/t/link-to-remote-for-a-div/103831 "2007-05-10T23:57:39Z")

</div>

Hi, i just want to create with Ror an event when a the mouse is over an element. Is there any helper function like link\_to\_remote that generates the code… I need something like this Some text Thanks

---

## [Render :action of a different controller](https://www.ruby-forum.com/t/render-action-of-a-different-controller/103760)

<div class="topic-metadata">

**Author:** [@demisone](https://www.ruby-forum.com/u/demisone)\
**Replies:** 6\
**Last updated:** [May 10, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/render-action-of-a-different-controller/103760 "2007-05-10T23:49:38Z")

</div>

Hi, it may be trivial, but i couldn’t find any \[clear\] documentation on the parameters passed to the render method when using the :action. I just want to know if and how i can use this method for rendering an action’s…

---

## [Unsubscribe page with Ruby on rails](https://www.ruby-forum.com/t/unsubscribe-page-with-ruby-on-rails/103853)

<div class="topic-metadata">

**Author:** [@spike](https://www.ruby-forum.com/u/spike)\
**Replies:** 0\
**Last updated:** [May 10, 2007, 11:46pm UTC](https://www.ruby-forum.com/t/unsubscribe-page-with-ruby-on-rails/103853 "2007-05-10T23:46:38Z")

</div>

I am just learning programming skills. But in meanwhile I am looking for either a template or a a programmer to write a simple unsubscribe page data base backend (or tables …spike

---

## [\-W2 flag](https://www.ruby-forum.com/t/w2-flag/103847)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 10, 2007, 10:37pm UTC](https://www.ruby-forum.com/t/w2-flag/103847 "2007-05-10T22:37:33Z")

</div>

Is there a -W2 flag when running Rails? Where can I find more documentation on this? TIA.

---

## [Sortable\_element not working](https://www.ruby-forum.com/t/sortable-element-not-working/103842)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 10, 2007, 9:44pm UTC](https://www.ruby-forum.com/t/sortable-element-not-working/103842 "2007-05-10T21:44:24Z")

</div>

I’m trying to create a simple sortable list and sortable\_element is not working. It’s throwing a javascript error that I cannot fix. I’ve had sortable lists working in the past with other projects and this does not se…

---

## [Errors on my production server](https://www.ruby-forum.com/t/errors-on-my-production-server/116865)

<div class="topic-metadata">

**Author:** [@wheels](https://www.ruby-forum.com/u/wheels)\
**Replies:** 1\
**Last updated:** [May 10, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/errors-on-my-production-server/116865 "2007-05-10T21:22:25Z")

</div>

I’ve just developed my first 2 rails apps but can’t get them to work on my server. The support guys are saying something’s wrong with my application because it generates this error: ./…/config/boot.rb:29: undefined m…

---

## [Sortable\_element - No HTML output](https://www.ruby-forum.com/t/sortable-element-no-html-output/92234)

<div class="topic-metadata">

**Author:** [@zayne](https://www.ruby-forum.com/u/zayne)\
**Replies:** 2\
**Last updated:** [May 10, 2007, 9:11pm UTC](https://www.ruby-forum.com/t/sortable-element-no-html-output/92234 "2007-05-10T21:11:22Z")

</div>

I’ve been trying to implement a sortable list and have been following the Rails Cookbook I’ve just bought. My code is exactly the same as the one in the book, but when I tried to move an element, I can only select the…

---

## [Simple stuff - using frames](https://www.ruby-forum.com/t/simple-stuff-using-frames/103837)

<div class="topic-metadata">

**Author:** [@student\_ncm](https://www.ruby-forum.com/u/student_ncm)\
**Replies:** 0\
**Last updated:** [May 10, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/simple-stuff-using-frames/103837 "2007-05-10T21:02:21Z")

</div>

This is a very simple question as I am a student trying my hand at a simple rails app. How do you use html frames inside the RoR scaffold. I can set the frame structure with no problem - but I am not sure how to point…

---

## [Rjs: using show and hide, vs replace?](https://www.ruby-forum.com/t/rjs-using-show-and-hide-vs-replace/103833)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 0\
**Last updated:** [May 10, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/rjs-using-show-and-hide-vs-replace/103833 "2007-05-10T20:46:58Z")

</div>

hi, i was wondering when to use show and hide vs replace? for example index.rhtml \<div id ="mynote" ... \_mypartial.rhtml ... when using replace and rendering partial mypartial…would that be the same as defining …

---

## [What happened to ActionWebService](https://www.ruby-forum.com/t/what-happened-to-actionwebservice/103819)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 3\
**Last updated:** [May 10, 2007, 8:44pm UTC](https://www.ruby-forum.com/t/what-happened-to-actionwebservice/103819 "2007-05-10T20:44:17Z")

</div>

I’m trying to build up a SOAP server using ActionWebService (customer’s requirement). It took me a little while to remember that I had seen a changeset removing actionwebservice from the default load path of Rails ( h…

---

## [I'm writing a blog documenting my first Rails project](https://www.ruby-forum.com/t/im-writing-a-blog-documenting-my-first-rails-project/103834)

<div class="topic-metadata">

**Author:** [@Jake\_Brownson](https://www.ruby-forum.com/u/Jake_Brownson)\
**Replies:** 0\
**Last updated:** [May 10, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/im-writing-a-blog-documenting-my-first-rails-project/103834 "2007-05-10T20:42:17Z")

</div>

I’m learning Rails by implementing an online version of the game Pente. I thought I’d blog about the process since I always learn better when I have to “teach” someone else what I’ve learned, and it never hurts to h…

---

## [RJS page.select DOM element properties](https://www.ruby-forum.com/t/rjs-page-select-dom-element-properties/103830)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 0\
**Last updated:** [May 10, 2007, 8:08pm UTC](https://www.ruby-forum.com/t/rjs-page-select-dom-element-properties/103830 "2007-05-10T20:08:46Z")

</div>

Is there an easy way to check if a certain DOM element is visible using Select? This code doesn’t work: page.select(‘li.class’).each do |item| if item.style.display == ‘none’ Do something here… end end Thank you f…

---

## [Implicit Transactions and after\_save callback](https://www.ruby-forum.com/t/implicit-transactions-and-after-save-callback/103657)

<div class="topic-metadata">

**Author:** [@k9ert](https://www.ruby-forum.com/u/k9ert)\
**Replies:** 2\
**Last updated:** [May 10, 2007, 7:43pm UTC](https://www.ruby-forum.com/t/implicit-transactions-and-after-save-callback/103657 "2007-05-10T19:43:10Z")

</div>

Hi group, I have a Problem with ActiveRecord. I´m using SQL-Queries in the after\_save-Callbacks which assert, that the change in the db already took place. But this is not the case, because we´re still in the transac…

---

## [REST own action](https://www.ruby-forum.com/t/rest-own-action/103812)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 12\
**Last updated:** [May 10, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/rest-own-action/103812 "2007-05-10T19:24:07Z")

</div>

I can sent my own action to a users\_controller stating in routes.rb map.resources :users, :member =\> { :network =\> get } I defined in my users\_controller the network action… so I can have an url like “http://localho…

---

## [Collection\_select](https://www.ruby-forum.com/t/collection-select/103825)

<div class="topic-metadata">

**Author:** [@pingu](https://www.ruby-forum.com/u/pingu)\
**Replies:** 1\
**Last updated:** [May 10, 2007, 7:17pm UTC](https://www.ruby-forum.com/t/collection-select/103825 "2007-05-10T19:17:43Z")

</div>

hey, i have a model called continents, that has a name and an id, anyone know why this doesnt work \<%= collection\_select(:continent, :name, @continents, :id, :name), but this does \<%= collection\_select(:continent, :i…

---

## [Nginx+mongrel also serving up php](https://www.ruby-forum.com/t/nginx-mongrel-also-serving-up-php/103810)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 5\
**Last updated:** [May 10, 2007, 7:10pm UTC](https://www.ruby-forum.com/t/nginx-mongrel-also-serving-up-php/103810 "2007-05-10T19:10:04Z")

</div>

I’ve been following some tutorials and things from the Nginx english documentation and have it successfully serving up static content and proxying to mongrel for rails requests. This is all working fine. However, I ha…

---

## [Stuck with open\_id\_authentication plugin](https://www.ruby-forum.com/t/stuck-with-open-id-authentication-plugin/103805)

<div class="topic-metadata">

**Author:** [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Replies:** 1\
**Last updated:** [May 10, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/stuck-with-open-id-authentication-plugin/103805 "2007-05-10T19:05:06Z")

</div>

Hi, I am trying to get the open\_id\_authentication plugin to work with the current edge rails, and here is what I am stuck with: In the case statement in the authenticate\_with\_open\_id method\*\* (below, copied from the …

---

## [Can't get Ruby on Rails with Apache and FastCGI](https://www.ruby-forum.com/t/cant-get-ruby-on-rails-with-apache-and-fastcgi/103625)

<div class="topic-metadata">

**Author:** [@kpmcnamee](https://www.ruby-forum.com/u/kpmcnamee)\
**Replies:** 1\
**Last updated:** [May 10, 2007, 6:49pm UTC](https://www.ruby-forum.com/t/cant-get-ruby-on-rails-with-apache-and-fastcgi/103625 "2007-05-10T18:49:03Z")

</div>

Hi! Environment Solaris 10 Apache 2.2.0 with fcgid\_module Ruby 1.8.4 Rails 1.2.3 I am trying to get FastCGI working. Initially I used “dispatch.cgi” successfully but when I switched to “dispatch.fcgi” I get ====…

---

## [Sybase asa adaptor for ruby on rails](https://www.ruby-forum.com/t/sybase-asa-adaptor-for-ruby-on-rails/103824)

<div class="topic-metadata">

**Author:** [@monarailguy42](https://www.ruby-forum.com/u/monarailguy42)\
**Replies:** 0\
**Last updated:** [May 10, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/sybase-asa-adaptor-for-ruby-on-rails/103824 "2007-05-10T18:35:01Z")

</div>

Hello I am new to ruby on rails but have made several application without problem using MySQL databases. Now I need to use ruby on rails with Sybase ASA 9.0. I am having problems getting the adaptor to work availab…

---

## [Best way to DRY this?](https://www.ruby-forum.com/t/best-way-to-dry-this/103766)

<div class="topic-metadata">

**Author:** [@gnuvince](https://www.ruby-forum.com/u/gnuvince)\
**Replies:** 4\
**Last updated:** [May 10, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/best-way-to-dry-this/103766 "2007-05-10T18:22:00Z")

</div>

I am super new to rails and I was wondering how could I DRY this \<%- for page in @pages -%\> \<%= link\_to\_remote page.title, :url =\> { :action =\> "view\_page", :id =\> page.id} %\> \<%= link\_to\_re…

---

## [New article on ActiveRecord at ORA blog (by Gregory Brown)](https://www.ruby-forum.com/t/new-article-on-activerecord-at-ora-blog-by-gregory-brown/103822)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [May 10, 2007, 5:45pm UTC](https://www.ruby-forum.com/t/new-article-on-activerecord-at-ora-blog-by-gregory-brown/103822 "2007-05-10T17:45:40Z")

</div>

enjoy! thanks, -pate Duty makes us do things, Love make us do things well. http://on-ruby.blogspot.com http://on-erlang.blogspot.com

---

## [Problem with url\_for and https - overrides all options](https://www.ruby-forum.com/t/problem-with-url-for-and-https-overrides-all-options/86321)

<div class="topic-metadata">

**Author:** [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Replies:** 6\
**Last updated:** [May 10, 2007, 5:42pm UTC](https://www.ruby-forum.com/t/problem-with-url-for-and-https-overrides-all-options/86321 "2007-05-10T17:42:51Z")

</div>

I have a piece of code like this in one of my views: \<%=link\_to “link here”, :action=\>‘my\_action’, :id=\>1 %\> It works fine on my local development machine, running Webrick over http and it works fine on my testing ser…

---

## [OT: Open source flash video player?](https://www.ruby-forum.com/t/ot-open-source-flash-video-player/103814)

<div class="topic-metadata">

**Author:** [@Jake\_C](https://www.ruby-forum.com/u/Jake_C)\
**Replies:** 3\
**Last updated:** [May 10, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/ot-open-source-flash-video-player/103814 "2007-05-10T17:26:39Z")

</div>

Guys, I’m looking for an open source (or affordable) flash video player akin to those used by YouTube and Metacafe. Does such a thing exist, or is the only option to write my own? Google isn’t yielding anything use…

---

## [Problem related with ferret](https://www.ruby-forum.com/t/problem-related-with-ferret/103817)

<div class="topic-metadata">

**Author:** [@arun123](https://www.ruby-forum.com/u/arun123)\
**Replies:** 0\
**Last updated:** [May 10, 2007, 5:06pm UTC](https://www.ruby-forum.com/t/problem-related-with-ferret/103817 "2007-05-10T17:06:35Z")

</div>

hello, i have to implement search in my app. for this is use ferret search engine. i use Image.find\_by\_contents query here Image is my model the search is work fine. but i want to search every word like in the descr…

---

## [Observers not working because of AR Plugins? (Rails = 1.2.3)](https://www.ruby-forum.com/t/observers-not-working-because-of-ar-plugins-rails-1-2-3/103816)

<div class="topic-metadata">

**Author:** [@pixellover](https://www.ruby-forum.com/u/pixellover)\
**Replies:** 1\
**Last updated:** [May 10, 2007, 5:01pm UTC](https://www.ruby-forum.com/t/observers-not-working-because-of-ar-plugins-rails-1-2-3/103816 "2007-05-10T17:01:35Z")

</div>

Hi list, I’ve tried to implement a simple Observer to log changes to my objects. Whenever I try to enable the observer in my environment.rb, my application refuses to start. Here’s what’s in my environment.rb: Rail…

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

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