# Rails

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

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

---

## [Expire fragment not completing on model save](https://www.ruby-forum.com/t/expire-fragment-not-completing-on-model-save/131686)

<div class="topic-metadata">

**Author:** [@gonesail](https://www.ruby-forum.com/u/gonesail)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/expire-fragment-not-completing-on-model-save/131686 "2008-03-12T14:31:03Z")

</div>

ok for the ROR experts:: i have a controller that creates another model (not the same name as the controller) by doing classify.constantize on a string. then doing a save on that model which implements fragment cachin…

---

## [CMS act\_as\_tree problem and template\_root](https://www.ruby-forum.com/t/cms-act-as-tree-problem-and-template-root/131685)

<div class="topic-metadata">

**Author:** [@srinivasraopala](https://www.ruby-forum.com/u/srinivasraopala)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 2:29pm UTC](https://www.ruby-forum.com/t/cms-act-as-tree-problem-and-template-root/131685 "2008-03-12T14:29:18Z")

</div>

Hi, I want use the comatose CMS plug in for creatin one application. I installed all the things. When I run this application I got this error. “template\_root”. Please clear my problem. And How can I create one appli…

---

## [VM for Noobs](https://www.ruby-forum.com/t/vm-for-noobs/131683)

<div class="topic-metadata">

**Author:** [@johnsonch](https://www.ruby-forum.com/u/johnsonch)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 2:23pm UTC](https://www.ruby-forum.com/t/vm-for-noobs/131683 "2008-03-12T14:23:43Z")

</div>

Hello All, I’m giving a couple presentations/demos on an introduction to the RoR framework. As I have been working on my presentation I thought it would be nice to either have a VM that people could follow along with …

---

## [Newbie Routing Question /site/1/edit vs. /site/edit/1](https://www.ruby-forum.com/t/newbie-routing-question-site-1-edit-vs-site-edit-1/131659)

<div class="topic-metadata">

**Author:** [@Baz](https://www.ruby-forum.com/u/Baz)\
**Replies:** 3\
**Last updated:** [March 12, 2008, 2:20pm UTC](https://www.ruby-forum.com/t/newbie-routing-question-site-1-edit-vs-site-edit-1/131659 "2008-03-12T14:20:09Z")

</div>

I have a question about how URLs are created. This happens with the edit action on the controller. Instead of creating the URL as http://site.com/edit/1 it sticks the ID in the middle: http://site.com/1/edit Two qu…

---

## [One to many relationship?](https://www.ruby-forum.com/t/one-to-many-relationship/131670)

<div class="topic-metadata">

**Author:** [@remco123](https://www.ruby-forum.com/u/remco123)\
**Replies:** 1\
**Last updated:** [March 12, 2008, 11:52am UTC](https://www.ruby-forum.com/t/one-to-many-relationship/131670 "2008-03-12T11:52:43Z")

</div>

Hi, Newbie question (i hope) 2 tables (no rails specs) CREATE TABLE werelddelen ( id smallint(2) unsigned NOT NULL auto\_increment, naam varchar(50) default NULL, naam\_en varchar(50) default NULL, zoeknaam varchar(…

---

## [Force a page refresh from controller](https://www.ruby-forum.com/t/force-a-page-refresh-from-controller/131644)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 3\
**Last updated:** [March 12, 2008, 11:33am UTC](https://www.ruby-forum.com/t/force-a-page-refresh-from-controller/131644 "2008-03-12T11:33:30Z")

</div>

Hi - I’d like a simple way to call a method in the controller from a partial that forces a reload of the page. This can be done in one of at least 2 ways- simply use a link\_to but can i capture the url of the send…

---

## [Datetime\_toolbocks and Engines error](https://www.ruby-forum.com/t/datetime-toolbocks-and-engines-error/131596)

<div class="topic-metadata">

**Author:** [@joxor](https://www.ruby-forum.com/u/joxor)\
**Replies:** 2\
**Last updated:** [March 12, 2008, 11:18am UTC](https://www.ruby-forum.com/t/datetime-toolbocks-and-engines-error/131596 "2008-03-12T11:18:05Z")

</div>

Hi Guys, Does anyone know why this happens and perhaps what to do to fix it? ====== user@box: $ ./script/runner ‘puts Rails::VERSION::STRING’ /vendor/plugins/datetime\_toolbocks/init.rb:25:in evaluate\_init\_rb': undefi…

---

## [Again .. Proplem while creating new ruby project](https://www.ruby-forum.com/t/again-proplem-while-creating-new-ruby-project/128039)

<div class="topic-metadata">

**Author:** [@Mutati0N](https://www.ruby-forum.com/u/Mutati0N)\
**Replies:** 6\
**Last updated:** [March 12, 2008, 10:52am UTC](https://www.ruby-forum.com/t/again-proplem-while-creating-new-ruby-project/128039 "2008-03-12T10:52:33Z")

</div>

hello everyone, i have a proplem while creating new application . when i starting the WEBrick Built-in Server by writing the command ruby script/server in the directory of the project ,it’s appear to me a long Error…

---

## [Mobile Income without Investment (Got one cheque)](https://www.ruby-forum.com/t/mobile-income-without-investment-got-one-cheque/131666)

<div class="topic-metadata">

**Author:** [@Priyabrata\_Patra](https://www.ruby-forum.com/u/Priyabrata_Patra)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 10:33am UTC](https://www.ruby-forum.com/t/mobile-income-without-investment-got-one-cheque/131666 "2008-03-12T10:33:59Z")

</div>

Hello, I found few genuine sites for earning through your mobile. http://www.sms2india.co.in/?user=patrapb http://www.youmint.com/network-patrapb mginger.com - This website is for sale! - mginger Resources and …

---

## [Undefined method \`each' for #\<Usrecart:0x46d1678\>](https://www.ruby-forum.com/t/undefined-method-each-for-usrecart-0x46d1678/131651)

<div class="topic-metadata">

**Author:** [@sharan](https://www.ruby-forum.com/u/sharan)\
**Replies:** 3\
**Last updated:** [March 12, 2008, 10:15am UTC](https://www.ruby-forum.com/t/undefined-method-each-for-usrecart-0x46d1678/131651 "2008-03-12T10:15:07Z")

</div>

I have the an error such as undefined method ‘each’ pls can any one find the error from the code given below \<%=@b%\> WELCOME IN YOUR PROFILE \<%@usercart=Usrecart.find\_by\_user\_id(@b)%\> \<%if @usercart.blank?%\> …

---

## [Checkbox to toggle div](https://www.ruby-forum.com/t/checkbox-to-toggle-div/81675)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 12, 2008, 9:53am UTC](https://www.ruby-forum.com/t/checkbox-to-toggle-div/81675 "2008-03-12T09:53:33Z")

</div>

I’m trying to show a div if a checkbox is selected. I got as far as: \<%= check\_box(‘foo’,‘temporary\_bar’,{:onclick =\> “Element.toggle(‘temp\_bar’); return false;”}, 1, nil)%\> \<%= text\_field 'foo', 'temporary\_bar\_deta…

---

## [Garbage collection in Ruby](https://www.ruby-forum.com/t/garbage-collection-in-ruby/131660)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 1\
**Last updated:** [March 12, 2008, 9:46am UTC](https://www.ruby-forum.com/t/garbage-collection-in-ruby/131660 "2008-03-12T09:46:48Z")

</div>

Hi All, Can you give some ideas on Garbage collection in Ruby? Thanks in advance…

---

## [Could ActiveRecord add some comments when create table](https://www.ruby-forum.com/t/could-activerecord-add-some-comments-when-create-table/131656)

<div class="topic-metadata">

**Author:** [@phoenix520](https://www.ruby-forum.com/u/phoenix520)\
**Replies:** 1\
**Last updated:** [March 12, 2008, 9:34am UTC](https://www.ruby-forum.com/t/could-activerecord-add-some-comments-when-create-table/131656 "2008-03-12T09:34:14Z")

</div>

Could ActiveRecord add some comments for a column when create a table?For example use some sentence like this: create\_table :blogs do |t| t.string, :blog\_title, :limit=\>100,:null=\>false, :comment=\>‘my blog title’ en…

---

## [Looking to hire help on developing an application](https://www.ruby-forum.com/t/looking-to-hire-help-on-developing-an-application/131652)

<div class="topic-metadata">

**Author:** [@Raygo](https://www.ruby-forum.com/u/Raygo)\
**Replies:** 1\
**Last updated:** [March 12, 2008, 9:06am UTC](https://www.ruby-forum.com/t/looking-to-hire-help-on-developing-an-application/131652 "2008-03-12T09:06:01Z")

</div>

Where could I post a project for bidding on developing a web application? Thanks

---

## [Creating language package?](https://www.ruby-forum.com/t/creating-language-package/131398)

<div class="topic-metadata">

**Author:** [@casid](https://www.ruby-forum.com/u/casid)\
**Replies:** 4\
**Last updated:** [March 12, 2008, 5:53am UTC](https://www.ruby-forum.com/t/creating-language-package/131398 "2008-03-12T05:53:10Z")

</div>

Hello RoR Developers, I want to create English, Spanish, Japanese, Russian languages version of my rails application. What kind of way recommend me ? how can I create it ? what would you do if you were me? thanks.

---

## [Copying attachments](https://www.ruby-forum.com/t/copying-attachments/131649)

<div class="topic-metadata">

**Author:** [@Earthman](https://www.ruby-forum.com/u/Earthman)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 5:16am UTC](https://www.ruby-forum.com/t/copying-attachments/131649 "2008-03-12T05:16:32Z")

</div>

I’m successfully using attachment\_fu with the S3 backend. I want to be able to copy an attachment without downloading and re-uploading it. It needs to be a deep copy – i.e., both the binary and the database records …

---

## [Issue with nested resource](https://www.ruby-forum.com/t/issue-with-nested-resource/131612)

<div class="topic-metadata">

**Author:** [@danhobbs](https://www.ruby-forum.com/u/danhobbs)\
**Replies:** 1\
**Last updated:** [March 12, 2008, 5:09am UTC](https://www.ruby-forum.com/t/issue-with-nested-resource/131612 "2008-03-12T05:09:11Z")

</div>

I’m trying to use nested resources to generate links to the responses that exist in this category. Instead of: http://localhost:3000/categories/4/responses/4/edit It generates this: http://localhost:3000/categories/…

---

## [Fbml and dreamhost](https://www.ruby-forum.com/t/fbml-and-dreamhost/131639)

<div class="topic-metadata">

**Author:** [@shaish](https://www.ruby-forum.com/u/shaish)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 2:44am UTC](https://www.ruby-forum.com/t/fbml-and-dreamhost/131639 "2008-03-12T02:44:40Z")

</div>

help me…please… I’m trying to set up just a simple “getting started” application with dreamhost on facebook. I’m having two problems: the rails application works fine until I install the rfacebook plugin (just ins…

---

## [Uninitialized constant LoadUserData::Fixtures](https://www.ruby-forum.com/t/uninitialized-constant-loaduserdata-fixtures/131637)

<div class="topic-metadata">

**Author:** [@xeno](https://www.ruby-forum.com/u/xeno)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 2:07am UTC](https://www.ruby-forum.com/t/uninitialized-constant-loaduserdata-fixtures/131637 "2008-03-12T02:07:09Z")

</div>

I’m trying to follow the example on page 273 of Dave and David’s book, and I cannot get my yaml stuff loaded. I’ve tried several ways, including both singular and plural. It appears the book has a typo here because …

---

## [Image Link](https://www.ruby-forum.com/t/image-link/131632)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 2\
**Last updated:** [March 12, 2008, 1:58am UTC](https://www.ruby-forum.com/t/image-link/131632 "2008-03-12T01:58:52Z")

</div>

Hello, I was having problems with a link\_to… How can I use an image as the link instead of text? For example: \<%= link\_to /images/user\_edit.gif, :controller =\> ‘employees’, :action =\> ‘edit’ %\> This doesn’t work… I …

---

## [How to load external XML doc with javascript from rails app?](https://www.ruby-forum.com/t/how-to-load-external-xml-doc-with-javascript-from-rails-app/131631)

<div class="topic-metadata">

**Author:** [@kenle545](https://www.ruby-forum.com/u/kenle545)\
**Replies:** 1\
**Last updated:** [March 12, 2008, 1:35am UTC](https://www.ruby-forum.com/t/how-to-load-external-xml-doc-with-javascript-from-rails-app/131631 "2008-03-12T01:35:05Z")

</div>

I believe when I call xmlDoc.load(url) from within a rails app, it makes a request to mydomain/url. How do I make a request to the absolute url? Thanks.

---

## [What's the most compelling way to do AJAX/Interactive applications with Rails?](https://www.ruby-forum.com/t/whats-the-most-compelling-way-to-do-ajax-interactive-applications-with-rails/131282)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 5\
**Last updated:** [March 12, 2008, 12:49am UTC](https://www.ruby-forum.com/t/whats-the-most-compelling-way-to-do-ajax-interactive-applications-with-rails/131282 "2008-03-12T00:49:44Z")

</div>

Hi, So as I’ve said before, I’m coming to Rails from ColdFusion. In ColdFusion 8, there is are strong, albeit somewhat templated AJAX features. What sort of options are out there for AJAX with Rails? Thanks, Ron

---

## [Getting fragment-caching to work](https://www.ruby-forum.com/t/getting-fragment-caching-to-work/131405)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 4\
**Last updated:** [March 12, 2008, 12:43am UTC](https://www.ruby-forum.com/t/getting-fragment-caching-to-work/131405 "2008-03-12T00:43:04Z")

</div>

I’d having my first tries at caching in Rails, and would like to experiment with fragmentcaching. I have some problems with getting any results and i don’t know exactly what’s going on now. I have this in my developme…

---

## [Stopping BFS traversal after reachin a certain depth in RGL](https://www.ruby-forum.com/t/stopping-bfs-traversal-after-reachin-a-certain-depth-in-rgl/131239)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 1\
**Last updated:** [March 12, 2008, 12:15am UTC](https://www.ruby-forum.com/t/stopping-bfs-traversal-after-reachin-a-certain-depth-in-rgl/131239 "2008-03-12T00:15:42Z")

</div>

Hi, I am using RGL for some of the graph implementations. My requirements is such that I need to find out all nodes that are at distance less than 3 from root. For this, I thought of traversing the graph using BFS a…

---

## [Fields\_for in a form\_for\_remote?](https://www.ruby-forum.com/t/fields-for-in-a-form-for-remote/131606)

<div class="topic-metadata">

**Author:** [@murphy](https://www.ruby-forum.com/u/murphy)\
**Replies:** 1\
**Last updated:** [March 11, 2008, 10:58pm UTC](https://www.ruby-forum.com/t/fields-for-in-a-form-for-remote/131606 "2008-03-11T22:58:37Z")

</div>

Can you nest fields\_for in a form\_for\_remote?

---

## [Redirect\_to doesn't work after delivering email](https://www.ruby-forum.com/t/redirect-to-doesnt-work-after-delivering-email/131620)

<div class="topic-metadata">

**Author:** [@hendrata](https://www.ruby-forum.com/u/hendrata)\
**Replies:** 0\
**Last updated:** [March 11, 2008, 10:50pm UTC](https://www.ruby-forum.com/t/redirect-to-doesnt-work-after-delivering-email/131620 "2008-03-11T22:50:55Z")

</div>

Hello, I have this code, and the redirect\_to doesn’t seem to work after I call ActionMailer::deliver\_new. def create … if current\_request.save … group\_users.each do |user| #RequestMailer.deliver\_new(current\_reque…

---

## [Boolean uniq](https://www.ruby-forum.com/t/boolean-uniq/131611)

<div class="topic-metadata">

**Author:** [@murphy](https://www.ruby-forum.com/u/murphy)\
**Replies:** 1\
**Last updated:** [March 11, 2008, 10:43pm UTC](https://www.ruby-forum.com/t/boolean-uniq/131611 "2008-03-11T22:43:54Z")

</div>

is there a method in ruby that returns true or false if an array is unique array.uniq? doesn’t seem to fly

---

## [Shared user model design... many possibilities](https://www.ruby-forum.com/t/shared-user-model-design-many-possibilities/129905)

<div class="topic-metadata">

**Author:** [@maigre](https://www.ruby-forum.com/u/maigre)\
**Replies:** 3\
**Last updated:** [March 11, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/shared-user-model-design-many-possibilities/129905 "2008-03-11T22:42:43Z")

</div>

Hi Got many web applications I wish to bind into a network for a better user experience. The “User” model would then be shared so that any registered user may enjoy all websites without setting the same profile and p…

---

## [Callback on Shutdown](https://www.ruby-forum.com/t/callback-on-shutdown/131616)

<div class="topic-metadata">

**Author:** [@florian](https://www.ruby-forum.com/u/florian)\
**Replies:** 0\
**Last updated:** [March 11, 2008, 10:34pm UTC](https://www.ruby-forum.com/t/callback-on-shutdown/131616 "2008-03-11T22:34:30Z")

</div>

Hey! Im looking for a way to execute cleanup code before a rails instance is shutdown. Is there some kind of callback i can hook into? Something like on\_shutdown…? I tried to search the web, but everything i found re…

---

## [Has\_many :through problem](https://www.ruby-forum.com/t/has-many-through-problem/131581)

<div class="topic-metadata">

**Author:** [@flaubert](https://www.ruby-forum.com/u/flaubert)\
**Replies:** 2\
**Last updated:** [March 11, 2008, 10:06pm UTC](https://www.ruby-forum.com/t/has-many-through-problem/131581 "2008-03-11T22:06:42Z")

</div>

Hello all, I have the following structure, a Profile model which has\_many :knowledges, :through =\> :knowledges\_profiles a Knowledge model has\_many :profiles, :through =\> :knowledges\_profiles and KnowledgeProfile mod…

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

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