# Rails

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

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

---

## [Auto complete issue with ie7](https://www.ruby-forum.com/t/auto-complete-issue-with-ie7/147810)

<div class="topic-metadata">

**Author:** [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Replies:** 1\
**Last updated:** [September 5, 2008, 6:54pm UTC](https://www.ruby-forum.com/t/auto-complete-issue-with-ie7/147810 "2008-09-05T18:54:22Z")

</div>

Hi all, i was using auto complete feature in my rails app, when i used to type a character in my text box it responds very well and displays all the items match with that character. The problem is when typed say lett…

---

## [Moving HTML out of a model](https://www.ruby-forum.com/t/moving-html-out-of-a-model/147772)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 3\
**Last updated:** [September 5, 2008, 6:23pm UTC](https://www.ruby-forum.com/t/moving-html-out-of-a-model/147772 "2008-09-05T18:23:21Z")

</div>

G’day folks. My RentalMap model uses ym4r\_gm to generate a Google map and plot markers on the map. However, a marker’s body contains HTML. It feels dirty to put HTML in the model, but the markers should be plotted by …

---

## [Closing HTML Tags, or Containing HTML](https://www.ruby-forum.com/t/closing-html-tags-or-containing-html/146583)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 6\
**Last updated:** [September 5, 2008, 6:04pm UTC](https://www.ruby-forum.com/t/closing-html-tags-or-containing-html/146583 "2008-09-05T18:04:03Z")

</div>

How are you gentlemen? I have a view where I need to render some HTML stored in site.html\_code \<%= site.html\_code %\> The problem is, when I do that, it changes all the links on the rest of the page that are pulled in…

---

## [Ruby on Rails Developer needed in Parsippany, NJ](https://www.ruby-forum.com/t/ruby-on-rails-developer-needed-in-parsippany-nj/147823)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 5, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-needed-in-parsippany-nj/147823 "2008-09-05T17:57:35Z")

</div>

Hi, This is Sivaram from IT Trailblazers. We have an immediate direct client requirement for Ruby on Rails Developer in Parsippany, NJ Duration- Long Term Required Skills: Should have good experience in web based …

---

## [Protecting records from public view](https://www.ruby-forum.com/t/protecting-records-from-public-view/147781)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 12\
**Last updated:** [September 5, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/protecting-records-from-public-view/147781 "2008-09-05T17:40:34Z")

</div>

OK, sorry mental block, I do this sort of thing at the moment redirect\_to :action =\> ‘show\_invoice’, :id =\> @enquiry def show\_invoice @enquiry = Enquiry.find(params\[:id\]) end This works fine as far as it goes, it …

---

## [A beginner in Ruby rails](https://www.ruby-forum.com/t/a-beginner-in-ruby-rails/147788)

<div class="topic-metadata">

**Author:** [@Thadiyan](https://www.ruby-forum.com/u/Thadiyan)\
**Replies:** 1\
**Last updated:** [September 5, 2008, 5:13pm UTC](https://www.ruby-forum.com/t/a-beginner-in-ruby-rails/147788 "2008-09-05T17:13:03Z")

</div>

Hai…Friends… I am new in this world o ruby...I am a beginner.I am very keen to learn ruby and very much interested in developing web applications.According to mu knowledge rails is a framework mainly used fo…

---

## [Remote\_function's JS output will not execute](https://www.ruby-forum.com/t/remote-functions-js-output-will-not-execute/147813)

<div class="topic-metadata">

**Author:** [@temesta](https://www.ruby-forum.com/u/temesta)\
**Replies:** 2\
**Last updated:** [September 5, 2008, 4:58pm UTC](https://www.ruby-forum.com/t/remote-functions-js-output-will-not-execute/147813 "2008-09-05T16:58:19Z")

</div>

Hi, this is weird. I’m calling this line and firebug is complaining about: ‘invalid assignment left-hand side’ \<%= javascript\_tag(remote\_function(:url =\>ctemplates\_path(),:with=\>‘resulttarget=sidebar\_templatere…

---

## [Ð¢Ð¾Ð½Ð¾Ð¼ÐµÑ‚Ñ€ Ð°Ð²Ñ‚Ð¾Ð¼Ð°Ñ‚](https://www.ruby-forum.com/t/d-d-d-d-d-d-n-n-d-d-n-d-d-d-n/147814)

<div class="topic-metadata">

**Author:** [@ShopBody.ru](https://www.ruby-forum.com/u/ShopBody.ru)\
**Replies:** 0\
**Last updated:** [September 5, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/d-d-d-d-d-d-n-n-d-d-n-d-d-d-n/147814 "2008-09-05T16:43:09Z")

</div>

ðÏ ÓÔÁÔÉÓÔÉËÅ × òæ ËÁÖÄÙÊ ÇÏÄ ÏÔ ÓÅÒÄÅÞÎÏ-ÓÏÓÕÄÉÓÔÙÈ ÚÁÂÏÌÅ×ÁÎÉÊ ÐÏÇÉÂÁÅÔ 1 ÍÉÌÌÉÏÎ 300 ÔÙÓÑÞ ÞÅÌÏ×ÅË. òÁÚ×ÉÔÉÅ ÓÅÒÄÅÞÎÏ-ÓÏÓÕÄÉÓÔÙÈ ÏÓÌÏÖÎÅÎÉÊ ÎÁÐÒÑÍÕÀ Ó×ÑÚÁÎÏ Ó ÕÒÏ×ÎÅÍ ÁÒÔÅÒÉÁÌØÎÏÇÏ ÄÁ×ÌÅÎÉÑ. ôÏÎÏÍÅÔÒ Á×ÔÏÍÁÔ http:/…

---

## [Why we need routes.rb](https://www.ruby-forum.com/t/why-we-need-routes-rb/147799)

<div class="topic-metadata">

**Author:** [@palani](https://www.ruby-forum.com/u/palani)\
**Replies:** 2\
**Last updated:** [September 5, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/why-we-need-routes-rb/147799 "2008-09-05T16:36:07Z")

</div>

Hi, Can anyone please explain me why we need routes.rb also explain the basic idea abt routes.rb file.

---

## [Installing Firebird adapter with ActiveRecord 2.1.1](https://www.ruby-forum.com/t/installing-firebird-adapter-with-activerecord-2-1-1/147811)

<div class="topic-metadata">

**Author:** [@Anderson\_Farias](https://www.ruby-forum.com/u/Anderson_Farias)\
**Replies:** 0\
**Last updated:** [September 5, 2008, 4:29pm UTC](https://www.ruby-forum.com/t/installing-firebird-adapter-with-activerecord-2-1-1/147811 "2008-09-05T16:29:39Z")

</div>

Hi all, Is it possible, and if so, how to install firebird activerecord adapter (based on FireRuby) along with rails/activerecord 2.1.1 Thanks for any help, Regards, Anderson Farias

---

## [Actionmailer sends from commandline but not from web](https://www.ruby-forum.com/t/actionmailer-sends-from-commandline-but-not-from-web/147741)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 1\
**Last updated:** [September 5, 2008, 4:02pm UTC](https://www.ruby-forum.com/t/actionmailer-sends-from-commandline-but-not-from-web/147741 "2008-09-05T16:02:01Z")

</div>

Hello all, I’m having trouble with this simple email class I made for postbacks. When I run this from the command line an email is sent, however when I access this .rb file through a browser nothing happens. #!/usr/…

---

## [Can't find RMagick on Windows?](https://www.ruby-forum.com/t/cant-find-rmagick-on-windows/147744)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 1\
**Last updated:** [September 5, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/cant-find-rmagick-on-windows/147744 "2008-09-05T15:46:17Z")

</div>

I followed the RMagick installation instructions for Windows and everything appeared to go fine. I added the require ‘rubygems’ require ‘RMagick’ lines to my controller. I get a MissingSourceFile error, with the msg…

---

## [Recursvie Search Refactoring](https://www.ruby-forum.com/t/recursvie-search-refactoring/147800)

<div class="topic-metadata">

**Author:** [@paerez](https://www.ruby-forum.com/u/paerez)\
**Replies:** 0\
**Last updated:** [September 5, 2008, 3:44pm UTC](https://www.ruby-forum.com/t/recursvie-search-refactoring/147800 "2008-09-05T15:44:56Z")

</div>

Hi, All I was wondering if somebody could suggest a better way to do it. I got it working but it’s a bit dirty and returns too much extra fluff. I’m trying to do a recursive search on an a collection of Objects. A be…

---

## [Rails lack of documentation (render nested layouts)](https://www.ruby-forum.com/t/rails-lack-of-documentation-render-nested-layouts/147538)

<div class="topic-metadata">

**Author:** [@dracko](https://www.ruby-forum.com/u/dracko)\
**Replies:** 7\
**Last updated:** [September 5, 2008, 3:41pm UTC](https://www.ruby-forum.com/t/rails-lack-of-documentation-render-nested-layouts/147538 "2008-09-05T15:41:34Z")

</div>

I’ve posted some days ago about the lack of proper documentation for the testing framework used by Rails. Today, among other days, I noted one more method missing documentation. I’ve read the past year about nested la…

---

## [Gsub jocks - Do you have an example that does this?](https://www.ruby-forum.com/t/gsub-jocks-do-you-have-an-example-that-does-this/147793)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [September 5, 2008, 3:36pm UTC](https://www.ruby-forum.com/t/gsub-jocks-do-you-have-an-example-that-does-this/147793 "2008-09-05T15:36:53Z")

</div>

I know I’ve been lazy not learning RegExp and gsub but I simply never use it except for this one time. I’ll be importing .csv records and sometimes they’ll be dirty with characters like ( # " ) and I’d like to change …

---

## [Moving code to model from controller](https://www.ruby-forum.com/t/moving-code-to-model-from-controller/147679)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 4\
**Last updated:** [September 5, 2008, 3:03pm UTC](https://www.ruby-forum.com/t/moving-code-to-model-from-controller/147679 "2008-09-05T15:03:23Z")

</div>

Hi Last day I read an article says that business logic should be in model Till now my coding method was writing complete code in controller and nothing in model I would like to change that style. Sorry now only I bec…

---

## [A few newbie questions about RoR](https://www.ruby-forum.com/t/a-few-newbie-questions-about-ror/147748)

<div class="topic-metadata">

**Author:** [@olivier\_14](https://www.ruby-forum.com/u/olivier_14)\
**Replies:** 8\
**Last updated:** [September 5, 2008, 2:48pm UTC](https://www.ruby-forum.com/t/a-few-newbie-questions-about-ror/147748 "2008-09-05T14:48:27Z")

</div>

Hi, my website is developed by a webdesign office, but now I want to be able to change the website myself. I’ve knowledge about php and html but I’m new to RoR. So now I want to create a new page on our site, but I d…

---

## [Newbie question - Using RoR with mysql on leopard](https://www.ruby-forum.com/t/newbie-question-using-ror-with-mysql-on-leopard/147773)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [September 5, 2008, 12:18pm UTC](https://www.ruby-forum.com/t/newbie-question-using-ror-with-mysql-on-leopard/147773 "2008-09-05T12:18:02Z")

</div>

Hi, I am completely new to RoR and I’m just going through the lynda.com tutorial to try and get me started. I have everything installed and running, the only problem is that the tutorial uses mysql and as I am sure yo…

---

## [UI framework choice](https://www.ruby-forum.com/t/ui-framework-choice/147774)

<div class="topic-metadata">

**Author:** [@Tud](https://www.ruby-forum.com/u/Tud)\
**Replies:** 0\
**Last updated:** [September 5, 2008, 9:11am UTC](https://www.ruby-forum.com/t/ui-framework-choice/147774 "2008-09-05T09:11:51Z")

</div>

Hello, I need to develop a Rails application and to choose one framework for the user interface. These are my thoughts about the possible choices jquery + one css framework (blueprint, Yui css, tripoli, …) pros I…

---

## [Helpers in rails to get current IP number](https://www.ruby-forum.com/t/helpers-in-rails-to-get-current-ip-number/147042)

<div class="topic-metadata">

**Author:** [@Thib21](https://www.ruby-forum.com/u/Thib21)\
**Replies:** 3\
**Last updated:** [September 5, 2008, 9:01am UTC](https://www.ruby-forum.com/t/helpers-in-rails-to-get-current-ip-number/147042 "2008-09-05T09:01:18Z")

</div>

Hello again, how can I get my current IP address using Ajax helpers, in rails ? I have found solution to get it with java functions : but I would like to avoid using java, if it’s possible… any idea ? Thanks, Thi…

---

## [ActiveResource testing](https://www.ruby-forum.com/t/activeresource-testing/147770)

<div class="topic-metadata">

**Author:** [@reis](https://www.ruby-forum.com/u/reis)\
**Replies:** 0\
**Last updated:** [September 5, 2008, 9:00am UTC](https://www.ruby-forum.com/t/activeresource-testing/147770 "2008-09-05T09:00:42Z")

</div>

Hi, I’m trying to make some good testing on active resources, but I’ve some trouble with the post method. Basically this is my mock, where I set the POST verb and the expected URI. ActiveResource::HttpMock.respond\_to…

---

## [Implementing Group By and Sum](https://www.ruby-forum.com/t/implementing-group-by-and-sum/147771)

<div class="topic-metadata">

**Author:** [@Rails\_Novice](https://www.ruby-forum.com/u/Rails_Novice)\
**Replies:** 0\
**Last updated:** [September 5, 2008, 9:00am UTC](https://www.ruby-forum.com/t/implementing-group-by-and-sum/147771 "2008-09-05T09:00:42Z")

</div>

I want to perfom the sql query, SELECT employee\_id, sum(period) FROM activity\_charts group by employee\_id So far, I was able to do SELECT employee\_id, period FROM activity\_charts group by employee\_id My report\_contr…

---

## [Rescue rails errors](https://www.ruby-forum.com/t/rescue-rails-errors/147491)

<div class="topic-metadata">

**Author:** [@mrdamien](https://www.ruby-forum.com/u/mrdamien)\
**Replies:** 4\
**Last updated:** [September 5, 2008, 8:49am UTC](https://www.ruby-forum.com/t/rescue-rails-errors/147491 "2008-09-05T08:49:00Z")

</div>

Hi all, Sometime, I get the following error in my application: ActionController::InvalidAuthenticityToken in ManageController#site\_servers ActionController::InvalidAuthenticityToken I tried to put the code in manage…

---

## [Weird weird DateTime object issue in rails 1.2.3](https://www.ruby-forum.com/t/weird-weird-datetime-object-issue-in-rails-1-2-3/147764)

<div class="topic-metadata">

**Author:** [@chirantan](https://www.ruby-forum.com/u/chirantan)\
**Replies:** 0\
**Last updated:** [September 5, 2008, 7:19am UTC](https://www.ruby-forum.com/t/weird-weird-datetime-object-issue-in-rails-1-2-3/147764 "2008-09-05T07:19:23Z")

</div>

Hi, For some reason, I need to work on Rails 1.2.3. I need to add hours and mins to a particular DateTime Object. I wrote the code on my machine using just Ruby (1.8.6) puts DateTime.new(1900) —\> 1900-01-01T00:00:00+…

---

## [Foreign\_key\_migrations plugin causing incorrect type columns to be created in test database](https://www.ruby-forum.com/t/foreign-key-migrations-plugin-causing-incorrect-type-columns-to-be-created-in-test-database/147760)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [September 5, 2008, 6:05am UTC](https://www.ruby-forum.com/t/foreign-key-migrations-plugin-causing-incorrect-type-columns-to-be-created-in-test-database/147760 "2008-09-05T06:05:05Z")

</div>

Just interested if any Rails developers who use foreign\_key\_migrations have come up against this or not? I’ve just raised this potential issue as a bug on RubyForge http://rubyforge.org/tracker/index.php?func=detail&…

---

## [Reflection on association / AssociationProxy](https://www.ruby-forum.com/t/reflection-on-association-associationproxy/147753)

<div class="topic-metadata">

**Author:** [@costi](https://www.ruby-forum.com/u/costi)\
**Replies:** 1\
**Last updated:** [September 5, 2008, 5:27am UTC](https://www.ruby-forum.com/t/reflection-on-association-associationproxy/147753 "2008-09-05T05:27:05Z")

</div>

When the object referenced by the association exists, it’s a real AssociationProxy, and all the methods work: http://apidock.com/rails/ActiveRecord/Associations/AssociationProxy Container.first.pickup\_at.class.to\_s …

---

## [Externals project: a way to do svn:externals -like actions with any combo of SCMs](https://www.ruby-forum.com/t/externals-project-a-way-to-do-svn-externals-like-actions-with-any-combo-of-scms/147756)

<div class="topic-metadata">

**Author:** [@Miles\_G](https://www.ruby-forum.com/u/Miles_G)\
**Replies:** 0\
**Last updated:** [September 5, 2008, 3:55am UTC](https://www.ruby-forum.com/t/externals-project-a-way-to-do-svn-externals-like-actions-with-any-combo-of-scms/147756 "2008-09-05T03:55:20Z")

</div>

I’ve just finished my first release of an open source project for doing svn:externals -like actions/deployment with any combination of subprojects managed under different source control management systems. I have seve…

---

## [Oliver oliver æƒ³è·Ÿæ‚¨èŠå¤©](https://www.ruby-forum.com/t/oliver-oliver-ae-e-yae-e-sa/147752)

<div class="topic-metadata">

**Author:** [@oliver\_oliver](https://www.ruby-forum.com/u/oliver_oliver)\
**Replies:** 0\
**Last updated:** [September 5, 2008, 3:08am UTC](https://www.ruby-forum.com/t/oliver-oliver-ae-e-yae-e-sa/147752 "2008-09-05T03:08:28Z")

</div>

oliver oliver Ï£ÍûÊ¹ÓÃ Google ×î¿áµÄ¼¸¸öÐÂ²úÆ·ÓëÄú¸üºÃµØ±£³ÖÁªÏµ¡£ Èç¹ûÄúÒÑÓµÓÐ Gmail »ò Google Talk£¬Çë·ÃÎÊ£º ÄúÐèÒªµã»÷´ËÁ´½Ó²ÅÄÜÓë oliver oliver ÁÄÌì¡£ Òª»ñµÃ Gmail£¨Google Ìá¹©µÄ³¬¹ý 2,800 Õ××Ö½Ú´æ´¢¿Õ¼äµÄÃâ·Ñµç…

---

## [Eager load associations in Oracle problem with more than 1000 records](https://www.ruby-forum.com/t/eager-load-associations-in-oracle-problem-with-more-than-1000-records/147648)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [September 5, 2008, 12:47am UTC](https://www.ruby-forum.com/t/eager-load-associations-in-oracle-problem-with-more-than-1000-records/147648 "2008-09-05T00:47:35Z")

</div>

I think Rails 2.1 introduced a bug when eager loading of associations with Oracle. In 2.1 ActiveRecord loads the included table with a big ‘IN’ query: ‘where association.id in (1, 2, 3, 4…)’. The problem is that Or…

---

## [Easy way to redirect to "Please Wait" page while JSON request completes?](https://www.ruby-forum.com/t/easy-way-to-redirect-to-please-wait-page-while-json-request-completes/147749)

<div class="topic-metadata">

**Author:** [@typej](https://www.ruby-forum.com/u/typej)\
**Replies:** 1\
**Last updated:** [September 5, 2008, 12:30am UTC](https://www.ruby-forum.com/t/easy-way-to-redirect-to-please-wait-page-while-json-request-completes/147749 "2008-09-05T00:30:37Z")

</div>

Hello friends - I have a rails app that uses JSON to send requests to another server. That server processes the request and sends a JSON response back to the rails app. At first I was sending the requests using AJAX…

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

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