# Rails

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

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

---

## [Help - accessing session data from my model](https://www.ruby-forum.com/t/help-accessing-session-data-from-my-model/129581)

<div class="topic-metadata">

**Author:** [@saljamil](https://www.ruby-forum.com/u/saljamil)\
**Replies:** 1\
**Last updated:** [February 20, 2008, 11:50am UTC](https://www.ruby-forum.com/t/help-accessing-session-data-from-my-model/129581 "2008-02-20T11:50:09Z")

</div>

I have a model that contains data for many users/organizations. I need to limit the data by organization. I am trying to put this logic in the model vs the controller since many controllers/actions will be using that …

---

## [How to stop loading database.yml file?](https://www.ruby-forum.com/t/how-to-stop-loading-database-yml-file/129628)

<div class="topic-metadata">

**Author:** [@Bala](https://www.ruby-forum.com/u/Bala)\
**Replies:** 5\
**Last updated:** [February 20, 2008, 9:18am UTC](https://www.ruby-forum.com/t/how-to-stop-loading-database-yml-file/129628 "2008-02-20T09:18:42Z")

</div>

Hi Experts, I was wondering if whether we can stop loading database.yml file when rails loaded instead i want to load my new configuration yml file, is that possible. to do? I’m eagerly waiting for your reply guys. T…

---

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

<div class="topic-metadata">

**Author:** [@coolgeng\_coolgeng](https://www.ruby-forum.com/u/coolgeng_coolgeng)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 8:18am UTC](https://www.ruby-forum.com/t/rails/129638 "2008-02-20T08:18:18Z")

</div>

– Best Regards Cooper Geng

---

## [Better\_nested\_set error](https://www.ruby-forum.com/t/better-nested-set-error/129632)

<div class="topic-metadata">

**Author:** [@infinit](https://www.ruby-forum.com/u/infinit)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 7:42am UTC](https://www.ruby-forum.com/t/better-nested-set-error/129632 "2008-02-20T07:42:56Z")

</div>

Hi all, I got the plugin at http://opensource.symetrie.com/svn/better\_nested\_set/trunk (I can’t get from svn://rubyforge.org/var/svn/betternestedset/tags/stable/betternestedset) , and I m using rails 2.0.2. When I…

---

## [STI and Resources](https://www.ruby-forum.com/t/sti-and-resources/129627)

<div class="topic-metadata">

**Author:** [@lee](https://www.ruby-forum.com/u/lee)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 6:40am UTC](https://www.ruby-forum.com/t/sti-and-resources/129627 "2008-02-20T06:40:11Z")

</div>

Perhaps someone can share some insight: I’m modeling a simple English-Japanese dictionary. Phase 1 is simple. There are Entries, but I need to keep in mind that verbs, nouns, adjectives all conjugate differently. I …

---

## [Selection?](https://www.ruby-forum.com/t/selection/129624)

<div class="topic-metadata">

**Author:** [@casid](https://www.ruby-forum.com/u/casid)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 6:21am UTC](https://www.ruby-forum.com/t/selection/129624 "2008-02-20T06:21:19Z")

</div>

hello everyone I have a question about selection. template\_path = “#{get\_plugin\_root}/public/converter/templates/#{params\[:template\]}.xml” converter\_generate(sheet\_id,date, output\_path, template\_path) template\_path …

---

## [Help setting up RoR SSL on Bluehost](https://www.ruby-forum.com/t/help-setting-up-ror-ssl-on-bluehost/129625)

<div class="topic-metadata">

**Author:** [@jfgg](https://www.ruby-forum.com/u/jfgg)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 6:09am UTC](https://www.ruby-forum.com/t/help-setting-up-ror-ssl-on-bluehost/129625 "2008-02-20T06:09:36Z")

</div>

I appreciate if anyone could help me to solve my problem. I already did this… http://wiki.rubyonrails.com/rails/pages/HowToEnableSSL And this… http://dev.rubyonrails.org/svn/rails/plugins/ssl\_requirement/README as a…

---

## [Can Rails and PHP work together?](https://www.ruby-forum.com/t/can-rails-and-php-work-together/129620)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 3\
**Last updated:** [February 20, 2008, 5:39am UTC](https://www.ruby-forum.com/t/can-rails-and-php-work-together/129620 "2008-02-20T05:39:09Z")

</div>

Hello everyone, I am new to RoR, coming from an ASP.NET background. I’m currently working on a politically-themed social network, and I want to have multiple bloggers who will blog about various topics. My web hos…

---

## [SQLite3 column collation](https://www.ruby-forum.com/t/sqlite3-column-collation/129621)

<div class="topic-metadata">

**Author:** [@kevin\_cline](https://www.ruby-forum.com/u/kevin_cline)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 4:55am UTC](https://www.ruby-forum.com/t/sqlite3-column-collation/129621 "2008-02-20T04:55:49Z")

</div>

How can I write a migration to create a SQLite3 column with “COLLATE NOCASE” ?

---

## [Easy Question: var on initialize for use by all methods](https://www.ruby-forum.com/t/easy-question-var-on-initialize-for-use-by-all-methods/129612)

<div class="topic-metadata">

**Author:** [@adamdorsey](https://www.ruby-forum.com/u/adamdorsey)\
**Replies:** 1\
**Last updated:** [February 20, 2008, 4:33am UTC](https://www.ruby-forum.com/t/easy-question-var-on-initialize-for-use-by-all-methods/129612 "2008-02-20T04:33:30Z")

</div>

So I’m feeling a bit lazy right now, and I’m also struggling with making my controller DRYer by moving some variables that are used by all actions and views into an initilize method. Here’s the unDRY version: def init…

---

## [Collection sum](https://www.ruby-forum.com/t/collection-sum/129308)

<div class="topic-metadata">

**Author:** [@grayson](https://www.ruby-forum.com/u/grayson)\
**Replies:** 2\
**Last updated:** [February 20, 2008, 4:19am UTC](https://www.ruby-forum.com/t/collection-sum/129308 "2008-02-20T04:19:48Z")

</div>

Hello, I posted this incorrectly on the ruby forum (forgot that it involves ActiveRecord, so it’s rails). I wonder how you step down through an association to do a sum. If I have the following associations user has…

---

## [Stepping out of clusters](https://www.ruby-forum.com/t/stepping-out-of-clusters/129616)

<div class="topic-metadata">

**Author:** [@friarminor](https://www.ruby-forum.com/u/friarminor)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 3:28am UTC](https://www.ruby-forum.com/t/stepping-out-of-clusters/129616 "2008-02-20T03:28:24Z")

</div>

Reality Check: Hey, guys! I know most of you have your own multiple servers lying around but still we would like to invite and hear from you what you think about about a complete system our guys have worked on for a…

---

## [Users HM Projects, Projects HM Activities: Question on find](https://www.ruby-forum.com/t/users-hm-projects-projects-hm-activities-question-on-find/129604)

<div class="topic-metadata">

**Author:** [@newbee-robert](https://www.ruby-forum.com/u/newbee-robert)\
**Replies:** 2\
**Last updated:** [February 20, 2008, 3:10am UTC](https://www.ruby-forum.com/t/users-hm-projects-projects-hm-activities-question-on-find/129604 "2008-02-20T03:10:56Z")

</div>

As the topic suggests, I have a USER model that has many Projects, and a PROJECT model that has many Activities. What is the easiest way to find all Activities that belong to the logged in user? Is this something th…

---

## [Clicking image to change variable](https://www.ruby-forum.com/t/clicking-image-to-change-variable/129602)

<div class="topic-metadata">

**Author:** [@nition](https://www.ruby-forum.com/u/nition)\
**Replies:** 2\
**Last updated:** [February 20, 2008, 2:30am UTC](https://www.ruby-forum.com/t/clicking-image-to-change-variable/129602 "2008-02-20T02:30:22Z")

</div>

I’m still pretty new to rails but I’ve got a lot of the basic stuff working. On one page I have a set of images, and I’d like to make it so that clicking them will change a variable I have. Is there a simple method f…

---

## [Associations without foreign keys?](https://www.ruby-forum.com/t/associations-without-foreign-keys/129608)

<div class="topic-metadata">

**Author:** [@Confused\_Vorlon](https://www.ruby-forum.com/u/Confused_Vorlon)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 1:38am UTC](https://www.ruby-forum.com/t/associations-without-foreign-keys/129608 "2008-02-20T01:38:11Z")

</div>

Hi Folks, I have a game where users get access to technologies. The technology records aren’t owned - so a normal foreign key doesn’t make sense. I want to tell rails not to bother with xxx\_id, and just to use condit…

---

## [Migration error: uninitialized constant ActiveRecord](https://www.ruby-forum.com/t/migration-error-uninitialized-constant-activerecord/129484)

<div class="topic-metadata">

**Author:** [@i72gumaj](https://www.ruby-forum.com/u/i72gumaj)\
**Replies:** 8\
**Last updated:** [February 20, 2008, 1:34am UTC](https://www.ruby-forum.com/t/migration-error-uninitialized-constant-activerecord/129484 "2008-02-20T01:34:05Z")

</div>

Greeting I’m passing my app to a production environment. All run okey but when I try to create my start up migration this error appears: rake aborted! uninitialized constant ActiveRecord And nothing happends. Anyone …

---

## [Windows or Linux for RoR Develpment?](https://www.ruby-forum.com/t/windows-or-linux-for-ror-develpment/129247)

<div class="topic-metadata">

**Author:** [@liquidrails](https://www.ruby-forum.com/u/liquidrails)\
**Replies:** 17\
**Last updated:** [February 20, 2008, 1:25am UTC](https://www.ruby-forum.com/t/windows-or-linux-for-ror-develpment/129247 "2008-02-20T01:25:36Z")

</div>

Any thoughts on this? I am contemplating a switch from a Windows platform to Linux. Thanks!

---

## [Common RJS](https://www.ruby-forum.com/t/common-rjs/129314)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 7\
**Last updated:** [February 20, 2008, 1:06am UTC](https://www.ruby-forum.com/t/common-rjs/129314 "2008-02-20T01:06:30Z")

</div>

I want to have some RJS executed whenever an xhr request is made. My initial thought was an “application.rjs” might do this, however that does not seem to be the case. Is there a way to set up some RJS that is execute…

---

## [Re: Strategy design pattern vs partial](https://www.ruby-forum.com/t/re-strategy-design-pattern-vs-partial/129476)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 20, 2008, 12:41am UTC](https://www.ruby-forum.com/t/re-strategy-design-pattern-vs-partial/129476 "2008-02-20T00:41:51Z")

</div>

Andy, I think you understand my question. The answers range in complexity from using partials, as you suggest (that’s what I’m doing now), to using an Abstract Factory to choose the correct Strategy in the various pla…

---

## [Mongrel Upload Progress conflicts with :controller/:action/:id routes](https://www.ruby-forum.com/t/mongrel-upload-progress-conflicts-with-controller-action-id-routes/129594)

<div class="topic-metadata">

**Author:** [@eric](https://www.ruby-forum.com/u/eric)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 11:26pm UTC](https://www.ruby-forum.com/t/mongrel-upload-progress-conflicts-with-controller-action-id-routes/129594 "2008-02-19T23:26:22Z")

</div>

Has anyone using Mongrel Upload Progress ran into issue with Rails default routes like post/add/1, where 1 is the ID of the post to add? The problem is, MUP requires that you specify the path to observe as: :path\_info…

---

## [Displaying a base64-encoded image within an rhtml template](https://www.ruby-forum.com/t/displaying-a-base64-encoded-image-within-an-rhtml-template/129470)

<div class="topic-metadata">

**Author:** [@kyle](https://www.ruby-forum.com/u/kyle)\
**Replies:** 3\
**Last updated:** [February 19, 2008, 10:57pm UTC](https://www.ruby-forum.com/t/displaying-a-base64-encoded-image-within-an-rhtml-template/129470 "2008-02-19T22:57:43Z")

</div>

I’m working on generating FedEx labels for quick & easy shipping. FedEx returns the label as a base64-encoded string. Assuming that ‘match’ is the base64 string containing the label data, here is what I have to displ…

---

## [Larger Scale Application Structure](https://www.ruby-forum.com/t/larger-scale-application-structure/92354)

<div class="topic-metadata">

**Author:** [@reynar](https://www.ruby-forum.com/u/reynar)\
**Replies:** 10\
**Last updated:** [February 19, 2008, 10:33pm UTC](https://www.ruby-forum.com/t/larger-scale-application-structure/92354 "2008-02-19T22:33:28Z")

</div>

Hi, I am developing a larger scale application with rails to manage our businesses crm, order processing, catalogue, stock control, service jobs etc. Logically the application has distinct modules or sections of fun…

---

## [Where have the forms gone?](https://www.ruby-forum.com/t/where-have-the-forms-gone/129206)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 8\
**Last updated:** [February 19, 2008, 9:52pm UTC](https://www.ruby-forum.com/t/where-have-the-forms-gone/129206 "2008-02-19T21:52:48Z")

</div>

Hi, I recently installed: Aptana Studio 1.1.0.007007 Rails 2.0.2 Ruby 1.8.6 First thing I noticed was that now I needed SqlLite3. I changed the database.yml to keep it like before: development: adapter: mysql dat…

---

## [Making Rails 2.0 reload engine controllers and models](https://www.ruby-forum.com/t/making-rails-2-0-reload-engine-controllers-and-models/129584)

<div class="topic-metadata">

**Author:** [@mateo\_murphy](https://www.ruby-forum.com/u/mateo_murphy)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 9:26pm UTC](https://www.ruby-forum.com/t/making-rails-2-0-reload-engine-controllers-and-models/129584 "2008-02-19T21:26:43Z")

</div>

Hello, I’ve been working on a solution for making rails reload engine controllers and models. Initially, after a fair amount of googling, I came up with the following, in development.rb: config.after\_initialize { De…

---

## [How do I make stylesheet inline tag?](https://www.ruby-forum.com/t/how-do-i-make-stylesheet-inline-tag/129519)

<div class="topic-metadata">

**Author:** [@cujigar](https://www.ruby-forum.com/u/cujigar)\
**Replies:** 5\
**Last updated:** [February 19, 2008, 9:03pm UTC](https://www.ruby-forum.com/t/how-do-i-make-stylesheet-inline-tag/129519 "2008-02-19T21:03:01Z")

</div>

\<%= stylesheet\_link\_tag “home” %\> this outputs I was wondering how can I write a helper which will actually spit out the css in the page it self? some thing like: \<%= inline\_stylesheet “home” %\> should output cont…

---

## [Issue with Observers and has\_one association](https://www.ruby-forum.com/t/issue-with-observers-and-has-one-association/129580)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 8:50pm UTC](https://www.ruby-forum.com/t/issue-with-observers-and-has-one-association/129580 "2008-02-19T20:50:26Z")

</div>

Hey Guys, I’m getting a peculiar bug working with Observers and has\_one associations. When a has\_one association is invoked by an Observer it always returns null. I looked in the development.log file and the SQL for…

---

## [Accessing columns by index](https://www.ruby-forum.com/t/accessing-columns-by-index/129516)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 7\
**Last updated:** [February 19, 2008, 8:38pm UTC](https://www.ruby-forum.com/t/accessing-columns-by-index/129516 "2008-02-19T20:38:36Z")

</div>

Hi, I have my Find statement returning rows like this Col1 Col2 Col3 Col4 While displaying I want to do this order: Cyclic fashion. First row: Col1 Col2 Col3 Col4 Second row: Col2 Col3 Col4 Col1 Third row: Col3 Col…

---

## [How to do models and tests for users\_controller in admin folder/namespace](https://www.ruby-forum.com/t/how-to-do-models-and-tests-for-users-controller-in-admin-folder-namespace/129575)

<div class="topic-metadata">

**Author:** [@tonypm](https://www.ruby-forum.com/u/tonypm)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/how-to-do-models-and-tests-for-users-controller-in-admin-folder-namespace/129575 "2008-02-19T20:12:38Z")

</div>

I thought I was getting somewhere with this, but there is clearly something I am not grasping, or I am driving in the wrong direction. I am tidying up an application, and rebuilding it under rails 2. I thought it woul…

---

## [Mongrel throws error when running as nobody](https://www.ruby-forum.com/t/mongrel-throws-error-when-running-as-nobody/129574)

<div class="topic-metadata">

**Author:** [@armstheykill](https://www.ruby-forum.com/u/armstheykill)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/mongrel-throws-error-when-running-as-nobody/129574 "2008-02-19T20:00:53Z")

</div>

Hi all, My mongrel cluster runs perfectly if I allow it to run as root, but whenever I try to change things to nobody/nobody my mongrels refuse to start and the following shows up in the mongrel logs… \*\* Starting Mon…

---

## [Toplevel constant Parent referenced by Parent::Parent](https://www.ruby-forum.com/t/toplevel-constant-parent-referenced-by-parent-parent/129573)

<div class="topic-metadata">

**Author:** [@iamdirkcalloway](https://www.ruby-forum.com/u/iamdirkcalloway)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 7:58pm UTC](https://www.ruby-forum.com/t/toplevel-constant-parent-referenced-by-parent-parent/129573 "2008-02-19T19:58:13Z")

</div>

I’m upgrading from 1.1.6 to 1.2.6 and I’m getting a strange warning. activerecord/lib/active\_record/base.rb:1361: warning: toplevel constant Parent referenced by Parent::Parent Where Parent is the top-level class in a…

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

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