# Rails

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

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

---

## [Subject](https://www.ruby-forum.com/t/subject/156555)

<div class="topic-metadata">

**Author:** [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Replies:** 0\
**Last updated:** [December 30, 2008, 12:01am UTC](https://www.ruby-forum.com/t/subject/156555 "2008-12-30T00:01:47Z")

</div>

text

---

## [Installing Plugins Offline?](https://www.ruby-forum.com/t/installing-plugins-offline/156505)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 6\
**Last updated:** [December 29, 2008, 11:36pm UTC](https://www.ruby-forum.com/t/installing-plugins-offline/156505 "2008-12-29T23:36:14Z")

</div>

How would I go about installing rails plugins offline? I cannot connect to the web on my work computer, though I have a dedicated internet machine for downloads and such. Thanks

---

## [SQL tool](https://www.ruby-forum.com/t/sql-tool/156530)

<div class="topic-metadata">

**Author:** [@vanight](https://www.ruby-forum.com/u/vanight)\
**Replies:** 1\
**Last updated:** [December 29, 2008, 10:13pm UTC](https://www.ruby-forum.com/t/sql-tool/156530 "2008-12-29T22:13:02Z")

</div>

Hi, I’m looking for a tools under windows that can draw a SQL map using a sql file and ruby convention. So relations are kept and I can get a nice gif or jpeg file with my DB schema. Thanks :slight\_smile:

---

## [Expires\_in with fragment-caching](https://www.ruby-forum.com/t/expires-in-with-fragment-caching/156527)

<div class="topic-metadata">

**Author:** [@sigma](https://www.ruby-forum.com/u/sigma)\
**Replies:** 4\
**Last updated:** [December 29, 2008, 10:11pm UTC](https://www.ruby-forum.com/t/expires-in-with-fragment-caching/156527 "2008-12-29T22:11:16Z")

</div>

Hi all Is it posible do have a expires\_in with fragment-caching? Does this work with memcached? Thank you for your aswers! Chris

---

## [Write a xml file to the public folder possible?](https://www.ruby-forum.com/t/write-a-xml-file-to-the-public-folder-possible/112563)

<div class="topic-metadata">

**Author:** [@qwerty669](https://www.ruby-forum.com/u/qwerty669)\
**Replies:** 3\
**Last updated:** [December 29, 2008, 10:02pm UTC](https://www.ruby-forum.com/t/write-a-xml-file-to-the-public-folder-possible/112563 "2008-12-29T22:02:28Z")

</div>

Hello, im generating xml data without problems when working as a web service(accesing from the action), but i cant figure it out how to instead of showing that xml data in the browser it gets writed on a xml in the p…

---

## [Your thoughts on "Enterprise Rails"](https://www.ruby-forum.com/t/your-thoughts-on-enterprise-rails/156476)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 7\
**Last updated:** [December 29, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/your-thoughts-on-enterprise-rails/156476 "2008-12-29T21:27:50Z")

</div>

Hello and happy holidays, everyone! I received the book “Enterprise Rails” by Dan Chak as a Christmas gift and started reading it; I wanted to gauge the community’s thoughts on this. Basically, Mr. Chak advocates a t…

---

## [ApplicationController: understanding generate scaffold](https://www.ruby-forum.com/t/applicationcontroller-understanding-generate-scaffold/156534)

<div class="topic-metadata">

**Author:** [@sackerson](https://www.ruby-forum.com/u/sackerson)\
**Replies:** 4\
**Last updated:** [December 29, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/applicationcontroller-understanding-generate-scaffold/156534 "2008-12-29T20:43:53Z")

</div>

I’m new to Rails and I’m trying to understand the code created by generate scaffold. I’m using Rails 2.2.2. $ ./script/generate scaffold Task description:string generated the following code in app/controller/tasks\_co…

---

## [Member on has\_one or has\_many](https://www.ruby-forum.com/t/member-on-has-one-or-has-many/156543)

<div class="topic-metadata">

**Author:** [@Freddy\_A](https://www.ruby-forum.com/u/Freddy_A)\
**Replies:** 0\
**Last updated:** [December 29, 2008, 7:55pm UTC](https://www.ruby-forum.com/t/member-on-has-one-or-has-many/156543 "2008-12-29T19:55:12Z")

</div>

Hi, I was wondering if it is possible todo something like this in the routes file: map.namespace(:admin) do |admin| admin.resources :dashboard, :only =\> \[ :index \], :has\_one =\> :something, :member =\> \[ :action =\> :g…

---

## [Text\_field or text\_field\_tag](https://www.ruby-forum.com/t/text-field-or-text-field-tag/156542)

<div class="topic-metadata">

**Author:** [@zero0x](https://www.ruby-forum.com/u/zero0x)\
**Replies:** 0\
**Last updated:** [December 29, 2008, 7:32pm UTC](https://www.ruby-forum.com/t/text-field-or-text-field-tag/156542 "2008-12-29T19:32:11Z")

</div>

Hi, I’m watching Ryan B.’ forms screencast #1, and he says that I should use text\_field when I’m updating an object, otherwise text\_field\_tag. How about this: I’m looping through each row of a table and displaying f…

---

## [Attachment\_fu and mysql (server has gone away)](https://www.ruby-forum.com/t/attachment-fu-and-mysql-server-has-gone-away/156537)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 0\
**Last updated:** [December 29, 2008, 7:03pm UTC](https://www.ruby-forum.com/t/attachment-fu-and-mysql-server-has-gone-away/156537 "2008-12-29T19:03:22Z")

</div>

I have a problem with my hosting “hostgator” In my site i have a section for photos upload. For manage it i use attachment\_fu. In the action of upload i do some simple query. If the file to upload is smaller than 1mb…

---

## [Will\_paginate working in the opposite way expected](https://www.ruby-forum.com/t/will-paginate-working-in-the-opposite-way-expected/156443)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [December 29, 2008, 6:36pm UTC](https://www.ruby-forum.com/t/will-paginate-working-in-the-opposite-way-expected/156443 "2008-12-29T18:36:34Z")

</div>

Hi, I am creating a little blogging engine, so I want the most recent posts to display first, so I make a search with :order =\> ‘created\_at DESC’ For some reason, will\_paginate works the opposite way I expect it to be…

---

## [Passing a collection to a form partial](https://www.ruby-forum.com/t/passing-a-collection-to-a-form-partial/156524)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 2\
**Last updated:** [December 29, 2008, 3:16pm UTC](https://www.ruby-forum.com/t/passing-a-collection-to-a-form-partial/156524 "2008-12-29T15:16:38Z")

</div>

I’m trying to create an editable table by rendering a partial containing a form. In the index: \<%= render :partial =\> 'product\_edit', :collection =\> @products %\> In the partial: \<% form\_for :product do |f| %\> …

---

## [Failing to render RJS](https://www.ruby-forum.com/t/failing-to-render-rjs/156507)

<div class="topic-metadata">

**Author:** [@toro04](https://www.ruby-forum.com/u/toro04)\
**Replies:** 2\
**Last updated:** [December 29, 2008, 1:59pm UTC](https://www.ruby-forum.com/t/failing-to-render-rjs/156507 "2008-12-29T13:59:26Z")

</div>

My code looks like the following, but for some reason the rjs template (index.js.erb) is not being rendered. I’ve also tried naming the rjs file index.js.rjs with no luck. home\_controller.rb: def index respond\_to d…

---

## [Question about "partial controllers" sub-applicaktions](https://www.ruby-forum.com/t/question-about-partial-controllers-sub-applicaktions/156278)

<div class="topic-metadata">

**Author:** [@html-kurs](https://www.ruby-forum.com/u/html-kurs)\
**Replies:** 2\
**Last updated:** [December 29, 2008, 1:44pm UTC](https://www.ruby-forum.com/t/question-about-partial-controllers-sub-applicaktions/156278 "2008-12-29T13:44:44Z")

</div>

Hello, I’ve got two questions about best practices using Ruby on Rails: First, think about a website which has several relative independant parts: Some news, some dates of fairs, some jobs and so on. Using the “RoR-f…

---

## [One layout for entire apps](https://www.ruby-forum.com/t/one-layout-for-entire-apps/156462)

<div class="topic-metadata">

**Author:** [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Replies:** 4\
**Last updated:** [December 29, 2008, 12:33pm UTC](https://www.ruby-forum.com/t/one-layout-for-entire-apps/156462 "2008-12-29T12:33:08Z")

</div>

Dear all, I am still new in rails, and I realised that in rails each model has its own layout/template located under layouts/ Now my question is, is it possible to have only one layout for the entire apps instead of …

---

## [Dont cache a variable in action](https://www.ruby-forum.com/t/dont-cache-a-variable-in-action/156522)

<div class="topic-metadata">

**Author:** [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Replies:** 0\
**Last updated:** [December 29, 2008, 12:25pm UTC](https://www.ruby-forum.com/t/dont-cache-a-variable-in-action/156522 "2008-12-29T12:25:22Z")

</div>

Hi I m facing a unique problem. I have a method which i m caching through caches\_action but in that i have one variable which i dont want to cache… To be specific i m using paging and if i cache the page my paginatio…

---

## [RailsXls Plugin Not Working](https://www.ruby-forum.com/t/railsxls-plugin-not-working/156439)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 1\
**Last updated:** [December 29, 2008, 12:24pm UTC](https://www.ruby-forum.com/t/railsxls-plugin-not-working/156439 "2008-12-29T12:24:19Z")

</div>

Hi, I am using RailsXls Plugin to generate Excel Reports I am using Rails 2.1.2 Version I Have installed Jdk 1.5 Also I am getting this error when i am trying to start my webrick server rails/activesupport/lib/activ…

---

## [Newbie Join-Model Misery](https://www.ruby-forum.com/t/newbie-join-model-misery/148752)

<div class="topic-metadata">

**Author:** [@arichards](https://www.ruby-forum.com/u/arichards)\
**Replies:** 12\
**Last updated:** [December 29, 2008, 11:41am UTC](https://www.ruby-forum.com/t/newbie-join-model-misery/148752 "2008-12-29T11:41:28Z")

</div>

Being a rails newbie, I appear to have hit a large wall. I am trying to create an online gradebook using rails, where I and other teachers at my school can record students’ grades for all their homework assignments. s…

---

## [Rails Migration Question](https://www.ruby-forum.com/t/rails-migration-question/156518)

<div class="topic-metadata">

**Author:** [@anilbhat21](https://www.ruby-forum.com/u/anilbhat21)\
**Replies:** 1\
**Last updated:** [December 29, 2008, 11:34am UTC](https://www.ruby-forum.com/t/rails-migration-question/156518 "2008-12-29T11:34:57Z")

</div>

Can anyone help me in this: Given the following database migration: class DefineDatabase \< ActiveRecord::Migration def self.up create\_table "products" do |t| t.column "name", :string t.column "price\_…

---

## [Restful authentication refactoring](https://www.ruby-forum.com/t/restful-authentication-refactoring/156492)

<div class="topic-metadata">

**Author:** [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Replies:** 1\
**Last updated:** [December 29, 2008, 11:02am UTC](https://www.ruby-forum.com/t/restful-authentication-refactoring/156492 "2008-12-29T11:02:41Z")

</div>

Hi guys, this is more an RFC then a request for help … this is the code generated by restful authentication: def create logout\_keeping\_session! @user = User.new(params\[:user\]) @user.register! if @user && @user.valid?…

---

## [A CSS issue](https://www.ruby-forum.com/t/a-css-issue/156491)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 12\
**Last updated:** [December 29, 2008, 11:01am UTC](https://www.ruby-forum.com/t/a-css-issue/156491 "2008-12-29T11:01:23Z")

</div>

Hey, This question is actually more of a css issue than anything I believe. Hopefully that is alright, I have been posting my questions on here for a while and figure most of the rails community is probably familiar…

---

## [(Jobs): Looking for Ruby on Rails programmers and Testers for Milan, Italy and India projects](https://www.ruby-forum.com/t/jobs-looking-for-ruby-on-rails-programmers-and-testers-for-milan-italy-and-india-projects/156510)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 29, 2008, 9:58am UTC](https://www.ruby-forum.com/t/jobs-looking-for-ruby-on-rails-programmers-and-testers-for-milan-italy-and-india-projects/156510 "2008-12-29T09:58:14Z")

</div>

Blackbirds, italian IT consultancy is looking for IT consultants with at least 2 years of experience on framework Ruby on Rails, Python, SQL, Javascript for a project in Milan, Italy and India starting on February 20…

---

## [Cannot open ActiveRecord::Migration: No such file](https://www.ruby-forum.com/t/cannot-open-activerecord-no-such-file/156509)

<div class="topic-metadata">

**Author:** [@vishnu](https://www.ruby-forum.com/u/vishnu)\
**Replies:** 0\
**Last updated:** [December 29, 2008, 9:57am UTC](https://www.ruby-forum.com/t/cannot-open-activerecord-no-such-file/156509 "2008-12-29T09:57:38Z")

</div>

Hi… i encounter a problem while running the migration script. ( ie db/migrate/20081229062613\_create\_posts.rb) . when the command is executed i encounter the following error. “cannot open ActiveRecord::Migration: No su…

---

## [Acts\_as\_versioned and rails 2.2.2](https://www.ruby-forum.com/t/acts-as-versioned-and-rails-2-2-2/154531)

<div class="topic-metadata">

**Author:** [@emuen](https://www.ruby-forum.com/u/emuen)\
**Replies:** 3\
**Last updated:** [December 29, 2008, 9:33am UTC](https://www.ruby-forum.com/t/acts-as-versioned-and-rails-2-2-2/154531 "2008-12-29T09:33:06Z")

</div>

Hi people I have tried to install the acts\_as\_versioned gem from github in rails 2.2.2 but it seems to conflict with some methods in the activerecords dirty.rb-file. I can solve some of the problem by changing code in…

---

## [RailsXls Plugin Not Working With Rails(2.0.2,2.1.0,2.1.2)](https://www.ruby-forum.com/t/railsxls-plugin-not-working-with-rails-2-0-2-2-1-0-2-1-2/156503)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 0\
**Last updated:** [December 29, 2008, 8:09am UTC](https://www.ruby-forum.com/t/railsxls-plugin-not-working-with-rails-2-0-2-2-1-0-2-1-2/156503 "2008-12-29T08:09:54Z")

</div>

Hi, I am using RailsXls Plugin to generate Excel Reports from Query Results in a Database I am using the Latest version of RailsXls I am using Rails 2.1.0.I Have Downloaded the Jdk Version 5.0.The other dependency J…

---

## [2.2.2 simple\_captcha upgrade error](https://www.ruby-forum.com/t/2-2-2-simple-captcha-upgrade-error/156461)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 7\
**Last updated:** [December 29, 2008, 6:35am UTC](https://www.ruby-forum.com/t/2-2-2-simple-captcha-upgrade-error/156461 "2008-12-29T06:35:10Z")

</div>

So thanks to Craig, i got up and running on rails 2.2.2, though now i’m dealing with a whole new can of worms. I’ve done a good bit o searching and haven’t found any solid leads. I’m using the simple\_captcha plugin on…

---

## [Module Issue](https://www.ruby-forum.com/t/module-issue/156485)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 2\
**Last updated:** [December 29, 2008, 12:40am UTC](https://www.ruby-forum.com/t/module-issue/156485 "2008-12-29T00:40:21Z")

</div>

If I have a module that looks like this: module Mymod require ‘cgi’ params=CGI.new end and I call a particular webpage like this: http://www.mydomain.com/test1.html?test=value and the particular web page has code …

---

## [RJS form validation](https://www.ruby-forum.com/t/rjs-form-validation/156490)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 0\
**Last updated:** [December 28, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/rjs-form-validation/156490 "2008-12-28T22:16:36Z")

</div>

Hi. I’m trying to add and validate objects using RJS. I have a page where if a user clicks on a link a form partial is inserted via javascript(depending on the click). If that form is valid I would like to remove it …

---

## [Best way to automatically format model entries](https://www.ruby-forum.com/t/best-way-to-automatically-format-model-entries/156412)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 1\
**Last updated:** [December 28, 2008, 9:26pm UTC](https://www.ruby-forum.com/t/best-way-to-automatically-format-model-entries/156412 "2008-12-28T21:26:12Z")

</div>

Using rails 2.1.0 I have a really nasty bit of code in my controller in my create action that i would like to move to my model: params\[:phrase\]\[“word”\] = params\[:phrase\]\[“word”\].strip.squeeze(" ") if params\[:phrase\]\[“…

---

## [Finding items in a Join Table](https://www.ruby-forum.com/t/finding-items-in-a-join-table/156482)

<div class="topic-metadata">

**Author:** [@Rembrant](https://www.ruby-forum.com/u/Rembrant)\
**Replies:** 1\
**Last updated:** [December 28, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/finding-items-in-a-join-table/156482 "2008-12-28T20:12:57Z")

</div>

Dear readers, I’m very new to RoR, I walked trough the Agile Web D. With Rails book, but I still got stuck. I’m trained as a designer, so coding isn’t really my branch but I try to get by. Anyways, here is my questio…

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

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