# Rails

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

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

---

## [Passing data to a view: How prevent the instance variables?](https://www.ruby-forum.com/t/passing-data-to-a-view-how-prevent-the-instance-variables/126872)

<div class="topic-metadata">

**Author:** [@i72gumaj](https://www.ruby-forum.com/u/i72gumaj)\
**Replies:** 3\
**Last updated:** [January 23, 2008, 6:34pm UTC](https://www.ruby-forum.com/t/passing-data-to-a-view-how-prevent-the-instance-variables/126872 "2008-01-23T18:34:01Z")

</div>

Greetings, i want pass data to my view without using instace variables. Usually I make renders to partials for pass local variables and preventing use instace variables : Example: render( :partial =\> “filename”, :l…

---

## [Using the DB for logging / tracking app statistics](https://www.ruby-forum.com/t/using-the-db-for-logging-tracking-app-statistics/126941)

<div class="topic-metadata">

**Author:** [@armstheykill](https://www.ruby-forum.com/u/armstheykill)\
**Replies:** 2\
**Last updated:** [January 23, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/using-the-db-for-logging-tracking-app-statistics/126941 "2008-01-23T18:28:07Z")

</div>

Hi all, I am building an administrative front-end to a rails app and the requirements seem awfuly write heavy to me… The client wants to see things like: \*Total logins (per day) \*New accounts created (per day) \*Pa…

---

## [How to expire session on window close](https://www.ruby-forum.com/t/how-to-expire-session-on-window-close/196580)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 2\
**Last updated:** [January 23, 2008, 5:28pm UTC](https://www.ruby-forum.com/t/how-to-expire-session-on-window-close/196580 "2008-01-23T17:28:48Z")

</div>

Hi all, I created one login page using LDAP server authentication now when i have logged into the system and without logout i just closed the window and when i again come and open the window it’s come as log in. But …

---

## [Problem with Ajax when updating to Rails 2.0](https://www.ruby-forum.com/t/problem-with-ajax-when-updating-to-rails-2-0/126944)

<div class="topic-metadata">

**Author:** [@amagoia](https://www.ruby-forum.com/u/amagoia)\
**Replies:** 0\
**Last updated:** [January 23, 2008, 5:27pm UTC](https://www.ruby-forum.com/t/problem-with-ajax-when-updating-to-rails-2-0/126944 "2008-01-23T17:27:02Z")

</div>

Hello, We have just moved to Rails 2.0, and now the ajax functions don’t work properly. I’m not 100% sure that the problem comes from the change of the Rails version, but I think it is the most probably. In fact, we …

---

## [Httprequest on server side... activeResource?](https://www.ruby-forum.com/t/httprequest-on-server-side-activeresource/126898)

<div class="topic-metadata">

**Author:** [@gabru](https://www.ruby-forum.com/u/gabru)\
**Replies:** 2\
**Last updated:** [January 23, 2008, 5:06pm UTC](https://www.ruby-forum.com/t/httprequest-on-server-side-activeresource/126898 "2008-01-23T17:06:29Z")

</div>

hello all, i try to use google’s geocoding service it lets me call an url with a given address and receive information like e.g. latitude, longitude, etc. now i was wondering whats the best solution to call this wit…

---

## [How to create the solr index from the data getting from two](https://www.ruby-forum.com/t/how-to-create-the-solr-index-from-the-data-getting-from-two/126924)

<div class="topic-metadata">

**Author:** [@nad](https://www.ruby-forum.com/u/nad)\
**Replies:** 1\
**Last updated:** [January 23, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/how-to-create-the-solr-index-from-the-data-getting-from-two/126924 "2008-01-23T16:52:14Z")

</div>

Hi All, I need to create the solr index from the data getting from two tables in the database. doe any one know who to archive this. Bz still i only found that we can do ht e solr index only from one table. so any bod…

---

## [Simple? show a child record in a form?](https://www.ruby-forum.com/t/simple-show-a-child-record-in-a-form/126934)

<div class="topic-metadata">

**Author:** [@Confused\_Vorlon](https://www.ruby-forum.com/u/Confused_Vorlon)\
**Replies:** 1\
**Last updated:** [January 23, 2008, 4:38pm UTC](https://www.ruby-forum.com/t/simple-show-a-child-record-in-a-form/126934 "2008-01-23T16:38:09Z")

</div>

HI folks, I’m new at this - but google isn’t helping me find what I’m doing wrong. Help appreciated! I have a ship model, a ship has\_one order when editing the ship, I want to also change the order. I can’t show the…

---

## [Semicolon in yaml file](https://www.ruby-forum.com/t/semicolon-in-yaml-file/126845)

<div class="topic-metadata">

**Author:** [@mememe](https://www.ruby-forum.com/u/mememe)\
**Replies:** 2\
**Last updated:** [January 23, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/semicolon-in-yaml-file/126845 "2008-01-23T16:36:24Z")

</div>

How does one escape a semicolon in their database.yml file? One of our passwords have an embedded “;” character.

---

## [Problem with creating a database scheme/model](https://www.ruby-forum.com/t/problem-with-creating-a-database-scheme-model/126864)

<div class="topic-metadata">

**Author:** [@Chris-Aix](https://www.ruby-forum.com/u/Chris-Aix)\
**Replies:** 5\
**Last updated:** [January 23, 2008, 4:35pm UTC](https://www.ruby-forum.com/t/problem-with-creating-a-database-scheme-model/126864 "2008-01-23T16:35:59Z")

</div>

Hi there, I have a problem with creating a database scheme and the according models. To describe the situation I made small scribble, because I think that explains it best. http://herrbuerger.com/scheme.001.jpg So …

---

## [Application error - SQL\_AUTO\_IS\_NULL](https://www.ruby-forum.com/t/application-error-sql-auto-is-null/126759)

<div class="topic-metadata">

**Author:** [@sd.codewarrior](https://www.ruby-forum.com/u/sd.codewarrior)\
**Replies:** 2\
**Last updated:** [January 23, 2008, 3:36pm UTC](https://www.ruby-forum.com/t/application-error-sql-auto-is-null/126759 "2008-01-23T15:36:05Z")

</div>

I have a simple controller (browse) that uses a “books” action to display a list of books (stored in a mysql db) and a “book\_details” action to display the details of a particular book (according to the book’s mysql i…

---

## [Bonanza OFFER from SMS2INDIA](https://www.ruby-forum.com/t/bonanza-offer-from-sms2india/126929)

<div class="topic-metadata">

**Author:** [@Priyabrata\_Patra](https://www.ruby-forum.com/u/Priyabrata_Patra)\
**Replies:** 0\
**Last updated:** [January 23, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/bonanza-offer-from-sms2india/126929 "2008-01-23T15:17:49Z")

</div>

Hello, Nice chance to generate more INCOME from MOBILE before 30th January, 2008. Sign up at : http://www.sms2india.co.in/?user=patrapb After signing up, don’t forget to confirm your email. Highlights: Earn for e…

---

## [(Non-active Record) Models and inheritance](https://www.ruby-forum.com/t/non-active-record-models-and-inheritance/126925)

<div class="topic-metadata">

**Author:** [@dara](https://www.ruby-forum.com/u/dara)\
**Replies:** 2\
**Last updated:** [January 23, 2008, 2:27pm UTC](https://www.ruby-forum.com/t/non-active-record-models-and-inheritance/126925 "2008-01-23T14:27:54Z")

</div>

I have a non-persisted model for a web form. Model is taking care of business logic without mapping directly to a DB. I have included validation for the form model by creating the following Module : module Validation…

---

## [Editing multiple rows of data in one form](https://www.ruby-forum.com/t/editing-multiple-rows-of-data-in-one-form/126922)

<div class="topic-metadata">

**Author:** [@costi](https://www.ruby-forum.com/u/costi)\
**Replies:** 0\
**Last updated:** [January 23, 2008, 2:08pm UTC](https://www.ruby-forum.com/t/editing-multiple-rows-of-data-in-one-form/126922 "2008-01-23T14:08:52Z")

</div>

I am able to edit multiple rows of data in one form using ‘object\[\]’ like here: http://jgchristopher.blogspot.com/2005/09/ruby-on-rails-editing-multiple-rows-of.html The problem appears when I want to edit old values …

---

## [Ruby + Apache/Debian doesn't wanna work](https://www.ruby-forum.com/t/ruby-apache-debian-doesnt-wanna-work/196567)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 18\
**Last updated:** [January 23, 2008, 1:41pm UTC](https://www.ruby-forum.com/t/ruby-apache-debian-doesnt-wanna-work/196567 "2008-01-23T13:41:35Z")

</div>

Hi everyone, I used some HowTo’s to get RoR running on my Debian (etch) and Apache 2 system. None of them work for me. I always get a 500 Error. When I start Webrick, all is working just fine but I just don’t get it …

---

## [I have a question in my work,please help me!](https://www.ruby-forum.com/t/i-have-a-question-in-my-work-please-help-me/126558)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 11\
**Last updated:** [January 23, 2008, 1:30pm UTC](https://www.ruby-forum.com/t/i-have-a-question-in-my-work-please-help-me/126558 "2008-01-23T13:30:31Z")

</div>

The local commuter railroad services a number of towns in Kiwiland. Because of monetary concerns, all of the tracks are ‘one-way.’ That is, a route from Kaitaia to Invercargill does not imply the existence of a rou…

---

## [Searching Capabilites](https://www.ruby-forum.com/t/searching-capabilites/126859)

<div class="topic-metadata">

**Author:** [@Bala](https://www.ruby-forum.com/u/Bala)\
**Replies:** 9\
**Last updated:** [January 23, 2008, 1:11pm UTC](https://www.ruby-forum.com/t/searching-capabilites/126859 "2008-01-23T13:11:28Z")

</div>

Hi Experts, I’ve Model Called Categories. Id and name column and another model called contacts which has id, name, address, phone, city, location, neighbourhood and lanmark. i’ve implemeneted ferret. (it isnt a probl…

---

## [Failed to load Rails: Could not find RubyGem jruby-openssl](https://www.ruby-forum.com/t/failed-to-load-rails-could-not-find-rubygem-jruby-openssl/126918)

<div class="topic-metadata">

**Author:** [@bharathchunchu](https://www.ruby-forum.com/u/bharathchunchu)\
**Replies:** 0\
**Last updated:** [January 23, 2008, 1:04pm UTC](https://www.ruby-forum.com/t/failed-to-load-rails-could-not-find-rubygem-jruby-openssl/126918 "2008-01-23T13:04:58Z")

</div>

Hi, I am new to Rails.I am trying to run rails application in Tomcat. I am getting the fallowing error. INFO: Failed to load Rails: Could not find RubyGem jruby-openssl (\>= 0.0.0) But I have installed JRuby-openssl …

---

## [Making Parents object attributes available](https://www.ruby-forum.com/t/making-parents-object-attributes-available/126908)

<div class="topic-metadata">

**Author:** [@davox](https://www.ruby-forum.com/u/davox)\
**Replies:** 1\
**Last updated:** [January 23, 2008, 12:41pm UTC](https://www.ruby-forum.com/t/making-parents-object-attributes-available/126908 "2008-01-23T12:41:14Z")

</div>

Hello, I have a class Person class Persoon \< ActiveRecord::Base set\_table\_name “Persoon” set\_primary\_key “p\_persoon” has\_many :adres, :class\_name =\> “Adres” composed\_of :name, :class\_name =\> Name, :mapping =\> \[ \[:n…

---

## ["has\_many :through" because "push\_with\_attributes" is deprecated](https://www.ruby-forum.com/t/has-many-through-because-push-with-attributes-is-deprecated/229141)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 2\
**Last updated:** [January 23, 2008, 12:21pm UTC](https://www.ruby-forum.com/t/has-many-through-because-push-with-attributes-is-deprecated/229141 "2008-01-23T12:21:48Z")

</div>

I want to use “has\_many :through” in line 78 because “push\_with\_attributes” is deprecated. How would I go about this, please? I want to create, really, an instance of the Membership class. thufir@arrakis ~/strawr $ …

---

## [Mongrel: compiling the http1.1 parser issue](https://www.ruby-forum.com/t/mongrel-compiling-the-http1-1-parser-issue/126910)

<div class="topic-metadata">

**Author:** [@deliak](https://www.ruby-forum.com/u/deliak)\
**Replies:** 0\
**Last updated:** [January 23, 2008, 12:19pm UTC](https://www.ruby-forum.com/t/mongrel-compiling-the-http1-1-parser-issue/126910 "2008-01-23T12:19:35Z")

</div>

Has anyone experience of compiling the http 1.1 parser on his own? I do have to cross compile it for an embedded device in order to install mongrel and I get an handful of compilation errors…

---

## [Some basic questions about REST](https://www.ruby-forum.com/t/some-basic-questions-about-rest/126874)

<div class="topic-metadata">

**Author:** [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Replies:** 3\
**Last updated:** [January 23, 2008, 12:02pm UTC](https://www.ruby-forum.com/t/some-basic-questions-about-rest/126874 "2008-01-23T12:02:58Z")

</div>

I’m trying to get my head around some of the concepts of REST and I’m hoping for some clarification. Lets say I have a site with a resource called ‘books’. I understand that there should be only one controller for t…

---

## [Date\_select in a partial](https://www.ruby-forum.com/t/date-select-in-a-partial/126906)

<div class="topic-metadata">

**Author:** [@donzo](https://www.ruby-forum.com/u/donzo)\
**Replies:** 1\
**Last updated:** [January 23, 2008, 11:52am UTC](https://www.ruby-forum.com/t/date-select-in-a-partial/126906 "2008-01-23T11:52:27Z")

</div>

Hello, Currently I have a date\_select in a form partial. This partial is rendered by the edit and new form-actions. But the problem is that when I go into the new page and save the form it automaticly selects the cur…

---

## [Get form id](https://www.ruby-forum.com/t/get-form-id/126801)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 11\
**Last updated:** [January 23, 2008, 10:50am UTC](https://www.ruby-forum.com/t/get-form-id/126801 "2008-01-23T10:50:48Z")

</div>

Hi, Can anyone tell me how do I get form id and print it out puts ? Thanks

---

## [Active Record forgets methods! bug?](https://www.ruby-forum.com/t/active-record-forgets-methods-bug/126877)

<div class="topic-metadata">

**Author:** [@sdpurtill](https://www.ruby-forum.com/u/sdpurtill)\
**Replies:** 7\
**Last updated:** [January 23, 2008, 8:52am UTC](https://www.ruby-forum.com/t/active-record-forgets-methods-bug/126877 "2008-01-23T08:52:41Z")

</div>

I have created a rails app. When in development mode, I hit a problem the second time I try to display a page from a particular controller: it raises a method\_missing exception because suddenly the model I am trying t…

---

## [Boost Your Business with Quality Web & Design Services at Bargain Prices](https://www.ruby-forum.com/t/boost-your-business-with-quality-web-design-services-at-bargain-prices/126897)

<div class="topic-metadata">

**Author:** [@ada.WOSG](https://www.ruby-forum.com/u/ada.WOSG)\
**Replies:** 0\
**Last updated:** [January 23, 2008, 6:44am UTC](https://www.ruby-forum.com/t/boost-your-business-with-quality-web-design-services-at-bargain-prices/126897 "2008-01-23T06:44:30Z")

</div>

Web Outsourcing Services Group (WOSG) is a pioneering and China-based service provider, committed to delivering quality web & design, SEO and internet marketing services to clients around the world. WOSG’s strength li…

---

## [Problem Connecting to MS SQL Server 2005](https://www.ruby-forum.com/t/problem-connecting-to-ms-sql-server-2005/126822)

<div class="topic-metadata">

**Author:** [@caof2005](https://www.ruby-forum.com/u/caof2005)\
**Replies:** 1\
**Last updated:** [January 23, 2008, 5:39am UTC](https://www.ruby-forum.com/t/problem-connecting-to-ms-sql-server-2005/126822 "2008-01-23T05:39:02Z")

</div>

Hello Friends: I would appreciate a lot your help on the following situation. I’m trying to connect to MS SQL Server 2005 but I’m getting the following error while trying to execute a scaffold command: C:\\ruby\\RoR1.2…

---

## [Plugin install error](https://www.ruby-forum.com/t/plugin-install-error/126776)

<div class="topic-metadata">

**Author:** [@afroxav](https://www.ruby-forum.com/u/afroxav)\
**Replies:** 3\
**Last updated:** [January 23, 2008, 4:52am UTC](https://www.ruby-forum.com/t/plugin-install-error/126776 "2008-01-23T04:52:19Z")

</div>

Each time I try to use the script/plugin script to install a plugin, I get an error : -Plugin not found : \[“plugin\_name”\]

---

## [Acts\_as\_state\_machine doesn't error on invalid state transition?](https://www.ruby-forum.com/t/acts-as-state-machine-doesnt-error-on-invalid-state-transition/126880)

<div class="topic-metadata">

**Author:** [@eric99](https://www.ruby-forum.com/u/eric99)\
**Replies:** 1\
**Last updated:** [January 23, 2008, 4:31am UTC](https://www.ruby-forum.com/t/acts-as-state-machine-doesnt-error-on-invalid-state-transition/126880 "2008-01-23T04:31:47Z")

</div>

While using acts\_as\_state\_machine, I noticed it doesn’t error when invalid state transition is used. No false return, no exception. By invalid state transition, I mean utilizing an event that does not define the cu…

---

## [Extracting migrations from an existing database](https://www.ruby-forum.com/t/extracting-migrations-from-an-existing-database/126884)

<div class="topic-metadata">

**Author:** [@bhus](https://www.ruby-forum.com/u/bhus)\
**Replies:** 2\
**Last updated:** [January 23, 2008, 4:13am UTC](https://www.ruby-forum.com/t/extracting-migrations-from-an-existing-database/126884 "2008-01-23T04:13:40Z")

</div>

Hello, Let me say as a precursor that I am an eternal newbie, so please pardon my ignorance. I did briefly look around in the forums to see if this topic had already been covered, but could not find it. I would be qu…

---

## [Comparison not working](https://www.ruby-forum.com/t/comparison-not-working/126879)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 3\
**Last updated:** [January 23, 2008, 3:59am UTC](https://www.ruby-forum.com/t/comparison-not-working/126879 "2008-01-23T03:59:39Z")

</div>

Hello, I am getting a very strange error… I am working on a view that compares a phone number in one model to a phone number in another model and displays the matches and non-matches. However, when I try to do a comp…

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

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