# Rails

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

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

---

## [Producing pdf docs, best strategy](https://www.ruby-forum.com/t/producing-pdf-docs-best-strategy/111305)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [August 5, 2007, 2:48pm UTC](https://www.ruby-forum.com/t/producing-pdf-docs-best-strategy/111305 "2007-08-05T14:48:00Z")

</div>

I would like to produce simple ‘contracts’ based on data stored in a DB and a standard template (simple : few data , name / address / dates … and one standard template document ) I can use PDF Writer or XML-FO, but …

---

## [Tune up your Windows XP](https://www.ruby-forum.com/t/tune-up-your-windows-xp/111304)

<div class="topic-metadata">

**Author:** [@John\_Travolta](https://www.ruby-forum.com/u/John_Travolta)\
**Replies:** 0\
**Last updated:** [August 5, 2007, 2:36pm UTC](https://www.ruby-forum.com/t/tune-up-your-windows-xp/111304 "2007-08-05T14:36:59Z")

</div>

Optimize your operating system, minimize background activities, repair registry base, uninstall unnecessary components, get rid of boring errors and make your operating system safer.

---

## [How would I find all "Exams" that belong to a "Student"?](https://www.ruby-forum.com/t/how-would-i-find-all-exams-that-belong-to-a-student/111303)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 3\
**Last updated:** [August 5, 2007, 2:28pm UTC](https://www.ruby-forum.com/t/how-would-i-find-all-exams-that-belong-to-a-student/111303 "2007-08-05T14:28:58Z")

</div>

I know this is wrong: @exams = Exam.find(:all, :conditions =\> \[“class.student\_id = ?”, current\_user.id\]) How would I correct the above to make it work? I know I can’t have class.student\_id, since that’s not a column …

---

## [RoR useful gems or plugins](https://www.ruby-forum.com/t/ror-useful-gems-or-plugins/111251)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 5\
**Last updated:** [August 5, 2007, 12:12pm UTC](https://www.ruby-forum.com/t/ror-useful-gems-or-plugins/111251 "2007-08-05T12:12:48Z")

</div>

Hi all! Please recommend me a list of useful gems of plugins that can help me in web development, for example easier build web UI, some controls or admin pages, etc… everything that can realy help Tnx for answers

---

## [Modifying the restful\_authentication plugin / Classes creati](https://www.ruby-forum.com/t/modifying-the-restful-authentication-plugin-classes-creati/111282)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 5, 2007, 11:25am UTC](https://www.ruby-forum.com/t/modifying-the-restful-authentication-plugin-classes-creati/111282 "2007-08-05T11:25:42Z")

</div>

Hi, I’m trying to modify the restful\_authentication plugin so that it first authenticates against LDAP (Active Directory), if successful, it tries to find a matching user with the same username in the database, throu…

---

## [Markaby syntax question](https://www.ruby-forum.com/t/markaby-syntax-question/111298)

<div class="topic-metadata">

**Author:** [@starfry](https://www.ruby-forum.com/u/starfry)\
**Replies:** 0\
**Last updated:** [August 5, 2007, 10:17am UTC](https://www.ruby-forum.com/t/markaby-syntax-question/111298 "2007-08-05T10:17:37Z")

</div>

Hi, I am just getting into Rails and I thought I’d try Markaby too. I have a mab file with the following in it: form\_for :user do |form| p do label "First Name:", :for =\> "first\_name" form.text\_field :first…

---

## [Problem regarding Sybase configuration with Aptana IDE](https://www.ruby-forum.com/t/problem-regarding-sybase-configuration-with-aptana-ide/110877)

<div class="topic-metadata">

**Author:** [@vabb\_z](https://www.ruby-forum.com/u/vabb_z)\
**Replies:** 1\
**Last updated:** [August 5, 2007, 9:58am UTC](https://www.ruby-forum.com/t/problem-regarding-sybase-configuration-with-aptana-ide/110877 "2007-08-05T09:58:36Z")

</div>

Hi!!, I am using Apatana IDE for Rails development. I have installed SQL explorer plugin and connected to "Sybase"database. But through database.yml I am not able to connect to server. In fact it gives error while ru…

---

## [Bypassing Authorize.net](https://www.ruby-forum.com/t/bypassing-authorize-net/111293)

<div class="topic-metadata">

**Author:** [@oren](https://www.ruby-forum.com/u/oren)\
**Replies:** 4\
**Last updated:** [August 5, 2007, 7:16am UTC](https://www.ruby-forum.com/t/bypassing-authorize-net/111293 "2007-08-05T07:16:26Z")

</div>

I develop a web-based shopping cart that uses Authorize.net as the gateway. The app is not for my usage but for my future clients (similar to Shopify but real stores, not virtual). The problem is that I pay Authorize…

---

## [Resending an mbox file of messages](https://www.ruby-forum.com/t/resending-an-mbox-file-of-messages/111290)

<div class="topic-metadata">

**Author:** [@jballanc](https://www.ruby-forum.com/u/jballanc)\
**Replies:** 0\
**Last updated:** [August 5, 2007, 3:10am UTC](https://www.ruby-forum.com/t/resending-an-mbox-file-of-messages/111290 "2007-08-05T03:10:16Z")

</div>

I’d like to read in an mbox file and “resend” the message to a different SMTP address. The following code seems to work for plain text messages but not for MIME messages. from = removed\_email\_address@domain.invalid t…

---

## [Newbie: NameError in my first Scaffold generation](https://www.ruby-forum.com/t/newbie-nameerror-in-my-first-scaffold-generation/111284)

<div class="topic-metadata">

**Author:** [@jules](https://www.ruby-forum.com/u/jules)\
**Replies:** 2\
**Last updated:** [August 5, 2007, 1:26am UTC](https://www.ruby-forum.com/t/newbie-nameerror-in-my-first-scaffold-generation/111284 "2007-08-05T01:26:11Z")

</div>

Hello I have a MySQL Table named: sorties I have generated RAILS code using: generate scaffold Sortie Admin It succesfully geneates the code sorti.rb, with Sortie \< ActiveRecord::Base and admin\_controller.rb with re…

---

## [Capturing radio button values for nested object](https://www.ruby-forum.com/t/capturing-radio-button-values-for-nested-object/111286)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 5, 2007, 12:59am UTC](https://www.ruby-forum.com/t/capturing-radio-button-values-for-nested-object/111286 "2007-08-05T00:59:09Z")

</div>

I have a user object and an account object. User has one account object. In the signup.rhtml I have a radio button that has three options for the membership (yearly, monthly and sample). How do I populate the account …

---

## [Testing library code](https://www.ruby-forum.com/t/testing-library-code/111276)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [August 5, 2007, 12:30am UTC](https://www.ruby-forum.com/t/testing-library-code/111276 "2007-08-05T00:30:07Z")

</div>

Hi, Just a quick question: If one creates custom classes and modules and places them in the lib/ folder of rails, where should the tests for those classes/modules go? Are they just unit tests? Thanks, Toby

---

## [How to manage states in a CRUD way?](https://www.ruby-forum.com/t/how-to-manage-states-in-a-crud-way/110919)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 20\
**Last updated:** [August 5, 2007, 12:27am UTC](https://www.ruby-forum.com/t/how-to-manage-states-in-a-crud-way/110919 "2007-08-05T00:27:06Z")

</div>

Hey all, I have a Job model and the job can be opened, closed and fulfilled. It can be re-open, re-closed and “re-fulfilled” several times and I want to keep track everytime this happens (by keeping the date of each …

---

## [Doing and storing a Writeboard like diff in RoR](https://www.ruby-forum.com/t/doing-and-storing-a-writeboard-like-diff-in-ror/61044)

<div class="topic-metadata">

**Author:** [@Vaishal\_S](https://www.ruby-forum.com/u/Vaishal_S)\
**Replies:** 2\
**Last updated:** [August 5, 2007, 12:06am UTC](https://www.ruby-forum.com/t/doing-and-storing-a-writeboard-like-diff-in-ror/61044 "2007-08-05T00:06:04Z")

</div>

Hello all, Anyone have any suggestions on how I could do and display a diffed piece of text in a style similar to Writeboard (strikeouts etc.) Q1) Are there any ruby gems for diff? Q2) How would I represent the diff…

---

## [Mysterious TextMate/Edge Rails/open\_id\_authentication error](https://www.ruby-forum.com/t/mysterious-textmate-edge-rails-open-id-authentication-error/111281)

<div class="topic-metadata">

**Author:** [@Peter\_Hanning](https://www.ruby-forum.com/u/Peter_Hanning)\
**Replies:** 0\
**Last updated:** [August 4, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/mysterious-textmate-edge-rails-open-id-authentication-error/111281 "2007-08-04T23:33:04Z")

</div>

Rails Experts, I have run into an interesting problem with TextMate, its Rails bundle, Edge Rails and the open\_id\_authentication plugin. When I have these components installed, the “Call Generate Script” command sto…

---

## [Rails RPM?](https://www.ruby-forum.com/t/rails-rpm/111280)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 0\
**Last updated:** [August 4, 2007, 11:20pm UTC](https://www.ruby-forum.com/t/rails-rpm/111280 "2007-08-04T23:20:01Z")

</div>

Hi – I really need to come up with a way to install Rails from an RPM. I’m assuming that that pretty much means that I’m going to have to create the RPM. “Agil Web D. with Rails” suggests that we Linux users who wa…

---

## [Override the default rails 'rake test' command to start depe](https://www.ruby-forum.com/t/override-the-default-rails-rake-test-command-to-start-depe/111232)

<div class="topic-metadata">

**Author:** [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Replies:** 2\
**Last updated:** [August 4, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/override-the-default-rails-rake-test-command-to-start-depe/111232 "2007-08-04T22:00:56Z")

</div>

Hey guys, I’d like to be able to override the default test task with something that starts the dependencies required for testing our app. I’ve been googling a bit and playing around with rake but I can’t get it to pla…

---

## [Windows Tips and Tricks](https://www.ruby-forum.com/t/windows-tips-and-tricks/111277)

<div class="topic-metadata">

**Author:** [@John\_Travolta](https://www.ruby-forum.com/u/John_Travolta)\
**Replies:** 0\
**Last updated:** [August 4, 2007, 9:49pm UTC](https://www.ruby-forum.com/t/windows-tips-and-tricks/111277 "2007-08-04T21:49:55Z")

</div>

Speed up your system, repair registry base, uninstall hidden windows components and get rid of boring errors with powerful tips and tricks.

---

## [Rails loop](https://www.ruby-forum.com/t/rails-loop/111274)

<div class="topic-metadata">

**Author:** [@rornb](https://www.ruby-forum.com/u/rornb)\
**Replies:** 4\
**Last updated:** [August 4, 2007, 9:24pm UTC](https://www.ruby-forum.com/t/rails-loop/111274 "2007-08-04T21:24:14Z")

</div>

Hi everyone Can you please tell me where I can find a good tutorial on loops. By loop I mean something that is related with objects created from a model. I think is called an array loop. And something that combines …

---

## [Binary conversion](https://www.ruby-forum.com/t/binary-conversion/111278)

<div class="topic-metadata">

**Author:** [@z4n9ief](https://www.ruby-forum.com/u/z4n9ief)\
**Replies:** 0\
**Last updated:** [August 4, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/binary-conversion/111278 "2007-08-04T20:59:46Z")

</div>

Hi all, Could you please propose me a solution to convert a string or a file in a univarsal binary value? Regards, Z4n9ief

---

## [Arather basic and rather stupid MySQL question](https://www.ruby-forum.com/t/arather-basic-and-rather-stupid-mysql-question/111195)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [August 4, 2007, 8:45pm UTC](https://www.ruby-forum.com/t/arather-basic-and-rather-stupid-mysql-question/111195 "2007-08-04T20:45:49Z")

</div>

Email : removed\_email\_address@domain.invalid If I can do it then it can’t be done ! … - Anonymous As Dr. Nick of the Simpsons sez : Hi Everybody ! I’m trying to use Patrick Lenz’ Site Point book entitled “Build Your …

---

## [Automated test for links between models](https://www.ruby-forum.com/t/automated-test-for-links-between-models/111275)

<div class="topic-metadata">

**Author:** [@michau](https://www.ruby-forum.com/u/michau)\
**Replies:** 0\
**Last updated:** [August 4, 2007, 7:20pm UTC](https://www.ruby-forum.com/t/automated-test-for-links-between-models/111275 "2007-08-04T19:20:45Z")

</div>

Hey, I’ve got plenty of models that are interconnected by methods: belongs\_to has\_many has\_one and :through I’ve created all of the models first, and now I have the headache to test that all of the links work prope…

---

## [Single table inheritance problem](https://www.ruby-forum.com/t/single-table-inheritance-problem/111273)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 1\
**Last updated:** [August 4, 2007, 6:50pm UTC](https://www.ruby-forum.com/t/single-table-inheritance-problem/111273 "2007-08-04T18:50:47Z")

</div>

I am having trouble getting a single table inheritance to work. This is what I tried I made a base model called Product, made the migration with all columns for every type of product that I want to create. Also in my …

---

## [Equivalent to exec](https://www.ruby-forum.com/t/equivalent-to-exec/111263)

<div class="topic-metadata">

**Author:** [@pardoengreg](https://www.ruby-forum.com/u/pardoengreg)\
**Replies:** 1\
**Last updated:** [August 4, 2007, 4:10pm UTC](https://www.ruby-forum.com/t/equivalent-to-exec/111263 "2007-08-04T16:10:27Z")

</div>

Hi, Is there an equivalent in RoR of the exec command in PHP ? Thanks

---

## [How to fetch crucial info](https://www.ruby-forum.com/t/how-to-fetch-crucial-info/111262)

<div class="topic-metadata">

**Author:** [@morbusg](https://www.ruby-forum.com/u/morbusg)\
**Replies:** 2\
**Last updated:** [August 4, 2007, 3:42pm UTC](https://www.ruby-forum.com/t/how-to-fetch-crucial-info/111262 "2007-08-04T15:42:26Z")

</div>

I have a Diu model class Diu \< ActiveRecord::Base has\_many :lalas end Then I have a Keke model class Keke \< ActiveRecord::Base #blah end class Lala \< Keke belongs\_to :diu validates\_presence\_of :diu\_id end The…

---

## [Attr\_accessor not setting or being displayed in the layout](https://www.ruby-forum.com/t/attr-accessor-not-setting-or-being-displayed-in-the-layout/111261)

<div class="topic-metadata">

**Author:** [@Camo](https://www.ruby-forum.com/u/Camo)\
**Replies:** 1\
**Last updated:** [August 4, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/attr-accessor-not-setting-or-being-displayed-in-the-layout/111261 "2007-08-04T15:35:27Z")

</div>

Hi there guys I’ve been pulling my hair out all night with this one, I thought it would work? If in my controller i do the following class PagesController \< ApplicationController attr\_accessor :something helper\_att…

---

## [Problem with :conditions in find](https://www.ruby-forum.com/t/problem-with-conditions-in-find/111204)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 6\
**Last updated:** [August 4, 2007, 2:06pm UTC](https://www.ruby-forum.com/t/problem-with-conditions-in-find/111204 "2007-08-04T14:06:20Z")

</div>

I’m having the strangest problem… I’m getting syntax errors on this find… @lob\_messages = ProviderMessage.find(:all, :conditions =\> \[ “to = ?”, “GFA”\], :order =\> ‘created\_at DESC’, :limit =\> 5) The Exception Rails…

---

## [Whats the difference? Function order](https://www.ruby-forum.com/t/whats-the-difference-function-order/111249)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 4, 2007, 2:02pm UTC](https://www.ruby-forum.com/t/whats-the-difference-function-order/111249 "2007-08-04T14:02:20Z")

</div>

I have been baffled by this for a while? I have been going through some tutorials and got stuck on this. The following gives me an error in the view “You have a nil object when you didn’t expect it” for “display\_cart”…

---

## [English/russian languages](https://www.ruby-forum.com/t/english-russian-languages/111252)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 0\
**Last updated:** [August 4, 2007, 12:33pm UTC](https://www.ruby-forum.com/t/english-russian-languages/111252 "2007-08-04T12:33:07Z")

</div>

Hi all! Please recommend to me plugins that i can used for internalization of my web site(that i want to do sortly) Tnx

---

## [Baffling Ajax.Updater problem](https://www.ruby-forum.com/t/baffling-ajax-updater-problem/110801)

<div class="topic-metadata">

**Author:** [@orlick](https://www.ruby-forum.com/u/orlick)\
**Replies:** 1\
**Last updated:** [August 4, 2007, 11:09am UTC](https://www.ruby-forum.com/t/baffling-ajax-updater-problem/110801 "2007-08-04T11:09:00Z")

</div>

Hi, I seem to be having a problem with Ajax.Updater passing variables correctly. I have a Ajax call that does this: \<%= link\_to item.name, {:action =\> “#”}, {“onmouseover” =\> “new Ajax.Updater(‘display\_stuff’, ‘displa…

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

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