# Rails

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

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

---

## [Session sharing between domains](https://www.ruby-forum.com/t/session-sharing-between-domains/181541)

<div class="topic-metadata">

**Author:** [@icke](https://www.ruby-forum.com/u/icke)\
**Replies:** 2\
**Last updated:** [January 14, 2010, 5:45am UTC](https://www.ruby-forum.com/t/session-sharing-between-domains/181541 "2010-01-14T05:45:59Z")

</div>

I collect some stuff in my application session. I then need to redirect to another domain(not subdomain) run by the same ruby application instance (as it needs to be an SSL certificate domain). I can rebuild my appl…

---

## [Accessing dynamic javasript with Ruby](https://www.ruby-forum.com/t/accessing-dynamic-javasript-with-ruby/181280)

<div class="topic-metadata">

**Author:** [@dr\_gavin](https://www.ruby-forum.com/u/dr_gavin)\
**Replies:** 1\
**Last updated:** [January 14, 2010, 12:01am UTC](https://www.ruby-forum.com/t/accessing-dynamic-javasript-with-ruby/181280 "2010-01-14T00:01:46Z")

</div>

Hey all I’m experimenting with writing a scraper at the moment and have hit a major hump. Part of the DOM is added after the page has loaded via javascript. This means when I make an a request the HTML response I rec…

---

## [Best practice: individual or combined tests?](https://www.ruby-forum.com/t/best-practice-individual-or-combined-tests/181566)

<div class="topic-metadata">

**Author:** [@acreadinglist](https://www.ruby-forum.com/u/acreadinglist)\
**Replies:** 2\
**Last updated:** [January 13, 2010, 11:53pm UTC](https://www.ruby-forum.com/t/best-practice-individual-or-combined-tests/181566 "2010-01-13T23:53:38Z")

</div>

Hi folks, I’m pretty new to TDD. Is there a standard approach on this: Is it better to write individual tests, or combine them? A specific example if a model Foo validates the presence of both bar and baz, is it b…

---

## [PgEast CFP (second call) (looking for rails content)](https://www.ruby-forum.com/t/pgeast-cfp-second-call-looking-for-rails-content/181573)

<div class="topic-metadata">

**Author:** [@Joshua\_DSDrake](https://www.ruby-forum.com/u/Joshua_DSDrake)\
**Replies:** 0\
**Last updated:** [January 13, 2010, 11:50pm UTC](https://www.ruby-forum.com/t/pgeast-cfp-second-call-looking-for-rails-content/181573 "2010-01-13T23:50:43Z")

</div>

January 13, 2010 PostgreSQL Conference East, The PostgreSQL Conference for Decision Makers, End Users and Developers, is being held at the Radisson Plaza, Warwick Hotel in Philadelphia on March 25th through 28th. Thi…

---

## [Adding online help](https://www.ruby-forum.com/t/adding-online-help/181571)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 0\
**Last updated:** [January 13, 2010, 11:38pm UTC](https://www.ruby-forum.com/t/adding-online-help/181571 "2010-01-13T23:38:26Z")

</div>

Hi, I have some context sensitive online help stored in a db table which I display using Markdown. This works fine but I was thinking of adding a complete Indexed type help that could sort of double as a user guide f…

---

## [RoR: Best way to handle fatal errors](https://www.ruby-forum.com/t/ror-best-way-to-handle-fatal-errors/181564)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 2\
**Last updated:** [January 13, 2010, 10:35pm UTC](https://www.ruby-forum.com/t/ror-best-way-to-handle-fatal-errors/181564 "2010-01-13T22:35:16Z")

</div>

Assume that a fatal error has occurred during (a) initialization; or (b) at “run time”. (a) Let’s say a critical file or exe has gone missing during initialization. What is the best way to report this fact? (b) Let’…

---

## [Question about rails modules/applications](https://www.ruby-forum.com/t/question-about-rails-modules-applications/181400)

<div class="topic-metadata">

**Author:** [@friedrich](https://www.ruby-forum.com/u/friedrich)\
**Replies:** 5\
**Last updated:** [January 13, 2010, 9:16pm UTC](https://www.ruby-forum.com/t/question-about-rails-modules-applications/181400 "2010-01-13T21:16:47Z")

</div>

Can anyone give me an oversight about rails applicatoin in the following areas? bookkeeping crm fleet management Regards Friedrich

---

## [\[Ajax on Rails\]How to pass an object via param](https://www.ruby-forum.com/t/ajax-on-rails-how-to-pass-an-object-via-param/181559)

<div class="topic-metadata">

**Author:** [@denommus](https://www.ruby-forum.com/u/denommus)\
**Replies:** 2\
**Last updated:** [January 13, 2010, 8:29pm UTC](https://www.ruby-forum.com/t/ajax-on-rails-how-to-pass-an-object-via-param/181559 "2010-01-13T20:29:22Z")

</div>

I’m trying to pass an object as a parameter on a link\_to\_remote. What I do is pretty simple: link\_to\_remote ‘Insert subquestion’, :url =\> {:action =\> ‘add\_subquestion’, :question =\> @question}, :update =\> ‘’, :method …

---

## [Password Authentication without user](https://www.ruby-forum.com/t/password-authentication-without-user/181551)

<div class="topic-metadata">

**Author:** [@alexp](https://www.ruby-forum.com/u/alexp)\
**Replies:** 1\
**Last updated:** [January 13, 2010, 6:27pm UTC](https://www.ruby-forum.com/t/password-authentication-without-user/181551 "2010-01-13T18:27:52Z")

</div>

Hey guys, So I am trying to set up a script for automatic password and username authentication. Basically I have 2 databases and in order for one of the databases to connect with my web service, it has to auto submit…

---

## [Plugin for finding duplicates](https://www.ruby-forum.com/t/plugin-for-finding-duplicates/181498)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 1\
**Last updated:** [January 13, 2010, 5:45pm UTC](https://www.ruby-forum.com/t/plugin-for-finding-duplicates/181498 "2010-01-13T17:45:24Z")

</div>

hi is there a plugin or something else which could assist in finding duplicates in a model / table? even with validations, users tend to enter data twice / wrong (for whatever reasons…)…so i was wondering if there i…

---

## [Suggestion for Ajax-Framework, for RoR](https://www.ruby-forum.com/t/suggestion-for-ajax-framework-for-ror/181514)

<div class="topic-metadata">

**Author:** [@sushi2k](https://www.ruby-forum.com/u/sushi2k)\
**Replies:** 3\
**Last updated:** [January 13, 2010, 5:32pm UTC](https://www.ruby-forum.com/t/suggestion-for-ajax-framework-for-ror/181514 "2010-01-13T17:32:53Z")

</div>

Hello, I have build a table called Project, in RoR with Nested Sets (this means the table has a parent\_id, lft and rgt). This table has now several records of projects, that I have inserted via the console, and with …

---

## [Using find - beginner's advice](https://www.ruby-forum.com/t/using-find-beginners-advice/181488)

<div class="topic-metadata">

**Author:** [@scrozier](https://www.ruby-forum.com/u/scrozier)\
**Replies:** 9\
**Last updated:** [January 13, 2010, 4:57pm UTC](https://www.ruby-forum.com/t/using-find-beginners-advice/181488 "2010-01-13T16:57:58Z")

</div>

Owners has\_one :widget and Widgets belongs\_to :owner. When creating a new widget, I’m giving the option for the user to specify the owner by using a drop down select. The select is populated by pulling a list of own…

---

## [Validates\_captcha not generating a captcha](https://www.ruby-forum.com/t/validates-captcha-not-generating-a-captcha/181515)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 1\
**Last updated:** [January 13, 2010, 4:33pm UTC](https://www.ruby-forum.com/t/validates-captcha-not-generating-a-captcha/181515 "2010-01-13T16:33:43Z")

</div>

Newbie here. This is not a question but a report on a work-around for a problem I detected with the gem validates\_captcha. My environment is Windows, Vista, Rails Rails 2.3.5 Ruby 1.8.6 gem 1.3.5 validates\_captch…

---

## [Hassles with flash\[:notice\] vs flash.now\[:notice\]](https://www.ruby-forum.com/t/hassles-with-flash-notice-vs-flash-now-notice/181547)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [January 13, 2010, 4:19pm UTC](https://www.ruby-forum.com/t/hassles-with-flash-notice-vs-flash-now-notice/181547 "2010-01-13T16:19:32Z")

</div>

hey all I’m using rails 2.2.2 in a particular app, and upgrading isn’t an option right now (in case this is a version-specific problem). When you do flash\[:notice\] = “blah”, that message persists over the next redire…

---

## [String to String?](https://www.ruby-forum.com/t/string-to-string/181527)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [January 13, 2010, 4:14pm UTC](https://www.ruby-forum.com/t/string-to-string/181527 "2010-01-13T16:14:03Z")

</div>

Really basic question. How can I convert “this” to ‘this’ convert from a double quotes string to a single quotes string.

---

## [Benchmarking a mailer](https://www.ruby-forum.com/t/benchmarking-a-mailer/181538)

<div class="topic-metadata">

**Author:** [@jhaagmans](https://www.ruby-forum.com/u/jhaagmans)\
**Replies:** 4\
**Last updated:** [January 13, 2010, 4:12pm UTC](https://www.ruby-forum.com/t/benchmarking-a-mailer/181538 "2010-01-13T16:12:52Z")

</div>

We’d like to see how long it takes for a Mailer object to leave our server after the deliver command is sent. How could we do this? We’d like to get an accurate value (e.g. in milliseconds). We were using Sendmail to …

---

## [Install RoR on Windows Vista](https://www.ruby-forum.com/t/install-ror-on-windows-vista/181549)

<div class="topic-metadata">

**Author:** [@patrick](https://www.ruby-forum.com/u/patrick)\
**Replies:** 0\
**Last updated:** [January 13, 2010, 4:05pm UTC](https://www.ruby-forum.com/t/install-ror-on-windows-vista/181549 "2010-01-13T16:05:51Z")

</div>

I am using Windows Vista and installed Ruby 1.8.6. gem install rails --include-dependencies gem install mysql --include-dpendencies MySQL gem installs, but a whole bunch of message pop up such as - . . . No definiti…

---

## [Keep getting syntax error](https://www.ruby-forum.com/t/keep-getting-syntax-error/181475)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 10\
**Last updated:** [January 13, 2010, 3:49pm UTC](https://www.ruby-forum.com/t/keep-getting-syntax-error/181475 "2010-01-13T15:49:27Z")

</div>

Hey all, I keep getting a syntax error somewhere in this code. Thanks for all help. class StudentState \< ActiveRecord::Base has\_many :students end class Student \< ActiveRecord::Base belongs\_to :student\_state name…

---

## [Web with images](https://www.ruby-forum.com/t/web-with-images/181474)

<div class="topic-metadata">

**Author:** [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Replies:** 4\
**Last updated:** [January 13, 2010, 3:36pm UTC](https://www.ruby-forum.com/t/web-with-images/181474 "2010-01-13T15:36:41Z")

</div>

I wanna to create a web page with instant rails. In my web page I wanna to show some pictures. What is the code I need to show it Thanks a lot!!

---

## [Gruff with PDF::Writer](https://www.ruby-forum.com/t/gruff-with-pdf-writer/90287)

<div class="topic-metadata">

**Author:** [@RJRJRJ](https://www.ruby-forum.com/u/RJRJRJ)\
**Replies:** 4\
**Last updated:** [January 13, 2010, 3:07pm UTC](https://www.ruby-forum.com/t/gruff-with-pdf-writer/90287 "2010-01-13T15:07:25Z")

</div>

Hello all Has anyone managed to embed gruff graphs into a PDF document using pdf::writer? The easy way (as far as I can see) would be to just save the gruff graph as a temporary file then read that file in pdf::write…

---

## [Change the interval in periodically\_call\_remote](https://www.ruby-forum.com/t/change-the-interval-in-periodically-call-remote/181544)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 0\
**Last updated:** [January 13, 2010, 2:16pm UTC](https://www.ruby-forum.com/t/change-the-interval-in-periodically-call-remote/181544 "2010-01-13T14:16:58Z")

</div>

I’d like to make a div that updates itself. That div will contain a timer. If there is an hour left, I’d like to refresh it every 10 minutes, but if the time has only one minute left, I’d like to have it call the se…

---

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

<div class="topic-metadata">

**Author:** [@c\_allison](https://www.ruby-forum.com/u/c_allison)\
**Replies:** 1\
**Last updated:** [January 13, 2010, 1:22pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-intermittently-slow/181535 "2010-01-13T13:22:31Z")

</div>

Hi I built a web app using Ruby 1.8.6. Then used Ruby Enterprise Edition and Passenger (and Apache) for production. Everything was good. Then on a whim I decided to compile ruby 1.9.1 from source and point my Passeng…

---

## [Abstract rails models](https://www.ruby-forum.com/t/abstract-rails-models/181530)

<div class="topic-metadata">

**Author:** [@fredd](https://www.ruby-forum.com/u/fredd)\
**Replies:** 2\
**Last updated:** [January 13, 2010, 12:59pm UTC](https://www.ruby-forum.com/t/abstract-rails-models/181530 "2010-01-13T12:59:07Z")

</div>

Hi, I need some advises on rails best practices when it comes to abstract/concrete models/classes in Rails. This is what I want to accomplish: A abstract type of page that holds base functionality like name, membershi…

---

## [Looking for a SR ROR Developer in NYC](https://www.ruby-forum.com/t/looking-for-a-sr-ror-developer-in-nyc/181533)

<div class="topic-metadata">

**Author:** [@Darla\_Horn](https://www.ruby-forum.com/u/Darla_Horn)\
**Replies:** 0\
**Last updated:** [January 13, 2010, 11:55am UTC](https://www.ruby-forum.com/t/looking-for-a-sr-ror-developer-in-nyc/181533 "2010-01-13T11:55:53Z")

</div>

Client: Leading finance firm in NYC This is a full time permanent position Salary: 100-130K+ The ideal candidate will join a small agile team in the development of a new web product that is targeted for Beta launch w…

---

## [ActiveRecord setting has\_many association](https://www.ruby-forum.com/t/activerecord-setting-has-many-association/181529)

<div class="topic-metadata">

**Author:** [@stonebreaker](https://www.ruby-forum.com/u/stonebreaker)\
**Replies:** 0\
**Last updated:** [January 13, 2010, 9:10am UTC](https://www.ruby-forum.com/t/activerecord-setting-has-many-association/181529 "2010-01-13T09:10:15Z")

</div>

Hi, Can someone help me with this, why does it not work when the association is already set, shouldn’t it be overridden? require ‘rubygems’ require ‘activerecord’ ActiveRecord::Base.establish\_connection(:adapter =\> …

---

## [Captcha](https://www.ruby-forum.com/t/captcha/181525)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 2\
**Last updated:** [January 13, 2010, 7:39am UTC](https://www.ruby-forum.com/t/captcha/181525 "2010-01-13T07:39:28Z")

</div>

Hi I have to use captcha in my rails application (For example at time of register a user) Could anyone please suggest the best and easy to use captcha gem or plugin in rails. Rails version is 2.3.5 Thanks Tom

---

## [ActionController::InvalidAuthenticityToken](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken/127736)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 3\
**Last updated:** [January 13, 2010, 7:27am UTC](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken/127736 "2010-01-13T07:27:50Z")

</div>

I am new to RoR. I am running Linux Red Hat Enterprise with MySQL for my db, and when I go and either create/update the database I get this message: ActionController::InvalidAuthenticityToken in Test1Controller#creat…

---

## [Wwwwwwwwwwwwwwwwwwww](https://www.ruby-forum.com/t/wwwwwwwwwwwwwwwwwwww/181476)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [January 13, 2010, 6:44am UTC](https://www.ruby-forum.com/t/wwwwwwwwwwwwwwwwwwww/181476 "2010-01-13T06:44:34Z")

</div>

wwwwwwwwwwwwwwwwwwwwww

---

## [How to begin with developing of a web application using Ruby on Rails](https://www.ruby-forum.com/t/how-to-begin-with-developing-of-a-web-application-using-ruby-on-rails/181416)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [January 13, 2010, 6:35am UTC](https://www.ruby-forum.com/t/how-to-begin-with-developing-of-a-web-application-using-ruby-on-rails/181416 "2010-01-13T06:35:23Z")

</div>

hey i want to do a web application project using RoR and MySQL… can u guide me how to begin with the proj…? I hav done basic applications mentioned on technetra.com. I juzz need ur help nw relating to how to begin wit…

---

## [How to begin coding with RoR](https://www.ruby-forum.com/t/how-to-begin-coding-with-ror/181490)

<div class="topic-metadata">

**Author:** [@manish\_belsare](https://www.ruby-forum.com/u/manish_belsare)\
**Replies:** 4\
**Last updated:** [January 13, 2010, 6:32am UTC](https://www.ruby-forum.com/t/how-to-begin-coding-with-ror/181490 "2010-01-13T06:32:24Z")

</div>

Hey m doin a project on web application…I need 2 know how to start with the coding using Rails framework? Can anyone provide me with a sample code to accept values from the user in a text field and display the values …

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

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