# Rails

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

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

---

## [Rails fails to find the CSS](https://www.ruby-forum.com/t/rails-fails-to-find-the-css/173279)

<div class="topic-metadata">

**Author:** [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Replies:** 2\
**Last updated:** [August 6, 2009, 7:39pm UTC](https://www.ruby-forum.com/t/rails-fails-to-find-the-css/173279 "2009-08-06T19:39:19Z")

</div>

Hi, I hosted my site in production mode on a web hosting service. The folder structure is /home/my\_username/rails\_apps/proj/ I did the normal referencing \<%= stylesheet\_link\_tag “menus” %\> in layouts/application.htm…

---

## [Gem install](https://www.ruby-forum.com/t/gem-install/173291)

<div class="topic-metadata">

**Author:** [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Replies:** 2\
**Last updated:** [August 6, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/gem-install/173291 "2009-08-06T17:35:46Z")

</div>

Hi, I dont understand these lines . I was getting these warnings whenever i intall or uninstall a new gem . WARNING: Installing to ~/.gem since /usr/lib/ruby/gems/1.8 and /usr/bin aren’t both writable. WARNING: Yo…

---

## [\[Rails\]Glove.class\_name =\> 'Glofe'](https://www.ruby-forum.com/t/rails-glove-class-name-glofe/173273)

<div class="topic-metadata">

**Author:** [@k560](https://www.ruby-forum.com/u/k560)\
**Replies:** 7\
**Last updated:** [August 6, 2009, 5:01pm UTC](https://www.ruby-forum.com/t/rails-glove-class-name-glofe/173273 "2009-08-06T17:01:50Z")

</div>

I’m trying to class array to another array. However Glove.class\_name become ‘Glofe’. Somebody can tell me why? My environment is ruby 1.8.6 Rails 2.2.2 on Windows Vista.

---

## [RESTful Rails + Collections](https://www.ruby-forum.com/t/restful-rails-collections/173309)

<div class="topic-metadata">

**Author:** [@corywilkerson](https://www.ruby-forum.com/u/corywilkerson)\
**Replies:** 0\
**Last updated:** [August 6, 2009, 4:21pm UTC](https://www.ruby-forum.com/t/restful-rails-collections/173309 "2009-08-06T16:21:12Z")

</div>

Folks, Trying to get my head around this - and I’ve made it work, but it feels rather hackish. Let’s say I have two resource types: User and Widget. A User has many Widgets, a Widget belongs to a User In routes.rb I…

---

## [How can I pass Ruby object to another action?](https://www.ruby-forum.com/t/how-can-i-pass-ruby-object-to-another-action/173231)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 6\
**Last updated:** [August 6, 2009, 3:30pm UTC](https://www.ruby-forum.com/t/how-can-i-pass-ruby-object-to-another-action/173231 "2009-08-06T15:30:31Z")

</div>

I use form\_tag like below: \<% form\_tag (my\_action) %\> \<%= submit\_tag “Submit” %\> \<% end %\> In this case, how can I pass a Ruby object to “my\_action” action? I want to pass a Hash to the next action. thanks.

---

## [Rake db Fixtures MySql autoincrement problem?](https://www.ruby-forum.com/t/rake-db-fixtures-mysql-autoincrement-problem/173044)

<div class="topic-metadata">

**Author:** [@BrendanC](https://www.ruby-forum.com/u/BrendanC)\
**Replies:** 3\
**Last updated:** [August 6, 2009, 1:38pm UTC](https://www.ruby-forum.com/t/rake-db-fixtures-mysql-autoincrement-problem/173044 "2009-08-06T13:38:42Z")

</div>

I’m trying to load some Rake Fixtures (rake db:fixtures:load) into a MySql database and I’m seeing some weird behaviour with AutoIncrement values. Normally this goes up by 1 for each insert which allows me to define/c…

---

## [Rjs template: reload div](https://www.ruby-forum.com/t/rjs-template-reload-div/173251)

<div class="topic-metadata">

**Author:** [@tilt](https://www.ruby-forum.com/u/tilt)\
**Replies:** 1\
**Last updated:** [August 6, 2009, 1:14pm UTC](https://www.ruby-forum.com/t/rjs-template-reload-div/173251 "2009-08-06T13:14:09Z")

</div>

Hi, I’d like to use AJAX to reload a single div containing content delivered by a partial. In my rjs template I thus wrote: page\[:my\_div\].reload Can I tell Rails where to look for the content that it shall regenerat…

---

## [Ajax](https://www.ruby-forum.com/t/ajax/173297)

<div class="topic-metadata">

**Author:** [@fisa](https://www.ruby-forum.com/u/fisa)\
**Replies:** 1\
**Last updated:** [August 6, 2009, 1:00pm UTC](https://www.ruby-forum.com/t/ajax/173297 "2009-08-06T13:00:21Z")

</div>

hi guys, I am making an ajax call from one view,that ajax returns a result set,which is rendered in another view which contains another ajax cal for each result in the view.Problem is for the first result form\_remote…

---

## [Initialising has\_many through joins](https://www.ruby-forum.com/t/initialising-has-many-through-joins/173300)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 0\
**Last updated:** [August 6, 2009, 12:22pm UTC](https://www.ruby-forum.com/t/initialising-has-many-through-joins/173300 "2009-08-06T12:22:06Z")

</div>

Hi What is the quick and tidy way to initialise has\_many through associations? What I need is a form that edits the join so where no join exists a blank field is initialised. Now using accepts\_nested\_attributes\_for a…

---

## [Counting a users adverts and then doing stuff](https://www.ruby-forum.com/t/counting-a-users-adverts-and-then-doing-stuff/173290)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 11\
**Last updated:** [August 6, 2009, 12:12pm UTC](https://www.ruby-forum.com/t/counting-a-users-adverts-and-then-doing-stuff/173290 "2009-08-06T12:12:02Z")

</div>

I’ve got a load of users and they have adverts, such that a User has many adverts and an Advert belongs to a user. I’m going to need to stop users creating more than a certain number of adverts based on their status. …

---

## [Installation difficulites](https://www.ruby-forum.com/t/installation-difficulites/173289)

<div class="topic-metadata">

**Author:** [@skolnabber](https://www.ruby-forum.com/u/skolnabber)\
**Replies:** 2\
**Last updated:** [August 6, 2009, 12:06pm UTC](https://www.ruby-forum.com/t/installation-difficulites/173289 "2009-08-06T12:06:11Z")

</div>

I’m a novice in these lands, hence the possibly rudimentary inquiry… I’m a designer/AS3 developer and am hoping to delve into Ruby on Rails on the suggestion of a friend. Have been trying to get it installed and am ru…

---

## [Separate App an DB servers , Scabality and rails](https://www.ruby-forum.com/t/separate-app-an-db-servers-scabality-and-rails/173288)

<div class="topic-metadata">

**Author:** [@lecielbleu](https://www.ruby-forum.com/u/lecielbleu)\
**Replies:** 1\
**Last updated:** [August 6, 2009, 12:05pm UTC](https://www.ruby-forum.com/t/separate-app-an-db-servers-scabality-and-rails/173288 "2009-08-06T12:05:00Z")

</div>

Hi , what will be if my site traffic became huge , can i separate db server and add 3 or more app server using rails framework. i think designing my site using rails and put it in EC2 servers. what do you think about …

---

## [Receiving Authentication Error](https://www.ruby-forum.com/t/receiving-authentication-error/173187)

<div class="topic-metadata">

**Author:** [@monocat](https://www.ruby-forum.com/u/monocat)\
**Replies:** 5\
**Last updated:** [August 6, 2009, 11:52am UTC](https://www.ruby-forum.com/t/receiving-authentication-error/173187 "2009-08-06T11:52:43Z")

</div>

Hi. A newbie. I installed/upgraded all the proper (at least that I know of) apps needed to run ruby on rails on a mac, but keep receiving mysql errors. The default page works fine, but as soon as I try a simple “hello…

---

## [About joinTable](https://www.ruby-forum.com/t/about-jointable/173277)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 6\
**Last updated:** [August 6, 2009, 10:23am UTC](https://www.ruby-forum.com/t/about-jointable/173277 "2009-08-06T10:23:43Z")

</div>

Hi Below Table1: name\_table id name 1 name1 2 name2 Table2: address\_table id address 1 address1 2 address2 jointable : name\_a…

---

## [Continue to use assets functions on a different host and path?](https://www.ruby-forum.com/t/continue-to-use-assets-functions-on-a-different-host-and-path/173287)

<div class="topic-metadata">

**Author:** [@kedare](https://www.ruby-forum.com/u/kedare)\
**Replies:** 0\
**Last updated:** [August 6, 2009, 9:55am UTC](https://www.ruby-forum.com/t/continue-to-use-assets-functions-on-a-different-host-and-path/173287 "2009-08-06T09:55:03Z")

</div>

Hello, I just build my new Rails application, i placed the website like that : at http://www.\*\*\*.net/ = /var/www/devkedare/public/ (with mod\_rails) http://media.\*\*\*.net/ = /var/www/media/ I want to use the javascrip…

---

## [Yahoo OAuth Ruby + Yahoo Social API](https://www.ruby-forum.com/t/yahoo-oauth-ruby-yahoo-social-api/173286)

<div class="topic-metadata">

**Author:** [@jay](https://www.ruby-forum.com/u/jay)\
**Replies:** 0\
**Last updated:** [August 6, 2009, 9:54am UTC](https://www.ruby-forum.com/t/yahoo-oauth-ruby-yahoo-social-api/173286 "2009-08-06T09:54:28Z")

</div>

I was just wondering if anyone has worked with Yahoo OAuth or the Yahoo Social API. They seem to have a pretty thorough and simple PHP library, but has anyone attempted a RoR implementation? I’m basically looking fo…

---

## [Dynamic path to store images using attachment\_fu](https://www.ruby-forum.com/t/dynamic-path-to-store-images-using-attachment-fu/173284)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 1\
**Last updated:** [August 6, 2009, 9:38am UTC](https://www.ruby-forum.com/t/dynamic-path-to-store-images-using-attachment-fu/173284 "2009-08-06T09:38:52Z")

</div>

Hello friends, I need to store the images of user into there own directory for e.g “public/uploads/user\_(user\_id)” So I am declaring it inside the model. has\_attachment :path\_prefix =\> ‘public/uploads/user\_#{current\_…

---

## [Http://admin.webapp.con](https://www.ruby-forum.com/t/http-admin-webapp-con/173285)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 0\
**Last updated:** [August 6, 2009, 9:38am UTC](https://www.ruby-forum.com/t/http-admin-webapp-con/173285 "2009-08-06T09:38:04Z")

</div>

Hey everyone! I just finished through Simply Rails 2 and after looking around a bit I’ve decided I want my admin panal laid out like the subject line. My question is once an app gets moved to a subdomain don’t you los…

---

## [How can I configure rails server connection number?](https://www.ruby-forum.com/t/how-can-i-configure-rails-server-connection-number/173275)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 2\
**Last updated:** [August 6, 2009, 9:33am UTC](https://www.ruby-forum.com/t/how-can-i-configure-rails-server-connection-number/173275 "2009-08-06T09:33:23Z")

</div>

How can I configure rails server connection number? This indicates how many clients can connect to a server at one time.

---

## [Nomethoderror : undefined method post](https://www.ruby-forum.com/t/nomethoderror-undefined-method-post/173269)

<div class="topic-metadata">

**Author:** [@jyothsna](https://www.ruby-forum.com/u/jyothsna)\
**Replies:** 1\
**Last updated:** [August 6, 2009, 8:03am UTC](https://www.ruby-forum.com/t/nomethoderror-undefined-method-post/173269 "2009-08-06T08:03:39Z")

</div>

HI, I am trying out some examples form this book “Build Your Own Ruby on Rails Web Applications” I have two views app/views/story/01-new.rhtml and exact ditto app/views/story/new.rhtml except the action is pointed co…

---

## [How do you access params that are both model based and non model based?](https://www.ruby-forum.com/t/how-do-you-access-params-that-are-both-model-based-and-non-model-based/173257)

<div class="topic-metadata">

**Author:** [@jgeggatt](https://www.ruby-forum.com/u/jgeggatt)\
**Replies:** 1\
**Last updated:** [August 6, 2009, 5:25am UTC](https://www.ruby-forum.com/t/how-do-you-access-params-that-are-both-model-based-and-non-model-based/173257 "2009-08-06T05:25:50Z")

</div>

Hi all Ive got a form thats based on a model that I need to put a drop down box and additional text field to build the description for the item. heres some quick code View \<%= form\_for (@shape) do |f| %\> \<%= f.text…

---

## [Is using script/runner to run a daemon a good idea?](https://www.ruby-forum.com/t/is-using-script-runner-to-run-a-daemon-a-good-idea/173266)

<div class="topic-metadata">

**Author:** [@Jedrin](https://www.ruby-forum.com/u/Jedrin)\
**Replies:** 1\
**Last updated:** [August 6, 2009, 5:18am UTC](https://www.ruby-forum.com/t/is-using-script-runner-to-run-a-daemon-a-good-idea/173266 "2009-08-06T05:18:02Z")

</div>

Suppose I have a daemon and I run it like this: ruby script/runner script/my\_daemon.rb This gives my daemon full access to the rails environment, and it may run for days, months, many months or longer. I realized this…

---

## [How do you access params that are both model based and non model based?](https://www.ruby-forum.com/t/how-do-you-access-params-that-are-both-model-based-and-non-model-based/173259)

<div class="topic-metadata">

**Author:** [@jgeggatt](https://www.ruby-forum.com/u/jgeggatt)\
**Replies:** 5\
**Last updated:** [August 6, 2009, 3:34am UTC](https://www.ruby-forum.com/t/how-do-you-access-params-that-are-both-model-based-and-non-model-based/173259 "2009-08-06T03:34:36Z")

</div>

Hi all Apologies first of all if this it the third time of seeing this, I posted previously but didn’t see it on the googlegroup archive or current discussions. Ive got a form that’s based on a model that I need to …

---

## [Home path not working in routes.rb](https://www.ruby-forum.com/t/home-path-not-working-in-routes-rb/173271)

<div class="topic-metadata">

**Author:** [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Replies:** 1\
**Last updated:** [August 6, 2009, 1:58am UTC](https://www.ruby-forum.com/t/home-path-not-working-in-routes-rb/173271 "2009-08-06T01:58:02Z")

</div>

Hi, I configured my home path in routes.rb yet when I load the root url the home path doesnt get loaded automatically. My routes.rb is as ActionController::Routing::Routes.draw do |map| map.home “”, :controller =\> “h…

---

## [Using a link conditionally in the view](https://www.ruby-forum.com/t/using-a-link-conditionally-in-the-view/173268)

<div class="topic-metadata">

**Author:** [@brad](https://www.ruby-forum.com/u/brad)\
**Replies:** 2\
**Last updated:** [August 6, 2009, 1:44am UTC](https://www.ruby-forum.com/t/using-a-link-conditionally-in-the-view/173268 "2009-08-06T01:44:34Z")

</div>

I want to render a different link\_to name and url path based on an objects “status” attribute in the index view. Would love to know how to get the logic out of the view, but barring that, when I use if/else statement…

---

## [Weird problem - some hidden process?](https://www.ruby-forum.com/t/weird-problem-some-hidden-process/173256)

<div class="topic-metadata">

**Author:** [@rajive\_jain](https://www.ruby-forum.com/u/rajive_jain)\
**Replies:** 2\
**Last updated:** [August 5, 2009, 11:08pm UTC](https://www.ruby-forum.com/t/weird-problem-some-hidden-process/173256 "2009-08-05T23:08:53Z")

</div>

Hi, Not sure if this is the correct forum so here goes. In development app, after login I have a redirect to welcome index page. Now, whenever I am in different sections of the web site (hence different controllers/a…

---

## [Cant find method in application\_helper from layout](https://www.ruby-forum.com/t/cant-find-method-in-application-helper-from-layout/173214)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 3\
**Last updated:** [August 5, 2009, 9:46pm UTC](https://www.ruby-forum.com/t/cant-find-method-in-application-helper-from-layout/173214 "2009-08-05T21:46:18Z")

</div>

I am having some trouble with an old app I need to work on… I have managed to get it mostly working with Rails 2.3, but I have run into this problem: undefined method \`class\_current\_controller?’ for #ActionView::Base…

---

## [Return encryption non-ssl or https - is it necessary?](https://www.ruby-forum.com/t/return-encryption-non-ssl-or-https-is-it-necessary/173207)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 3\
**Last updated:** [August 5, 2009, 9:10pm UTC](https://www.ruby-forum.com/t/return-encryption-non-ssl-or-https-is-it-necessary/173207 "2009-08-05T21:10:48Z")

</div>

Hi all, I’m working on a non-active merchant setup through paypal using just the standard plan, which is currently free. I’ve already setup my site with IPN and openssl cert/pems. I’m passing all data to paypal 100%…

---

## [Ruby 1.9.1p0 (2009-01-30 revision 21907)](https://www.ruby-forum.com/t/ruby-1-9-1p0-2009-01-30-revision-21907/173250)

<div class="topic-metadata">

**Author:** [@calvin98115](https://www.ruby-forum.com/u/calvin98115)\
**Replies:** 1\
**Last updated:** [August 5, 2009, 8:53pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1p0-2009-01-30-revision-21907/173250 "2009-08-05T20:53:05Z")

</div>

Hi, I am working on Windows XP and have install Ruby 1.9.1. After extracting Ruby 1.9.1 to c:\\ruby I was able to issue ‘ruby -v’ and see that the intended version installs. When I tried checking the rubygems versio…

---

## [Ruby 1.9.1](https://www.ruby-forum.com/t/ruby-1-9-1/173253)

<div class="topic-metadata">

**Author:** [@rubynewbie](https://www.ruby-forum.com/u/rubynewbie)\
**Replies:** 4\
**Last updated:** [August 5, 2009, 8:22pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1/173253 "2009-08-05T20:22:04Z")

</div>

Our company is running Ruby 1.8.6 patch 111. Is it possible to install Ruby 1.9.1 on the same machines to test the same application? If so what is the recommended strategy for having side-by-side installations and ho…

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

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