# Rails

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

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

---

## [Ruby on Rails drop down help](https://www.ruby-forum.com/t/ruby-on-rails-drop-down-help/134285)

<div class="topic-metadata">

**Author:** [@Craig\_O\_Connor](https://www.ruby-forum.com/u/Craig_O_Connor)\
**Replies:** 3\
**Last updated:** [August 24, 2009, 11:38am UTC](https://www.ruby-forum.com/t/ruby-on-rails-drop-down-help/134285 "2009-08-24T11:38:55Z")

</div>

Hi, I have a really simple problem with ruby on rails. Using a basic tutorial and scaffolding I have a form with lines like this: Game 1: \<%= Game.find('1').game %\> \<%= text\_field 'user', 'game\_1' %\> and I want to c…

---

## [Empty all cache?](https://www.ruby-forum.com/t/empty-all-cache/174279)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 3\
**Last updated:** [August 24, 2009, 11:11am UTC](https://www.ruby-forum.com/t/empty-all-cache/174279 "2009-08-24T11:11:29Z")

</div>

Hi, I just made a mistake to cache the index action and now I cannot figure out how to delete it? I have tried the following. restarted server set perform\_caching to false changed port changed cache store to differe…

---

## [Store data from one form in two separate mysql tables?](https://www.ruby-forum.com/t/store-data-from-one-form-in-two-separate-mysql-tables/174202)

<div class="topic-metadata">

**Author:** [@jimb](https://www.ruby-forum.com/u/jimb)\
**Replies:** 8\
**Last updated:** [August 24, 2009, 9:20am UTC](https://www.ruby-forum.com/t/store-data-from-one-form-in-two-separate-mysql-tables/174202 "2009-08-24T09:20:10Z")

</div>

Is it possible to store data from one form in two separate mysql tables? I need to do this because the amount of data which can be submitted via the form, exceeds the maximum mysql row size. If this is not possible, h…

---

## [Convert text to image](https://www.ruby-forum.com/t/convert-text-to-image/174271)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 3\
**Last updated:** [August 24, 2009, 9:18am UTC](https://www.ruby-forum.com/t/convert-text-to-image/174271 "2009-08-24T09:18:59Z")

</div>

Hi all… i am working on rails version 1.2.3 (it is must to work on version 1.2.3) & ruby 1.8.6. For my project i want to convert text in to images files… Is there any way for this…actually i need this because i am go…

---

## [Find unused items](https://www.ruby-forum.com/t/find-unused-items/174259)

<div class="topic-metadata">

**Author:** [@arwed](https://www.ruby-forum.com/u/arwed)\
**Replies:** 2\
**Last updated:** [August 24, 2009, 9:17am UTC](https://www.ruby-forum.com/t/find-unused-items/174259 "2009-08-24T09:17:49Z")

</div>

This works, but I am sure there is a better way todo this: GET /posts/1/edit def edit @post = Post.find(params\[:id\]) # Find user galleries that have not been used in posts yet usergalleries = Array.new @post.user.ga…

---

## [Rails Server's case sense dilemma](https://www.ruby-forum.com/t/rails-servers-case-sense-dilemma/174270)

<div class="topic-metadata">

**Author:** [@dharshannew](https://www.ruby-forum.com/u/dharshannew)\
**Replies:** 2\
**Last updated:** [August 24, 2009, 8:00am UTC](https://www.ruby-forum.com/t/rails-servers-case-sense-dilemma/174270 "2009-08-24T08:00:43Z")

</div>

Hi , I found something strange with Mongrel Server , When i started my application with RUBY SCRIPT/SERVER -P 3002 application starts successfully but can’t render anything on browser. gives error =\> Unable to con…

---

## [Routing problems for different formats](https://www.ruby-forum.com/t/routing-problems-for-different-formats/174262)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 4\
**Last updated:** [August 24, 2009, 4:59am UTC](https://www.ruby-forum.com/t/routing-problems-for-different-formats/174262 "2009-08-24T04:59:06Z")

</div>

I am having 2 similar problems with routing. With Rails if I make a js request using jQuery I always have to append a “.js” extension to allow the request to be handled appropriately. If I don’t append a js extens…

---

## [Array Manupulation](https://www.ruby-forum.com/t/array-manupulation/174243)

<div class="topic-metadata">

**Author:** [@pakothawade](https://www.ruby-forum.com/u/pakothawade)\
**Replies:** 5\
**Last updated:** [August 24, 2009, 4:20am UTC](https://www.ruby-forum.com/t/array-manupulation/174243 "2009-08-24T04:20:13Z")

</div>

Can anyone help me on the following? I have the following 2 arrays, how do i get c as a result of a and b. The elements should be in the specified order. a = \["(modulable\_type=?) AND (parent\_id=?) AND (status=?)",“Ta…

---

## [Tinymce problem](https://www.ruby-forum.com/t/tinymce-problem/174238)

<div class="topic-metadata">

**Author:** [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Replies:** 3\
**Last updated:** [August 23, 2009, 10:04pm UTC](https://www.ruby-forum.com/t/tinymce-problem/174238 "2009-08-23T22:04:41Z")

</div>

Hi, I am using tinymce for giving text editor the editing options. The problem its giving me is that if I press 1 enter, it actually ends up with two enters. Example: In editor I tpye " abc abccc" But it ends up…

---

## [Adding products from multiple views in multiple controllers](https://www.ruby-forum.com/t/adding-products-from-multiple-views-in-multiple-controllers/174212)

<div class="topic-metadata">

**Author:** [@little\_kostas](https://www.ruby-forum.com/u/little_kostas)\
**Replies:** 1\
**Last updated:** [August 23, 2009, 8:44pm UTC](https://www.ruby-forum.com/t/adding-products-from-multiple-views-in-multiple-controllers/174212 "2009-08-23T20:44:38Z")

</div>

Hi guys, i want to create a cart i my application for ordering books (this will work only in localhost not in production). Is there any tutorial explaining how can this be implemented? Or any good plugin with instru…

---

## [Best way of moving some jQuery from a view helper](https://www.ruby-forum.com/t/best-way-of-moving-some-jquery-from-a-view-helper/174258)

<div class="topic-metadata">

**Author:** [@aftershock](https://www.ruby-forum.com/u/aftershock)\
**Replies:** 0\
**Last updated:** [August 23, 2009, 8:40pm UTC](https://www.ruby-forum.com/t/best-way-of-moving-some-jquery-from-a-view-helper/174258 "2009-08-23T20:40:15Z")

</div>

I have a helper that uses some jQuery code that I would like to move out of the helper method. I am trying to move it to application.js but it will probably end up in a different file. I have two reasons for wanting …

---

## [Domain list for Google Custom search engine](https://www.ruby-forum.com/t/domain-list-for-google-custom-search-engine/174256)

<div class="topic-metadata">

**Author:** [@gene\_tani](https://www.ruby-forum.com/u/gene_tani)\
**Replies:** 0\
**Last updated:** [August 23, 2009, 6:42pm UTC](https://www.ruby-forum.com/t/domain-list-for-google-custom-search-engine/174256 "2009-08-23T18:42:14Z")

</div>

I’m not able to find any Google custom search engines for ruby/rails that are current and show what domains are covered so i went into delicious and counted up the URL’s tagged “ruby” for the last 6 days or so. Just…

---

## [Calculate Last Day of Week](https://www.ruby-forum.com/t/calculate-last-day-of-week/174244)

<div class="topic-metadata">

**Author:** [@pakothawade](https://www.ruby-forum.com/u/pakothawade)\
**Replies:** 2\
**Last updated:** [August 23, 2009, 5:48pm UTC](https://www.ruby-forum.com/t/calculate-last-day-of-week/174244 "2009-08-23T17:48:23Z")

</div>

Hi, Does anyone know how to calculate last day of week in Ruby? Date.today gives todays date Date.tomorrow gives tomorrow’s date What abt end of week ? Thanks, Pratik

---

## [Interesting rails blogs](https://www.ruby-forum.com/t/interesting-rails-blogs/174249)

<div class="topic-metadata">

**Author:** [@Kirill\_Moiseev](https://www.ruby-forum.com/u/Kirill_Moiseev)\
**Replies:** 0\
**Last updated:** [August 23, 2009, 1:13pm UTC](https://www.ruby-forum.com/t/interesting-rails-blogs/174249 "2009-08-23T13:13:19Z")

</div>

Blogs is great way of discovering and learning specific subjects:) As for me the most interesting posts in blogs is with code snippets, news and use cases. I prefer: http://feeds.feedburner.com/RidingRails http://f…

---

## [Install Aptana Radrails into Eclipse Galileo - Simple Tutorial](https://www.ruby-forum.com/t/install-aptana-radrails-into-eclipse-galileo-simple-tutorial/174248)

<div class="topic-metadata">

**Author:** [@CCH](https://www.ruby-forum.com/u/CCH)\
**Replies:** 0\
**Last updated:** [August 23, 2009, 1:13pm UTC](https://www.ruby-forum.com/t/install-aptana-radrails-into-eclipse-galileo-simple-tutorial/174248 "2009-08-23T13:13:18Z")

</div>

Download Eclipse 3.50 aka Galileo Launch Eclipse Click Help/Install Software Install Aptana Studio 1.5 as a plug into Eclipse More at Rails… Rails… Rails CCH

---

## [Model Attributes](https://www.ruby-forum.com/t/model-attributes/174219)

<div class="topic-metadata">

**Author:** [@Glen](https://www.ruby-forum.com/u/Glen)\
**Replies:** 3\
**Last updated:** [August 23, 2009, 1:06pm UTC](https://www.ruby-forum.com/t/model-attributes/174219 "2009-08-23T13:06:17Z")

</div>

I’m having trouble with a model: class Job \< ActiveRecord::Base belongs\_to :company belongs\_to :city belongs\_to :region belongs\_to :country belongs\_to :department belongs\_to :user has\_many :comments accepts\_nest…

---

## [Noob learning DRY](https://www.ruby-forum.com/t/noob-learning-dry/174229)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [August 23, 2009, 1:03pm UTC](https://www.ruby-forum.com/t/noob-learning-dry/174229 "2009-08-23T13:03:57Z")

</div>

I am very new to RoR (this is my second day). I have started my first application, and want to follow best practices as much as possible. I created a select box that lists all the items in a table column on a new.ht…

---

## [Version control database config without exposing passwords](https://www.ruby-forum.com/t/version-control-database-config-without-exposing-passwords/174236)

<div class="topic-metadata">

**Author:** [@davetron5000](https://www.ruby-forum.com/u/davetron5000)\
**Replies:** 1\
**Last updated:** [August 23, 2009, 12:58pm UTC](https://www.ruby-forum.com/t/version-control-database-config-without-exposing-passwords/174236 "2009-08-23T12:58:05Z")

</div>

I have a Rails app that I’m sharing via GitHub, but that I’m also using on my website. It has some configuration options that I don’t wish to share, but that I’d like version controlled. I’d also like to make it dif…

---

## [Install Aptana Radrails into Eclipse Galileo - Simple Tutorial](https://www.ruby-forum.com/t/install-aptana-radrails-into-eclipse-galileo-simple-tutorial/174245)

<div class="topic-metadata">

**Author:** [@CCH](https://www.ruby-forum.com/u/CCH)\
**Replies:** 0\
**Last updated:** [August 23, 2009, 11:36am UTC](https://www.ruby-forum.com/t/install-aptana-radrails-into-eclipse-galileo-simple-tutorial/174245 "2009-08-23T11:36:09Z")

</div>

Hi All For Radrail users who would like to use it within Eclipse Galileo, you may want to follow this simple tutorial :- Download Eclipse 3.50 aka Galileo Launch Eclipse Click Help/Install Software Install …

---

## [Googlebot keeps throwing MethodNotAllowed errors in Application#index](https://www.ruby-forum.com/t/googlebot-keeps-throwing-methodnotallowed-errors-in-application-index/174241)

<div class="topic-metadata">

**Author:** [@andrew](https://www.ruby-forum.com/u/andrew)\
**Replies:** 1\
**Last updated:** [August 23, 2009, 10:00am UTC](https://www.ruby-forum.com/t/googlebot-keeps-throwing-methodnotallowed-errors-in-application-index/174241 "2009-08-23T10:00:10Z")

</div>

Hi guys, Does anyone know how to solve this problem? As long as my app has lived, Googlebot (IP 66.249.68.199) brings up the ActionController::MethodNotAllowed error several times a week, saying “Only put requests ar…

---

## [Javascript\_include\_tag helper No route](https://www.ruby-forum.com/t/javascript-include-tag-helper-no-route/174230)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 3\
**Last updated:** [August 23, 2009, 9:30am UTC](https://www.ruby-forum.com/t/javascript-include-tag-helper-no-route/174230 "2009-08-23T09:30:19Z")

</div>

in the header of my layout I use the following helper \<%= javascript\_include\_tag ‘accordion.js’, ‘application.js’ %\> but I get an error when running Processing ApplicationController#index (for 127.0.0.1 at 2009-08-22 …

---

## [Requesting a remote ip in plugin](https://www.ruby-forum.com/t/requesting-a-remote-ip-in-plugin/174132)

<div class="topic-metadata">

**Author:** [@mahesh](https://www.ruby-forum.com/u/mahesh)\
**Replies:** 2\
**Last updated:** [August 23, 2009, 6:11am UTC](https://www.ruby-forum.com/t/requesting-a-remote-ip-in-plugin/174132 "2009-08-23T06:11:55Z")

</div>

Im creating plugin for limiting the ip, i have included the plugin name in my controller Controller: class AdminController \< ApplicationController acts\_as\_ratelimit def login session\[:user\_id\] = nil if request.pos…

---

## [Googlebot keeps throwing MethodNotAllowed errors in Application#index](https://www.ruby-forum.com/t/googlebot-keeps-throwing-methodnotallowed-errors-in-application-index/174240)

<div class="topic-metadata">

**Author:** [@andrew](https://www.ruby-forum.com/u/andrew)\
**Replies:** 0\
**Last updated:** [August 23, 2009, 5:53am UTC](https://www.ruby-forum.com/t/googlebot-keeps-throwing-methodnotallowed-errors-in-application-index/174240 "2009-08-23T05:53:46Z")

</div>

Hi guys, Does anyone know how to solve this problem? As long as my app has lived, Googlebot (IP 66.249.68.199) brings up the ActionController::MethodNotAllowed error several times a week, saying “Only put requests ar…

---

## [Building a social Networking site](https://www.ruby-forum.com/t/building-a-social-networking-site/174170)

<div class="topic-metadata">

**Author:** [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Replies:** 4\
**Last updated:** [August 23, 2009, 4:41am UTC](https://www.ruby-forum.com/t/building-a-social-networking-site/174170 "2009-08-23T04:41:11Z")

</div>

Hi everyone. I’m looking to build a social networking type site in Ruby on Rails. I’m running on ruby 1.8.7, and have noticed there is a tutorial available called ‘’RailSpace’’. What I needed to know is, has anyone e…

---

## [Rails app going nuts at 100% cpu](https://www.ruby-forum.com/t/rails-app-going-nuts-at-100-cpu/172927)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 29\
**Last updated:** [August 23, 2009, 4:37am UTC](https://www.ruby-forum.com/t/rails-app-going-nuts-at-100-cpu/172927 "2009-08-23T04:37:40Z")

</div>

Hi, My rails app has been growing in LOC, everything was running fine, until someday (one or two weeks ago) where I pushed an update to my server: after a random period of time, my ruby processes eat 100% of the cpu, …

---

## [Quick questions on extensions/overrides](https://www.ruby-forum.com/t/quick-questions-on-extensions-overrides/174198)

<div class="topic-metadata">

**Author:** [@BallaBall](https://www.ruby-forum.com/u/BallaBall)\
**Replies:** 6\
**Last updated:** [August 23, 2009, 3:20am UTC](https://www.ruby-forum.com/t/quick-questions-on-extensions-overrides/174198 "2009-08-23T03:20:58Z")

</div>

Say I want to extend/override a method on something like ActionController. Where should I put this “monkeypatch”? Currently I am putting it in config/initializers but Im thinking there is a better place. Thanks

---

## [Rails params-hash. jQuery have this?](https://www.ruby-forum.com/t/rails-params-hash-jquery-have-this/174231)

<div class="topic-metadata">

**Author:** [@Audrey\_A\_Lee](https://www.ruby-forum.com/u/Audrey_A_Lee)\
**Replies:** 1\
**Last updated:** [August 23, 2009, 12:58am UTC](https://www.ruby-forum.com/t/rails-params-hash-jquery-have-this/174231 "2009-08-23T00:58:42Z")

</div>

Hello, Rails has a hash named “params” which contains information from my current URL. Does jQuery have something like params? Related question: What is the jQuery-way of getting data out of the current URL? -Audre…

---

## [Using link\_to and :host](https://www.ruby-forum.com/t/using-link-to-and-host/174224)

<div class="topic-metadata">

**Author:** [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Replies:** 1\
**Last updated:** [August 22, 2009, 11:24pm UTC](https://www.ruby-forum.com/t/using-link-to-and-host/174224 "2009-08-22T23:24:27Z")

</div>

Is it possible to use link\_to and specify a :host WHILE using a polymorphic URL? I wanted to do this \<%= link\_to item.name, item, :host =\> “www.items.com”, :only\_path =\> false rescue “” %\> and ended up having to do …

---

## [How to freeze v 2.3.2?](https://www.ruby-forum.com/t/how-to-freeze-v-2-3-2/174039)

<div class="topic-metadata">

**Author:** [@aftershock](https://www.ruby-forum.com/u/aftershock)\
**Replies:** 11\
**Last updated:** [August 22, 2009, 11:14pm UTC](https://www.ruby-forum.com/t/how-to-freeze-v-2-3-2/174039 "2009-08-22T23:14:01Z")

</div>

My app doesn’t like 2.3.3 mainly due to a known bug in Rails that will be fixed in 2.3.4 I had 2.3.2 frozen until I downloaded and tested 2.3.3 Now I want to freeze 2.3.2 back into my app but rake rails:freeze:gems i…

---

## [What to do before launching v1.0?](https://www.ruby-forum.com/t/what-to-do-before-launching-v1-0/174149)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 12\
**Last updated:** [August 22, 2009, 11:01pm UTC](https://www.ruby-forum.com/t/what-to-do-before-launching-v1-0/174149 "2009-08-22T23:01:46Z")

</div>

Iâ€™m launching a rails website, the app is written and works, undoubtedly itâ€™ll be an unmitigated disaster when I launch but none the less I thought Iâ€™d least attempt to give myself the best chance of success by …

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

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