# Rails

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

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

---

## [Sudo gem install problem](https://www.ruby-forum.com/t/sudo-gem-install-problem/119853)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 3\
**Last updated:** [November 11, 2007, 12:50pm UTC](https://www.ruby-forum.com/t/sudo-gem-install-problem/119853 "2007-11-11T12:50:40Z")

</div>

If I do a gem install with no sudo I get a permission denied… If I do a sudo gem install I get “sudo: gem: command not found” Im running Ubuntu feidty fawn with the rminstall stack Any ideas? Cheers Giorgio

---

## [2 "newbie questions"](https://www.ruby-forum.com/t/2-newbie-questions/119855)

<div class="topic-metadata">

**Author:** [@vincent](https://www.ruby-forum.com/u/vincent)\
**Replies:** 4\
**Last updated:** [November 11, 2007, 12:00pm UTC](https://www.ruby-forum.com/t/2-newbie-questions/119855 "2007-11-11T12:00:42Z")

</div>

Hello - Being new to Ruby and Rails I am finding some hurdles that kind of slow my progress. What is the difference between the 2 statements: staff = Staff.find(params\[:id\]) and @staff = Staff.find(params\[:id\]) I…

---

## [\[ANN\] Rails 2.0: Release Candidate 1](https://www.ruby-forum.com/t/ann-rails-2-0-release-candidate-1/119751)

<div class="topic-metadata">

**Author:** [@DHH](https://www.ruby-forum.com/u/DHH)\
**Replies:** 3\
**Last updated:** [November 11, 2007, 11:19am UTC](https://www.ruby-forum.com/t/ann-rails-2-0-release-candidate-1/119751 "2007-11-11T11:19:01Z")

</div>

We’re almost there. Really this time.

---

## [Repeat two blocks of code of same db under dif conditions](https://www.ruby-forum.com/t/repeat-two-blocks-of-code-of-same-db-under-dif-conditions/119849)

<div class="topic-metadata">

**Author:** [@jakedgr8](https://www.ruby-forum.com/u/jakedgr8)\
**Replies:** 0\
**Last updated:** [November 11, 2007, 9:36am UTC](https://www.ruby-forum.com/t/repeat-two-blocks-of-code-of-same-db-under-dif-conditions/119849 "2007-11-11T09:36:34Z")

</div>

I have some images connected with some db settings in my app. I want to get all the images from DB into two different section, one for screenshots and one for wallpapers. In the db, each image has an attribute image\_t…

---

## [Printing save error](https://www.ruby-forum.com/t/printing-save-error/119814)

<div class="topic-metadata">

**Author:** [@Gandalf](https://www.ruby-forum.com/u/Gandalf)\
**Replies:** 1\
**Last updated:** [November 11, 2007, 8:13am UTC](https://www.ruby-forum.com/t/printing-save-error/119814 "2007-11-11T08:13:19Z")

</div>

Hi, I am new to Ruby and am facing issue while debugging a bug in my rails application. When I am trying to save an object, an error is encountered. I am not sure how to view the errors. Any help is appreciated. Her…

---

## [Generate scaffold on multiple tables](https://www.ruby-forum.com/t/generate-scaffold-on-multiple-tables/119839)

<div class="topic-metadata">

**Author:** [@slindsey3000](https://www.ruby-forum.com/u/slindsey3000)\
**Replies:** 1\
**Last updated:** [November 11, 2007, 7:44am UTC](https://www.ruby-forum.com/t/generate-scaffold-on-multiple-tables/119839 "2007-11-11T07:44:40Z")

</div>

Hey all, newbie question, quick one. I know you can do “generate scaffold modelname modelcontroller” How can I genereate a scaffold for multiple models with 1 controller? e.g. I have 3 tables and want to admin them al…

---

## [Help refactoring a multi-page process](https://www.ruby-forum.com/t/help-refactoring-a-multi-page-process/119846)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 0\
**Last updated:** [November 11, 2007, 7:23am UTC](https://www.ruby-forum.com/t/help-refactoring-a-multi-page-process/119846 "2007-11-11T07:23:38Z")

</div>

We have been working on an application for a call center where calls are scripted for phone operators. Upon receiving a phone call, the operator is presented with a screen that tells them what to say, and what inform…

---

## [Display data from remote mysql database](https://www.ruby-forum.com/t/display-data-from-remote-mysql-database/119835)

<div class="topic-metadata">

**Author:** [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Replies:** 2\
**Last updated:** [November 11, 2007, 6:30am UTC](https://www.ruby-forum.com/t/display-data-from-remote-mysql-database/119835 "2007-11-11T06:30:10Z")

</div>

Hi, I’m new to Ruby on Rails and have a little problem. I currently have a mysql database on a separate server than the one I’m building and running rails apps on. Is it possible to query the remote database and dis…

---

## [SQL/Model for Customers Who Bought This Item Also Bought](https://www.ruby-forum.com/t/sql-model-for-customers-who-bought-this-item-also-bought/119815)

<div class="topic-metadata">

**Author:** [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Replies:** 1\
**Last updated:** [November 11, 2007, 6:01am UTC](https://www.ruby-forum.com/t/sql-model-for-customers-who-bought-this-item-also-bought/119815 "2007-11-11T06:01:17Z")

</div>

Hello. We have a decent size Rails application that has worked great for us using ActiveRecord with minimal custom SQL here and there. However, now we need to develop a feature very similar to Amazon’s “Customers Who …

---

## [Dynamic Routing](https://www.ruby-forum.com/t/dynamic-routing/119838)

<div class="topic-metadata">

**Author:** [@Matthew\_Swasey](https://www.ruby-forum.com/u/Matthew_Swasey)\
**Replies:** 0\
**Last updated:** [November 11, 2007, 5:25am UTC](https://www.ruby-forum.com/t/dynamic-routing/119838 "2007-11-11T05:25:05Z")

</div>

I need to do some dynamic routing in my application. It’s a CMS type- application, so it needs to allow for users to create their own pages. Heres what I was doing before: config/routes.rb map.connect “\*path”, :cont…

---

## [Trackback plugin](https://www.ruby-forum.com/t/trackback-plugin/119824)

<div class="topic-metadata">

**Author:** [@escoz](https://www.ruby-forum.com/u/escoz)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 11:37pm UTC](https://www.ruby-forum.com/t/trackback-plugin/119824 "2007-11-10T23:37:02Z")

</div>

Hi guys! By any change, would anybody know/recommend a plugin to implement Trackbacks on my website? Thanks! Eduardo S. http://www.mapia.com.br ← In rails! :slight\_smile:

---

## [So confused -- logging in](https://www.ruby-forum.com/t/so-confused-logging-in/119808)

<div class="topic-metadata">

**Author:** [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Replies:** 3\
**Last updated:** [November 10, 2007, 9:38pm UTC](https://www.ruby-forum.com/t/so-confused-logging-in/119808 "2007-11-10T21:38:11Z")

</div>

I’ve spent hours on this, and I can’t figure it out. I’m trying to create a simple login system. Here’s my accounts controller. class AccountsController \< ApplicationController ssl\_required :login def login if !(para…

---

## [Automatic data filtering](https://www.ruby-forum.com/t/automatic-data-filtering/119810)

<div class="topic-metadata">

**Author:** [@nelson](https://www.ruby-forum.com/u/nelson)\
**Replies:** 1\
**Last updated:** [November 10, 2007, 9:12pm UTC](https://www.ruby-forum.com/t/automatic-data-filtering/119810 "2007-11-10T21:12:45Z")

</div>

hi all. I’m doing an app that have to le the user to show only the data that belongs to a single year (the user can select this sort of filtering interactively through a combo box ). I have to make this filtering sele…

---

## [Rails byte-range request support](https://www.ruby-forum.com/t/rails-byte-range-request-support/119590)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 5\
**Last updated:** [November 10, 2007, 8:43pm UTC](https://www.ruby-forum.com/t/rails-byte-range-request-support/119590 "2007-11-10T20:43:58Z")

</div>

Hi, I’m trying to serve the iPhone a video file from my controller using send\_file. However, it appears as thought the iPhone requires byte- range request support and rails doesn’t seem to support this. If I give the…

---

## [Onsubmit continues after return false](https://www.ruby-forum.com/t/onsubmit-continues-after-return-false/119807)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 1\
**Last updated:** [November 10, 2007, 7:55pm UTC](https://www.ruby-forum.com/t/onsubmit-continues-after-return-false/119807 "2007-11-10T19:55:58Z")

</div>

Hi, I have something really weird going on. In this form header: \<% form\_for(:task,:url =\> tasks\_path, :html =\> { :onsubmit =\> ‘validate\_task();’, :id =\> “new\_task” }) do |f| %\> I call “validate\_task” to validate som…

---

## [PGP file encryption](https://www.ruby-forum.com/t/pgp-file-encryption/119731)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 1\
**Last updated:** [November 10, 2007, 7:44pm UTC](https://www.ruby-forum.com/t/pgp-file-encryption/119731 "2007-11-10T19:44:49Z")

</div>

I’ve need to automate file encryption using PGP. Has anyone had any experiences with this that they can share? I’m having difficulty searching for this because of so many PGP signatures on posts. Thanks much.

---

## [Weekly scheduling calendar](https://www.ruby-forum.com/t/weekly-scheduling-calendar/119802)

<div class="topic-metadata">

**Author:** [@brupm](https://www.ruby-forum.com/u/brupm)\
**Replies:** 1\
**Last updated:** [November 10, 2007, 5:42pm UTC](https://www.ruby-forum.com/t/weekly-scheduling-calendar/119802 "2007-11-10T17:42:51Z")

</div>

Hi guys, I need to build a weekly scheduling calendar that resembles the one below: Basically I need to be able to show events based on date and time in a week, some events will take longer than 1 Unit, so they nee…

---

## [SessionExpiration plugin experience?](https://www.ruby-forum.com/t/sessionexpiration-plugin-experience/119798)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 5:37pm UTC](https://www.ruby-forum.com/t/sessionexpiration-plugin-experience/119798 "2007-11-10T17:37:35Z")

</div>

Anybody got any experience with the SessionExpiration plugin? I’m wondering how it works. Specifically, does it tie up a mongrel for the timeout period? Thanks, Bill

---

## [Find or create RESTfully](https://www.ruby-forum.com/t/find-or-create-restfully/119797)

<div class="topic-metadata">

**Author:** [@pallan](https://www.ruby-forum.com/u/pallan)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/find-or-create-restfully/119797 "2007-11-10T17:29:57Z")

</div>

Hi all, I am building a system and trying to do it RESTfully using the new and improved Rails 2.0RC1 and I am not sure how to structure a find or create action. Basically, I want a user to be able to add a line item …

---

## [Weekly calendar](https://www.ruby-forum.com/t/weekly-calendar/118704)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [November 10, 2007, 5:24pm UTC](https://www.ruby-forum.com/t/weekly-calendar/118704 "2007-11-10T17:24:50Z")

</div>

Am Montag, den 29.10.2007, 18:56 -0400 schrieb Rick DeNatale: On 10/29/07, removed\_email\_address@domain.invalid removed\_email\_address@domain.invalid wrote: Hi, we work on a reservation system for machines. customers…

---

## [Options for distributed architecture](https://www.ruby-forum.com/t/options-for-distributed-architecture/119795)

<div class="topic-metadata">

**Author:** [@tobynicholas](https://www.ruby-forum.com/u/tobynicholas)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/options-for-distributed-architecture/119795 "2007-11-10T16:41:38Z")

</div>

Apologies for the long post! I’m working on an application which is standard Rails fare: database-centric, hosted, with RESTful (-ish!) controllers exposing methods as web services. Nothing out of the ordinary. But a…

---

## [Sympact Technologies thanks the Ruby Forum Community](https://www.ruby-forum.com/t/sympact-technologies-thanks-the-ruby-forum-community/119794)

<div class="topic-metadata">

**Author:** [@eblatt](https://www.ruby-forum.com/u/eblatt)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 4:32pm UTC](https://www.ruby-forum.com/t/sympact-technologies-thanks-the-ruby-forum-community/119794 "2007-11-10T16:32:22Z")

</div>

Sympact Technologies thanks the Ruby Forum Community Yesterday, the three of us at Sympact Technologies completed our first release of http://www.bokayme.com. Bokayme is a deployment of our web-based image customizat…

---

## [Where do I define a method so it's available to all models?](https://www.ruby-forum.com/t/where-do-i-define-a-method-so-its-available-to-all-models/119766)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 8\
**Last updated:** [November 10, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/where-do-i-define-a-method-so-its-available-to-all-models/119766 "2007-11-10T16:15:38Z")

</div>

I’m trying to define a method that will be available to all Models. I originally put it in the ApplicationHelper file, but I now understand that this is only available to Views. Where do I put a common model method th…

---

## [Updade distinct model objects in different situations](https://www.ruby-forum.com/t/updade-distinct-model-objects-in-different-situations/119786)

<div class="topic-metadata">

**Author:** [@Ranieri\_T](https://www.ruby-forum.com/u/Ranieri_T)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 2:41pm UTC](https://www.ruby-forum.com/t/updade-distinct-model-objects-in-different-situations/119786 "2007-11-10T14:41:25Z")

</div>

Hi, I’m writting a rails app to manage mp3 files online. I want to updade distinct model objects in different situations. When an user go to save a new record, I code the controller to save all fields to DB, withou…

---

## [Wrapper Helper Help Please](https://www.ruby-forum.com/t/wrapper-helper-help-please/119775)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [November 10, 2007, 2:10pm UTC](https://www.ruby-forum.com/t/wrapper-helper-help-please/119775 "2007-11-10T14:10:24Z")

</div>

Hi all. I’m hoping this is a simple one that someone can put me right on. I have a view that ‘wraps’ some div’s around a Page Header and Page Content, for formatting reasons: 'Header Here' …

---

## [Trade fair booth service in China](https://www.ruby-forum.com/t/trade-fair-booth-service-in-china/119785)

<div class="topic-metadata">

**Author:** [@jackkrone](https://www.ruby-forum.com/u/jackkrone)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 2:00pm UTC](https://www.ruby-forum.com/t/trade-fair-booth-service-in-china/119785 "2007-11-10T14:00:32Z")

</div>

Yoho Expoã¯ä¸­å›½ã§ãƒ–ãƒ¼ã‚¹ãƒ‡ã‚¶ã‚¤ãƒ³ã¨ã‚³ãƒ³ã‚µãƒ«ãƒ†ã‚£ãƒ³ã‚°ã‚’è¡Œã£ã¦ã„ã‚‹å°‚é–€ä¼šç¤¾ã§ã™ã€‚ ã‚‚ã—ã€è²´ç¤¾ãŒä¸­å›½ã§å±•ç¤ºä¼šã‚’å‚¬ã™æ©Ÿä¼šãŒæœ‰ã‚Šã¾ã—ãŸã‚‰ã€æ˜¯éžã€ã‚ãŒç¤¾ã¸é€£çµ¡ã‚’ä¸‹ã…

---

## [How do you find all values that are not nil?](https://www.ruby-forum.com/t/how-do-you-find-all-values-that-are-not-nil/119691)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 12\
**Last updated:** [November 10, 2007, 12:22pm UTC](https://www.ruby-forum.com/t/how-do-you-find-all-values-that-are-not-nil/119691 "2007-11-10T12:22:10Z")

</div>

I’m trying to find all values that are not nil. I tried: Task.find(:all, :conditions =\> \[“user\_id != ?, nil”\]) but that doesn’t seem to be working. Any ideas?

---

## [Plugin extension?](https://www.ruby-forum.com/t/plugin-extension/119778)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 12:09pm UTC](https://www.ruby-forum.com/t/plugin-extension/119778 "2007-11-10T12:09:07Z")

</div>

Hello everyone, Gibberish is internationalization plugin. http://errtheblog.com/post/4396 I want to change the way Gibberish loads the yml files, since the languages files becomes to big, i want to split them so th…

---

## [Children of childrens?](https://www.ruby-forum.com/t/children-of-childrens/119772)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 9:46am UTC](https://www.ruby-forum.com/t/children-of-childrens/119772 "2007-11-10T09:46:04Z")

</div>

Hi all! I’m working on a role based auth system. Users have roles, roles have role\_items which enable access to a controller/action pair. So: User -has\_and\_belongs\_to\_many :roles Role -has\_and\_belongs\_to\_many :user…

---

## [Rails engines](https://www.ruby-forum.com/t/rails-engines/119769)

<div class="topic-metadata">

**Author:** [@Piotr\_N](https://www.ruby-forum.com/u/Piotr_N)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 9:23am UTC](https://www.ruby-forum.com/t/rails-engines/119769 "2007-11-10T09:23:16Z")

</div>

What do You think about Rails Engines, is it worth using ? I found many good words about it, but im not sure if it is still widely popular. http://rails-engines.org/introduction

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

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