# Rails

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

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

---

## [Reloading Cached Classes](https://www.ruby-forum.com/t/reloading-cached-classes/104616)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 0\
**Last updated:** [May 20, 2007, 7:37pm UTC](https://www.ruby-forum.com/t/reloading-cached-classes/104616 "2007-05-20T19:37:56Z")

</div>

Hello: If config.cache\_classes is true, is there a way to demand a reload for a specific class in code? Thanks in advance, Dan

---

## [Restul Controllers with multiple access points](https://www.ruby-forum.com/t/restul-controllers-with-multiple-access-points/104530)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 1\
**Last updated:** [May 20, 2007, 7:15pm UTC](https://www.ruby-forum.com/t/restul-controllers-with-multiple-access-points/104530 "2007-05-20T19:15:53Z")

</div>

I’m trying to solve the same problem outlined in this blog post by Tore Darell. Basically, what’s the best practice for having multiple access points to a nested resource: IE: class User \< ActiveRecord::Base has\_ma…

---

## [2 Quick SQL Questions: Paginate Conditions and Adding to Val](https://www.ruby-forum.com/t/2-quick-sql-questions-paginate-conditions-and-adding-to-val/104612)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 20, 2007, 6:12pm UTC](https://www.ruby-forum.com/t/2-quick-sql-questions-paginate-conditions-and-adding-to-val/104612 "2007-05-20T18:12:07Z")

</div>

I have 2 quick SQL questions that all my googling couldnt come up with an answer Paginate results based on 2 conditions I currently have sorthelper sorting based on title/author. I’d like the option to select based …

---

## [Capistrano windows \<Zlib::buffError\>](https://www.ruby-forum.com/t/capistrano-windows-zlib-bufferror/104590)

<div class="topic-metadata">

**Author:** [@gino](https://www.ruby-forum.com/u/gino)\
**Replies:** 2\
**Last updated:** [May 20, 2007, 5:32pm UTC](https://www.ruby-forum.com/t/capistrano-windows-zlib-bufferror/104590 "2007-05-20T17:32:32Z")

</div>

can’t istall capistrano, it gives me that error, buffer error does anyone knows how to fix this problem, I think that only on windows happens

---

## [RailsPlugins.net launched - find your plugins in a single pl](https://www.ruby-forum.com/t/railsplugins-net-launched-find-your-plugins-in-a-single-pl/104479)

<div class="topic-metadata">

**Author:** [@foobarwidget](https://www.ruby-forum.com/u/foobarwidget)\
**Replies:** 5\
**Last updated:** [May 20, 2007, 5:22pm UTC](https://www.ruby-forum.com/t/railsplugins-net-launched-find-your-plugins-in-a-single-pl/104479 "2007-05-20T17:22:00Z")

</div>

Dear fellow Ruby on Rails developers, I found it cumbersome to search the net for Ruby on Rails plugins that I need, every time I start a new Rails project. Today I launched a new website: http://www.railsplugins.net…

---

## [2 Quick SQL Questions: Paginate Conditions and Adding to Val](https://www.ruby-forum.com/t/2-quick-sql-questions-paginate-conditions-and-adding-to-val/104608)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 20, 2007, 5:14pm UTC](https://www.ruby-forum.com/t/2-quick-sql-questions-paginate-conditions-and-adding-to-val/104608 "2007-05-20T17:14:59Z")

</div>

I have 2 quick SQL questions that all my googling couldnt come up with an answer Paginate results based on 2 conditions I currently have sorthelper sorting based on title/author. I’d like the option to select based …

---

## [Manage of dynamic tables](https://www.ruby-forum.com/t/manage-of-dynamic-tables/104586)

<div class="topic-metadata">

**Author:** [@Neshumah](https://www.ruby-forum.com/u/Neshumah)\
**Replies:** 2\
**Last updated:** [May 20, 2007, 5:03pm UTC](https://www.ruby-forum.com/t/manage-of-dynamic-tables/104586 "2007-05-20T17:03:36Z")

</div>

Hi group, Im new at here and I hope someone could give me a hand, im building an app witch is going to manage big amount of contacts, but my problem is that I need to accept a variety of columns from my customers, so …

---

## [\[test\] assert response or redirect](https://www.ruby-forum.com/t/test-assert-response-or-redirect/104575)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [May 20, 2007, 3:38pm UTC](https://www.ruby-forum.com/t/test-assert-response-or-redirect/104575 "2007-05-20T15:38:48Z")

</div>

I am testing my update action render :update do |page| page.redirect\_to :controller =\> 'proposals', :action =\> 'list' end if I asser a response post :update assert\_response 200 it’s OK but not if I try to a…

---

## [New features in edge?](https://www.ruby-forum.com/t/new-features-in-edge/104561)

<div class="topic-metadata">

**Author:** [@Tomislav\_FilipSSSSi](https://www.ruby-forum.com/u/Tomislav_FilipSSSSi)\
**Replies:** 2\
**Last updated:** [May 20, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/new-features-in-edge/104561 "2007-05-20T15:08:45Z")

</div>

Is there a list of new features that are currently implemented in rails edge?

---

## [Urls](https://www.ruby-forum.com/t/urls/104605)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 2\
**Last updated:** [May 20, 2007, 1:53pm UTC](https://www.ruby-forum.com/t/urls/104605 "2007-05-20T13:53:39Z")

</div>

Hi all, I want to make a site for restaurants. Give them blogs, forum and albums. Since I provide www.restaurantsite.be I would like to put the name of the restaurant between eg. www.restaurantsite.be/nameofrest/ . W…

---

## [Join table attributes piggy backed with has\_many through](https://www.ruby-forum.com/t/join-table-attributes-piggy-backed-with-has-many-through/104597)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 1\
**Last updated:** [May 20, 2007, 1:20pm UTC](https://www.ruby-forum.com/t/join-table-attributes-piggy-backed-with-has-many-through/104597 "2007-05-20T13:20:35Z")

</div>

Is there anyway to get the join table attributes to show up as attributes on the has\_many association when the has\_many is eager loaded. I think the eager loaded part is the gotcha to all this. For example, if I have …

---

## [Beating a dead horse - proper association selection](https://www.ruby-forum.com/t/beating-a-dead-horse-proper-association-selection/104589)

<div class="topic-metadata">

**Author:** [@Frank\_JSMattia](https://www.ruby-forum.com/u/Frank_JSMattia)\
**Replies:** 1\
**Last updated:** [May 20, 2007, 12:26pm UTC](https://www.ruby-forum.com/t/beating-a-dead-horse-proper-association-selection/104589 "2007-05-20T12:26:29Z")

</div>

okay… i have two models employee id username order id number created\_by approved\_by now created\_by and approved\_by are both id’s of employees. in most cases, two different employees. currently i do something lik…

---

## [SVN & Capistrano](https://www.ruby-forum.com/t/svn-capistrano/104595)

<div class="topic-metadata">

**Author:** [@seanstewart](https://www.ruby-forum.com/u/seanstewart)\
**Replies:** 1\
**Last updated:** [May 20, 2007, 10:21am UTC](https://www.ruby-forum.com/t/svn-capistrano/104595 "2007-05-20T10:21:11Z")

</div>

I have my svn repository set up locally and working properly. I followed the instructions for local SVN deployment w/ capistrano (Wolfmans Howlings for-local-svn-access). I am able to connect to my server, however, …

---

## [Scaffold\_resource generator missing](https://www.ruby-forum.com/t/scaffold-resource-generator-missing/104556)

<div class="topic-metadata">

**Author:** [@Dion\_H](https://www.ruby-forum.com/u/Dion_H)\
**Replies:** 3\
**Last updated:** [May 20, 2007, 9:29am UTC](https://www.ruby-forum.com/t/scaffold-resource-generator-missing/104556 "2007-05-20T09:29:07Z")

</div>

Hi there, I have rails 1.2.3 installed but do not have the scaffold\_resource generator, should this be installed by default??? this is all I have: Installed Generators Builtin: controller, integration\_test, mailer, …

---

## [Substitutions without eating newlines](https://www.ruby-forum.com/t/substitutions-without-eating-newlines/104585)

<div class="topic-metadata">

**Author:** [@Whitedot](https://www.ruby-forum.com/u/Whitedot)\
**Replies:** 2\
**Last updated:** [May 20, 2007, 5:58am UTC](https://www.ruby-forum.com/t/substitutions-without-eating-newlines/104585 "2007-05-20T05:58:53Z")

</div>

I’m writing this simple substitution method and I have a providing me with the input text. I have some multiline text: This is a test ok? Which I pass through to my async method in the variable @text. In the metho…

---

## [Join tables, must they be created manually?](https://www.ruby-forum.com/t/join-tables-must-they-be-created-manually/104545)

<div class="topic-metadata">

**Author:** [@mcampbell](https://www.ruby-forum.com/u/mcampbell)\
**Replies:** 4\
**Last updated:** [May 20, 2007, 4:10am UTC](https://www.ruby-forum.com/t/join-tables-must-they-be-created-manually/104545 "2007-05-20T04:10:51Z")

</div>

I’m sure this is a silly question, but I’ve been reading through the agile rails book and no surprises about using join tables so far. But I looked into the rails cookbook and it has this to say on the matter: “The m…

---

## [Development with Rails - Published on a vServer without Rail](https://www.ruby-forum.com/t/development-with-rails-published-on-a-vserver-without-rail/104518)

<div class="topic-metadata">

**Author:** [@Odysseus](https://www.ruby-forum.com/u/Odysseus)\
**Replies:** 2\
**Last updated:** [May 20, 2007, 3:45am UTC](https://www.ruby-forum.com/t/development-with-rails-published-on-a-vserver-without-rail/104518 "2007-05-20T03:45:46Z")

</div>

Hi, I am new to Rails and like it a lot. For publishing I rented a virtual “Ruby” Server where I have access to Ruby modules (http:// Domains, Hosting und Homepage von DomainFactory) but they do not support Rails. (I…

---

## [Sup People, New Rails Rookie . Just a shoutout](https://www.ruby-forum.com/t/sup-people-new-rails-rookie-just-a-shoutout/104588)

<div class="topic-metadata">

**Author:** [@NickonRails](https://www.ruby-forum.com/u/NickonRails)\
**Replies:** 0\
**Last updated:** [May 20, 2007, 3:25am UTC](https://www.ruby-forum.com/t/sup-people-new-rails-rookie-just-a-shoutout/104588 "2007-05-20T03:25:44Z")

</div>

Just wanted to drop the group a line and introduce myself. I’m a Rails rookie but I look forward to contributing while I’m here. Im still learnin’ the ins and outs but I’m really friggin committed to learnin this an…

---

## [Can Rails have views with restricted execution?](https://www.ruby-forum.com/t/can-rails-have-views-with-restricted-execution/104038)

<div class="topic-metadata">

**Author:** [@maurice-gladwell](https://www.ruby-forum.com/u/maurice-gladwell)\
**Replies:** 5\
**Last updated:** [May 20, 2007, 3:16am UTC](https://www.ruby-forum.com/t/can-rails-have-views-with-restricted-execution/104038 "2007-05-20T03:16:43Z")

</div>

Is there a restricted execution solution that works with ERb or any other Rails templating format? I’m writing a CMS and would like to allow my users to execute a very limited set of methods. Specifically, I’d like to…

---

## [Form question](https://www.ruby-forum.com/t/form-question/104580)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 3\
**Last updated:** [May 20, 2007, 2:57am UTC](https://www.ruby-forum.com/t/form-question/104580 "2007-05-20T02:57:42Z")

</div>

Suppose I have the following models/migrations: class Car \< ActiveRecord::Base belongs\_to :manufacturer validates\_presence\_of :manufacturer validates\_association :manufacturer end class CreateCars \< ActiveRecord::M…

---

## [Initializing a multidimensional array](https://www.ruby-forum.com/t/initializing-a-multidimensional-array/104488)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 1\
**Last updated:** [May 20, 2007, 2:42am UTC](https://www.ruby-forum.com/t/initializing-a-multidimensional-array/104488 "2007-05-20T02:42:42Z")

</div>

i have a plain old array initialized like this: @columns = Array.new this array needs to be an array of arrays… how do i tell ruby that this is an array of arrays? what i want to do is something like this: @columns\[…

---

## [\[ANN\] pretty\_accessible\_form plugin](https://www.ruby-forum.com/t/ann-pretty-accessible-form-plugin/104587)

<div class="topic-metadata">

**Author:** [@Matthew\_KSWilliams](https://www.ruby-forum.com/u/Matthew_KSWilliams)\
**Replies:** 0\
**Last updated:** [May 20, 2007, 2:38am UTC](https://www.ruby-forum.com/t/ann-pretty-accessible-form-plugin/104587 "2007-05-20T02:38:41Z")

</div>

The pretty\_accessible\_form plugin is a an attempt to implement A List Apart’s “Prettier Accessible Forms” ( Prettier Accessible Forms – A List Apart ) as a form tag. You can read more about it at http://subvertingth…

---

## [How to output HTML in a view within a \<% %\> (not a \<%= %\> )](https://www.ruby-forum.com/t/how-to-output-html-in-a-view-within-a-not-a/104554)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 9\
**Last updated:** [May 20, 2007, 12:57am UTC](https://www.ruby-forum.com/t/how-to-output-html-in-a-view-within-a-not-a/104554 "2007-05-20T00:57:36Z")

</div>

Hi, How can I output/render text within a view, but within a block of ruby code that is surrounded by \<% %\> ? I know that use of \<%= %\> works, but if I have several lines of ruby in the view that is within \<% %\> …

---

## [Enterprise and Legacy Database support](https://www.ruby-forum.com/t/enterprise-and-legacy-database-support/104584)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 0\
**Last updated:** [May 19, 2007, 11:26pm UTC](https://www.ruby-forum.com/t/enterprise-and-legacy-database-support/104584 "2007-05-19T23:26:30Z")

</div>

Folk, I ran a Birds-Of-a-Feather (BOF) session at RailsConf2007 on this subject on Thursday evening. It was enthusiastically received, and the attendees were keen to continue communicating and collaborating. We deci…

---

## [PUT recognized as GET](https://www.ruby-forum.com/t/put-recognized-as-get/104578)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 3\
**Last updated:** [May 19, 2007, 10:25pm UTC](https://www.ruby-forum.com/t/put-recognized-as-get/104578 "2007-05-19T22:25:33Z")

</div>

I am getting mad. Here are two requests which should be PUT, but one is and not the other. I do not understand why. They come from two different forms. Processing NodesController#show (for …) \[GET\] Session ID: … Par…

---

## [How to ignore :type in some cases? (when I don't want STI)](https://www.ruby-forum.com/t/how-to-ignore-type-in-some-cases-when-i-dont-want-sti/104175)

<div class="topic-metadata">

**Author:** [@fraser\_c](https://www.ruby-forum.com/u/fraser_c)\
**Replies:** 2\
**Last updated:** [May 19, 2007, 7:36pm UTC](https://www.ruby-forum.com/t/how-to-ignore-type-in-some-cases-when-i-dont-want-sti/104175 "2007-05-19T19:36:06Z")

</div>

Hi, I have a model Member containing details such as name, address, phone, etc. There are various approval stages for new and changed members so I need a few extra models based on member, some can use STI, some I’d …

---

## [Capistrano installation error--Zlib buffer error](https://www.ruby-forum.com/t/capistrano-installation-error-zlib-buffer-error/104562)

<div class="topic-metadata">

**Author:** [@Myron\_M](https://www.ruby-forum.com/u/Myron_M)\
**Replies:** 3\
**Last updated:** [May 19, 2007, 6:33pm UTC](https://www.ruby-forum.com/t/capistrano-installation-error-zlib-buffer-error/104562 "2007-05-19T18:33:00Z")

</div>

I’m trying to install Capistrano. When I run gem install Capistrano –include-dependencies, I get the following error: ERROR: While executing gem … (Zlib::BufError) buffer error Anyone got any ideas what’s causing t…

---

## [Should i be worrying](https://www.ruby-forum.com/t/should-i-be-worrying/104570)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 19, 2007, 6:29pm UTC](https://www.ruby-forum.com/t/should-i-be-worrying/104570 "2007-05-19T18:29:05Z")

</div>

Hi i’m setting up my production server and after installing ruby and rails and lighttpd and mysql. Everything seems to be working relatively well. I have made small test app and it seems to work perfectly accessing th…

---

## [Receive Money to Surf in the Internet By Community](https://www.ruby-forum.com/t/receive-money-to-surf-in-the-internet-by-community/104569)

<div class="topic-metadata">

**Author:** [@johnny](https://www.ruby-forum.com/u/johnny)\
**Replies:** 0\
**Last updated:** [May 19, 2007, 6:00pm UTC](https://www.ruby-forum.com/t/receive-money-to-surf-in-the-internet-by-community/104569 "2007-05-19T18:00:54Z")

</div>

How do I earn cash and shares? Sign up, use the web as usual and earn cash and shares - it really is that simple. Once you install the Viewbar software it automatically records the time you’re actively online, and w…

---

## [Get data from multiple models](https://www.ruby-forum.com/t/get-data-from-multiple-models/104559)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 2\
**Last updated:** [May 19, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/get-data-from-multiple-models/104559 "2007-05-19T17:27:51Z")

</div>

Hi all, I have a model Post and a model User. The post has a user\_id foreign key. What is the best way (railsway) to get all the posts from 1 user? Like user = User.find(id) posts = user.Node.find() This doesn’t wo…

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

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