# Rails

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

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

---

## [I think a good idea abount a SaaS](https://www.ruby-forum.com/t/i-think-a-good-idea-abount-a-saas/161000)

<div class="topic-metadata">

**Author:** [@Eder\_Gobbi](https://www.ruby-forum.com/u/Eder_Gobbi)\
**Replies:** 0\
**Last updated:** [February 22, 2009, 1:14am UTC](https://www.ruby-forum.com/t/i-think-a-good-idea-abount-a-saas/161000 "2009-02-22T01:14:48Z")

</div>

Hi, this is my first post, and sorry for my english, i’m brazilian. I have an idea very good. But, i don’t programmer nothing… :stuck\_out\_tongue: How i proceed? Open ideia here? I search for people to get envolved. C…

---

## [Query for multiple possible values of a field](https://www.ruby-forum.com/t/query-for-multiple-possible-values-of-a-field/160908)

<div class="topic-metadata">

**Author:** [@naijaguy](https://www.ruby-forum.com/u/naijaguy)\
**Replies:** 2\
**Last updated:** [February 22, 2009, 1:12am UTC](https://www.ruby-forum.com/t/query-for-multiple-possible-values-of-a-field/160908 "2009-02-22T01:12:33Z")

</div>

http://geokit.rubyforge.org/readme.html While browsing the above page, I looked at this query and wondered if it could be changed to include multiple possible values for state: find(:all, :origin =\> @somewhere, :withi…

---

## [Page with download](https://www.ruby-forum.com/t/page-with-download/160996)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 1\
**Last updated:** [February 22, 2009, 12:51am UTC](https://www.ruby-forum.com/t/page-with-download/160996 "2009-02-22T00:51:21Z")

</div>

I want to have a single link that displays a page and also starts a download. Is that possible?

---

## [Undefined method user\_id](https://www.ruby-forum.com/t/undefined-method-user-id/160979)

<div class="topic-metadata">

**Author:** [@kenle545](https://www.ruby-forum.com/u/kenle545)\
**Replies:** 1\
**Last updated:** [February 22, 2009, 12:42am UTC](https://www.ruby-forum.com/t/undefined-method-user-id/160979 "2009-02-22T00:42:34Z")

</div>

Basically, Im trying to add comments to photos that other users have uploaded. And Ive encountered an error: NoMethodError in CommentsController#create undefined method \`user\_id=’ for #Comment:0x4768cd0 C:/INSTAN~1/r…

---

## [Belongs\_to or has\_many](https://www.ruby-forum.com/t/belongs-to-or-has-many/160992)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 3\
**Last updated:** [February 22, 2009, 12:41am UTC](https://www.ruby-forum.com/t/belongs-to-or-has-many/160992 "2009-02-22T00:41:58Z")

</div>

2 tables Items and Categories Categories (id, name) Items (id, name, category\_id) Category\_id can be null, and there are Categories that has not an Item.

---

## [Mysql install problem](https://www.ruby-forum.com/t/mysql-install-problem/159861)

<div class="topic-metadata">

**Author:** [@dudus](https://www.ruby-forum.com/u/dudus)\
**Replies:** 13\
**Last updated:** [February 22, 2009, 12:26am UTC](https://www.ruby-forum.com/t/mysql-install-problem/159861 "2009-02-22T00:26:10Z")

</div>

Hi, I got Mac OS X 15.6 installed, Locomotive 2.0.8 and MYSQL 5.0.67 running. I’m having this problem when I try to install mysql gem: Last login: Mon Feb 9 13:37:37 on ttys001 source /var/folders/be/bexGvm9pHdq0vc…

---

## [Guides on css strategy](https://www.ruby-forum.com/t/guides-on-css-strategy/160603)

<div class="topic-metadata">

**Author:** [@itsastickup](https://www.ruby-forum.com/u/itsastickup)\
**Replies:** 14\
**Last updated:** [February 22, 2009, 12:17am UTC](https://www.ruby-forum.com/t/guides-on-css-strategy/160603 "2009-02-22T00:17:22Z")

</div>

I’m having to design the UI to a small site, and that means dabbling in css. I’ve never been able to get any kind of decent idea as to how to decide on classes and id-ing. I’ve had a sniff around the internet without …

---

## [How fast is Model.average compared to a find all and loop?](https://www.ruby-forum.com/t/how-fast-is-model-average-compared-to-a-find-all-and-loop/160984)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 4\
**Last updated:** [February 22, 2009, 12:15am UTC](https://www.ruby-forum.com/t/how-fast-is-model-average-compared-to-a-find-all-and-loop/160984 "2009-02-22T00:15:35Z")

</div>

I have a set of results that I want to find some average values, divided into group\_1, \_2, and \_3. I have two options. Find all and then loop through all and in each loop calculate how many there are and the summery…

---

## [Ajax form in a normal form](https://www.ruby-forum.com/t/ajax-form-in-a-normal-form/160910)

<div class="topic-metadata">

**Author:** [@loader](https://www.ruby-forum.com/u/loader)\
**Replies:** 1\
**Last updated:** [February 21, 2009, 8:04pm UTC](https://www.ruby-forum.com/t/ajax-form-in-a-normal-form/160910 "2009-02-21T20:04:25Z")

</div>

Hello everyone! Here is my problem. I have a form to create a ticket, and I want to upload a file in the same time. Basically, a user fill the form and then can attach a file while editing his ticket. But what I wan…

---

## [Execute ruby entered in view in controller](https://www.ruby-forum.com/t/execute-ruby-entered-in-view-in-controller/160961)

<div class="topic-metadata">

**Author:** [@sudhi](https://www.ruby-forum.com/u/sudhi)\
**Replies:** 5\
**Last updated:** [February 21, 2009, 7:52pm UTC](https://www.ruby-forum.com/t/execute-ruby-entered-in-view-in-controller/160961 "2009-02-21T19:52:04Z")

</div>

HI, I have a requirement where a user could enter ruby scripts in the view( typically a text area) and the controller should pick this text on submit and execute the script(content of text area) line by line. How sho…

---

## [How to change Image of Markers in google map mashup?](https://www.ruby-forum.com/t/how-to-change-image-of-markers-in-google-map-mashup/160832)

<div class="topic-metadata">

**Author:** [@VrishaliSS](https://www.ruby-forum.com/u/VrishaliSS)\
**Replies:** 4\
**Last updated:** [February 21, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/how-to-change-image-of-markers-in-google-map-mashup/160832 "2009-02-21T19:35:27Z")

</div>

Hi!!! I am working on google map mashup. I tried to display the markers for four locations and its getting displayed. But these markers’s image is default image by google. (balloon shaped image) Now i want to put my…

---

## [Foreign-key confusion](https://www.ruby-forum.com/t/foreign-key-confusion/160963)

<div class="topic-metadata">

**Author:** [@arichards](https://www.ruby-forum.com/u/arichards)\
**Replies:** 2\
**Last updated:** [February 21, 2009, 7:31pm UTC](https://www.ruby-forum.com/t/foreign-key-confusion/160963 "2009-02-21T19:31:43Z")

</div>

Hi, I am a bit confused about managing the relationship between two of my tables: I have developed a script using scRUBYt that scrapes data from a website and dumps the following four fields into my Shows table: cla…

---

## [Creating virtual hosts with Mongrel?](https://www.ruby-forum.com/t/creating-virtual-hosts-with-mongrel/160797)

<div class="topic-metadata">

**Author:** [@groovetrain](https://www.ruby-forum.com/u/groovetrain)\
**Replies:** 5\
**Last updated:** [February 21, 2009, 7:07pm UTC](https://www.ruby-forum.com/t/creating-virtual-hosts-with-mongrel/160797 "2009-02-21T19:07:36Z")

</div>

Does anyone know how to use Mongrel to create virtual hosts? My production site will have all kinds of domains pointing to it, and I also need to figure out how to do subdomains. Rails should react to the host name,…

---

## [PDF Generation with password](https://www.ruby-forum.com/t/pdf-generation-with-password/160900)

<div class="topic-metadata">

**Author:** [@CiriusMex](https://www.ruby-forum.com/u/CiriusMex)\
**Replies:** 5\
**Last updated:** [February 21, 2009, 6:28pm UTC](https://www.ruby-forum.com/t/pdf-generation-with-password/160900 "2009-02-21T18:28:44Z")

</div>

Hi, I have a little issue here. I’m working on an eBook site and need to generate PDFs. I managed it using PDF::Writer and did the trick quite well but now I want to generate PDFs with a password access. After checkin…

---

## [Problem with controller.controller\_name in production](https://www.ruby-forum.com/t/problem-with-controller-controller-name-in-production/196898)

<div class="topic-metadata">

**Author:** [@fmh](https://www.ruby-forum.com/u/fmh)\
**Replies:** 1\
**Last updated:** [February 21, 2009, 4:03pm UTC](https://www.ruby-forum.com/t/problem-with-controller-controller-name-in-production/196898 "2009-02-21T16:03:45Z")

</div>

hello, in production the \<%= controller.controller\_name %\> has no effect in view I use passenger mod\_rails. if i restart my apache server , it work but just for 1 or 2 times and after stop to work. I must each time…

---

## [Failure unit test](https://www.ruby-forum.com/t/failure-unit-test/160948)

<div class="topic-metadata">

**Author:** [@jobber](https://www.ruby-forum.com/u/jobber)\
**Replies:** 2\
**Last updated:** [February 21, 2009, 3:34pm UTC](https://www.ruby-forum.com/t/failure-unit-test/160948 "2009-02-21T15:34:29Z")

</div>

Hello all, i have a problem with unit test always here my code for create a table 1 def test\_should\_create\_a\_member 2 sp = Member.new(:name =\> “Arnold”, :surname =\> “Stallone”, :street =\> “My Street”, :location …

---

## [ArgumentError on model create statement](https://www.ruby-forum.com/t/argumenterror-on-model-create-statement/160930)

<div class="topic-metadata">

**Author:** [@cpjolicoeur](https://www.ruby-forum.com/u/cpjolicoeur)\
**Replies:** 2\
**Last updated:** [February 21, 2009, 3:03pm UTC](https://www.ruby-forum.com/t/argumenterror-on-model-create-statement/160930 "2009-02-21T15:03:21Z")

</div>

I have a rails app model that I’m getting a strange error that is just baffling me. I’ve stripped everything out of my model down to the basics and still get the error. So, here is the current model: class Metric \< …

---

## [Routing error](https://www.ruby-forum.com/t/routing-error/160828)

<div class="topic-metadata">

**Author:** [@zonyzeb](https://www.ruby-forum.com/u/zonyzeb)\
**Replies:** 3\
**Last updated:** [February 21, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/routing-error/160828 "2009-02-21T14:24:32Z")

</div>

Hello, I have set up an application using scaffolding, which have all basic method(index/new/edit/show/…). But when I tried to add a new method it showing routing errors. class ItemsController \< ApplicationContro…

---

## [Better dummy method for gettext + rails 2.2](https://www.ruby-forum.com/t/better-dummy-method-for-gettext-rails-2-2/154164)

<div class="topic-metadata">

**Author:** [@wybo](https://www.ruby-forum.com/u/wybo)\
**Replies:** 1\
**Last updated:** [February 21, 2009, 1:44pm UTC](https://www.ruby-forum.com/t/better-dummy-method-for-gettext-rails-2-2/154164 "2009-02-21T13:44:08Z")

</div>

Here’s a better dummy method that also handles the “this is %{jo}” % {:jo =\> “so”} cases. class Object def self.\_(msg) return msg end def \_(msg) return msg end end class String alias :\_\_old\_format\_m :% def %(…

---

## [Problem with controller.controller\_name in production](https://www.ruby-forum.com/t/problem-with-controller-controller-name-in-production/160957)

<div class="topic-metadata">

**Author:** [@fmh](https://www.ruby-forum.com/u/fmh)\
**Replies:** 0\
**Last updated:** [February 21, 2009, 12:55pm UTC](https://www.ruby-forum.com/t/problem-with-controller-controller-name-in-production/160957 "2009-02-21T12:55:31Z")

</div>

hello, in production the \<%= controller.controller\_name %\> has no effect in view I use passenger mod\_rails. if i restart my apache server , it work but just for 1 or 2 times and after stop to work. I must each time…

---

## [Re: Will engines be around in Rails 2.3?](https://www.ruby-forum.com/t/re-will-engines-be-around-in-rails-2-3/160874)

<div class="topic-metadata">

**Author:** [@Michael\_Klett](https://www.ruby-forum.com/u/Michael_Klett)\
**Replies:** 1\
**Last updated:** [February 21, 2009, 11:13am UTC](https://www.ruby-forum.com/t/re-will-engines-be-around-in-rails-2-3/160874 "2009-02-21T11:13:32Z")

</div>

I didn’t notice a mention of engine routes and how they are currently different in Rails 2.3.0. As far as I can tell, there is no control over ordering. All of the plugin/engine routes load, and then the main app r…

---

## [Will engines be around in Rails 2.3?](https://www.ruby-forum.com/t/will-engines-be-around-in-rails-2-3/160798)

<div class="topic-metadata">

**Author:** [@Trevor\_Rowe](https://www.ruby-forum.com/u/Trevor_Rowe)\
**Replies:** 10\
**Last updated:** [February 21, 2009, 11:12am UTC](https://www.ruby-forum.com/t/will-engines-be-around-in-rails-2-3/160798 "2009-02-21T11:12:21Z")

</div>

I know they are adding a lot to the core of rails, but what about the rest? Will the Engines plugin live on to provide the missing pieces?

---

## [Problem installing on Mac OSX](https://www.ruby-forum.com/t/problem-installing-on-mac-osx/98593)

<div class="topic-metadata">

**Author:** [@toddf](https://www.ruby-forum.com/u/toddf)\
**Replies:** 29\
**Last updated:** [February 21, 2009, 9:22am UTC](https://www.ruby-forum.com/t/problem-installing-on-mac-osx/98593 "2009-02-21T09:22:10Z")

</div>

I tried the instruction tutorial on http://maczealots.com/tutorials/ruby-on-rails/ and in the middle of trying to install fixrbconfig I got an error: usr/lib/ruby/1.8/powerpc-darwin8.0/ruby.h does not exist. This pr…

---

## [Is it just me being cynical](https://www.ruby-forum.com/t/is-it-just-me-being-cynical/160875)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 3\
**Last updated:** [February 21, 2009, 8:10am UTC](https://www.ruby-forum.com/t/is-it-just-me-being-cynical/160875 "2009-02-21T08:10:51Z")

</div>

Or is most of the noise here 10 cent development shops having their code written for them by contributors to this list ?

---

## [Aspell](https://www.ruby-forum.com/t/aspell/160944)

<div class="topic-metadata">

**Author:** [@madhavi.k](https://www.ruby-forum.com/u/madhavi.k)\
**Replies:** 4\
**Last updated:** [February 21, 2009, 8:03am UTC](https://www.ruby-forum.com/t/aspell/160944 "2009-02-21T08:03:49Z")

</div>

how to setup aspell utility for tinyMCE Editor in rails application

---

## [Not using view layout application.rhtml on certian things](https://www.ruby-forum.com/t/not-using-view-layout-application-rhtml-on-certian-things/160896)

<div class="topic-metadata">

**Author:** [@morgan](https://www.ruby-forum.com/u/morgan)\
**Replies:** 3\
**Last updated:** [February 21, 2009, 7:56am UTC](https://www.ruby-forum.com/t/not-using-view-layout-application-rhtml-on-certian-things/160896 "2009-02-21T07:56:12Z")

</div>

so i have a view that pops up in a window and the application.rhtml includes all the navigation stuff sooo the navigation stuff shows up in the window… is there a way to have certian views ignore the view/layouts/appl…

---

## [Facing problem with Fastercsv on deployment server](https://www.ruby-forum.com/t/facing-problem-with-fastercsv-on-deployment-server/160940)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 2\
**Last updated:** [February 21, 2009, 6:45am UTC](https://www.ruby-forum.com/t/facing-problem-with-fastercsv-on-deployment-server/160940 "2009-02-21T06:45:52Z")

</div>

Hello , friends i am facing strange problem here.I have installed Fatercsv(1.2.3) for report export functionality, It’s working proper on my development server. Development server = WinXp Professional V 2002 SP2 = Ra…

---

## [Aspell](https://www.ruby-forum.com/t/aspell/160941)

<div class="topic-metadata">

**Author:** [@madhavi.k](https://www.ruby-forum.com/u/madhavi.k)\
**Replies:** 0\
**Last updated:** [February 21, 2009, 6:41am UTC](https://www.ruby-forum.com/t/aspell/160941 "2009-02-21T06:41:21Z")

</div>

can u suggest a link for downloading aspell spellchecker (for tinyMCE Editor) using rails

---

## [Multi User System -- STI? Roles? Hmmm?](https://www.ruby-forum.com/t/multi-user-system-sti-roles-hmmm/160845)

<div class="topic-metadata">

**Author:** [@mrkris](https://www.ruby-forum.com/u/mrkris)\
**Replies:** 9\
**Last updated:** [February 21, 2009, 6:15am UTC](https://www.ruby-forum.com/t/multi-user-system-sti-roles-hmmm/160845 "2009-02-21T06:15:50Z")

</div>

Ok, this is a tricky situation. I have a user system where a user might be an admin, a director, an actor/actress, an extra, or a member At first, STI sounded great, mainly because a member could just browse, a direct…

---

## [Apache configuration](https://www.ruby-forum.com/t/apache-configuration/160885)

<div class="topic-metadata">

**Author:** [@ashikalim](https://www.ruby-forum.com/u/ashikalim)\
**Replies:** 6\
**Last updated:** [February 21, 2009, 6:14am UTC](https://www.ruby-forum.com/t/apache-configuration/160885 "2009-02-21T06:14:40Z")

</div>

To configure https we need .pem certificate file. it has both certificate and private and public keys . Using this I configured https in apache . It is working nice . My client says that he send the https request usi…

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

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