# Rails

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

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

---

## [Trustcommerce Plugin](https://www.ruby-forum.com/t/trustcommerce-plugin/109050)

<div class="topic-metadata">

**Author:** [@dcgrigsby](https://www.ruby-forum.com/u/dcgrigsby)\
**Replies:** 3\
**Last updated:** [July 11, 2007, 1:19am UTC](https://www.ruby-forum.com/t/trustcommerce-plugin/109050 "2007-07-11T01:19:26Z")

</div>

Hi, I was wondering if anyone knew of any projects or tutorials incorporating the trustcommerce subscription plugin. It would really help if I could see the plugin fully implemented. -Thanks

---

## [Clearing a form](https://www.ruby-forum.com/t/clearing-a-form/109010)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 5\
**Last updated:** [July 10, 2007, 10:21pm UTC](https://www.ruby-forum.com/t/clearing-a-form/109010 "2007-07-10T22:21:21Z")

</div>

Hi all, I am trying to clear a form once the info is being submitted to the database. Basically what I have is a form that makes use of the form\_remote\_tag which adds a list of credit cards to a list and then adds th…

---

## [How to do multi level layout](https://www.ruby-forum.com/t/how-to-do-multi-level-layout/108856)

<div class="topic-metadata">

**Author:** [@Dorren](https://www.ruby-forum.com/u/Dorren)\
**Replies:** 7\
**Last updated:** [July 10, 2007, 10:05pm UTC](https://www.ruby-forum.com/t/how-to-do-multi-level-layout/108856 "2007-07-10T22:05:06Z")

</div>

A site has the default global layout and navigation links. Within the site, it has several different sections, each section has many pages, which has same sub nav links and some common parts. how do i wrap a …

---

## [Reconstructing ActiveRecord from YAML](https://www.ruby-forum.com/t/reconstructing-activerecord-from-yaml/109025)

<div class="topic-metadata">

**Author:** [@fero](https://www.ruby-forum.com/u/fero)\
**Replies:** 1\
**Last updated:** [July 10, 2007, 9:33pm UTC](https://www.ruby-forum.com/t/reconstructing-activerecord-from-yaml/109025 "2007-07-10T21:33:03Z")

</div>

hello, please give me snipped, that reconstruct ActiveRecord object from YAML or Marshal.dump. When i type for example: YAML::load(item.to\_yaml), the returned object is not (item’s class) Item. When i use: Marshal::lo…

---

## [Seeking Programmer](https://www.ruby-forum.com/t/seeking-programmer/109044)

<div class="topic-metadata">

**Author:** [@Friendly\_Table](https://www.ruby-forum.com/u/Friendly_Table)\
**Replies:** 0\
**Last updated:** [July 10, 2007, 9:03pm UTC](https://www.ruby-forum.com/t/seeking-programmer/109044 "2007-07-10T21:03:58Z")

</div>

New social networking company is seeking a Rails user to develop a website. Looking for someone (or a group of people) who is/are willing to charge an hourly rate, work for hire, and turn in code regularly. If interes…

---

## [Navigating the grid](https://www.ruby-forum.com/t/navigating-the-grid/109042)

<div class="topic-metadata">

**Author:** [@pshussain](https://www.ruby-forum.com/u/pshussain)\
**Replies:** 0\
**Last updated:** [July 10, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/navigating-the-grid/109042 "2007-07-10T20:41:31Z")

</div>

Hai I have one question to all of you My question is i have one table ,that table displaying the records from the database,I am displaying ony first five records,after five records i am displaying more link,If i cli…

---

## [Multi user CRUD concurrency](https://www.ruby-forum.com/t/multi-user-crud-concurrency/108997)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 3\
**Last updated:** [July 10, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/multi-user-crud-concurrency/108997 "2007-07-10T20:33:53Z")

</div>

is there any tutorial/comments/blog about Rails multi-user concurrency and how to prevent other users info from creeping into your session if you both are accessing the same record…a rails newbie asks???

---

## [Attachement corrupt](https://www.ruby-forum.com/t/attachement-corrupt/109039)

<div class="topic-metadata">

**Author:** [@Daskandonga](https://www.ruby-forum.com/u/Daskandonga)\
**Replies:** 0\
**Last updated:** [July 10, 2007, 8:27pm UTC](https://www.ruby-forum.com/t/attachement-corrupt/109039 "2007-07-10T20:27:50Z")

</div>

I’m using ActionMailer to send an e-mail with attachement, but I receive the same e-mail attachement corrupted. How I can resolve that? The enviroment is: Windows Microsoft Exchange Server. Code Enviroment.rb: Ac…

---

## [For Loop](https://www.ruby-forum.com/t/for-loop/109022)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 1\
**Last updated:** [July 10, 2007, 8:00pm UTC](https://www.ruby-forum.com/t/for-loop/109022 "2007-07-10T20:00:45Z")

</div>

Hi there, I’m working on my first real rails application (meaning not one out of a book), and I’m not quite sure how to display the results of a grouped query. This is what I have in my controller: @s = Story.find\_re…

---

## [Ruby on Rails Engineer Opportunity for InsiderPages.com ( Sa](https://www.ruby-forum.com/t/ruby-on-rails-engineer-opportunity-for-insiderpages-com-sa/109035)

<div class="topic-metadata">

**Author:** [@valerie](https://www.ruby-forum.com/u/valerie)\
**Replies:** 0\
**Last updated:** [July 10, 2007, 7:32pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-engineer-opportunity-for-insiderpages-com-sa/109035 "2007-07-10T19:32:42Z")

</div>

Ruby on Rails Engineer - Insiderpages.com www.insiderpages.com San Francisco, CA Seeking talented, motivated Ruby on Rails Engineer to work on one of the worlds largest and highest-trafficked rails sites: Required …

---

## [Routing Resources to two different places](https://www.ruby-forum.com/t/routing-resources-to-two-different-places/109031)

<div class="topic-metadata">

**Author:** [@Brent\_D](https://www.ruby-forum.com/u/Brent_D)\
**Replies:** 0\
**Last updated:** [July 10, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/routing-resources-to-two-different-places/109031 "2007-07-10T19:06:18Z")

</div>

Hi folks, Here’s the deal: I’ve got an Article model and an ArticlesController with a set of templates that I like so much, I need to share it with different parts of the site which have different URL’s. I’m using RE…

---

## [Fixture\_references: "Mysql::Error #HY000"?](https://www.ruby-forum.com/t/fixture-references-mysql-error-hy000/109030)

<div class="topic-metadata">

**Author:** [@Hugh\_S](https://www.ruby-forum.com/u/Hugh_S)\
**Replies:** 0\
**Last updated:** [July 10, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/fixture-references-mysql-error-hy000/109030 "2007-07-10T19:05:18Z")

</div>

I’ve been trying to use fixture references, and I seem to be getting lots of: Error: test\_truth(DeviceTest): ActiveRecord::StatementInvalid: Mysql::Error: #HY000Field ‘description\_id’ doesn ‘t have a default valu…

---

## [\[ANN\] Ruby On Rails, Today's Hottest Web Framework, Now Supp](https://www.ruby-forum.com/t/ann-ruby-on-rails-todays-hottest-web-framework-now-supp/109023)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 10, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/ann-ruby-on-rails-todays-hottest-web-framework-now-supp/109023 "2007-07-10T18:16:12Z")

</div>

Six Fried Rice Contact: Geoff C. Phone: 602-384-1804 Email: removed\_email\_address@domain.invalid Ruby On Rails, Today’s Hottest Web Framework, Now Supports FileMaker Server Six Fried Rice, a FileMaker Pro Services …

---

## [Raise an Exception on Verify fail](https://www.ruby-forum.com/t/raise-an-exception-on-verify-fail/109007)

<div class="topic-metadata">

**Author:** [@jotape](https://www.ruby-forum.com/u/jotape)\
**Replies:** 1\
**Last updated:** [July 10, 2007, 6:13pm UTC](https://www.ruby-forum.com/t/raise-an-exception-on-verify-fail/109007 "2007-07-10T18:13:12Z")

</div>

Hi I would like to use a verify, but I want to raise an exception if the verification is not met. Does anyone knows how to do it? Thanks

---

## [Reserved words](https://www.ruby-forum.com/t/reserved-words/109013)

<div class="topic-metadata">

**Author:** [@jotape](https://www.ruby-forum.com/u/jotape)\
**Replies:** 1\
**Last updated:** [July 10, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/reserved-words/109013 "2007-07-10T17:54:10Z")

</div>

Is action\_id reserved\_

---

## [Id last inserted record?](https://www.ruby-forum.com/t/id-last-inserted-record/108622)

<div class="topic-metadata">

**Author:** [@rudy](https://www.ruby-forum.com/u/rudy)\
**Replies:** 17\
**Last updated:** [July 10, 2007, 5:48pm UTC](https://www.ruby-forum.com/t/id-last-inserted-record/108622 "2007-07-10T17:48:08Z")

</div>

Hi, I’m trying to find a way in RoR to retrieve the id of the last record I just saved to a database. I know there is something like LAST\_INSERT\_ID on MySQL, but I don’t seem to find how to use it - if it is possi…

---

## [Capistrano =\> releases direcotory remains empty after export](https://www.ruby-forum.com/t/capistrano-releases-direcotory-remains-empty-after-export/108992)

<div class="topic-metadata">

**Author:** [@temesta](https://www.ruby-forum.com/u/temesta)\
**Replies:** 1\
**Last updated:** [July 10, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/capistrano-releases-direcotory-remains-empty-after-export/108992 "2007-07-10T17:19:01Z")

</div>

Hi, So I finally got svn working with capistrano. However I’m having another problem now. When I do cap deploy, everything seems to be fine. Unfortunately the releases directory remains empty after svn did a checkout…

---

## [Request.remote\_ip](https://www.ruby-forum.com/t/request-remote-ip/108911)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 7\
**Last updated:** [July 10, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/request-remote-ip/108911 "2007-07-10T16:46:54Z")

</div>

Hi, How can i access to request.remote\_ip in a model?

---

## [Models relationship summary / Entity relationship diagram](https://www.ruby-forum.com/t/models-relationship-summary-entity-relationship-diagram/108993)

<div class="topic-metadata">

**Author:** [@reynar](https://www.ruby-forum.com/u/reynar)\
**Replies:** 4\
**Last updated:** [July 10, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/models-relationship-summary-entity-relationship-diagram/108993 "2007-07-10T16:46:54Z")

</div>

Hi, Does anyone know of a tool or script that can parse the contents of the models folder and produce some sort of model relationship document, either a text summary or graphical representation? Thanks, Andrew.

---

## [Helper\_method](https://www.ruby-forum.com/t/helper-method/109008)

<div class="topic-metadata">

**Author:** [@stonebreaker](https://www.ruby-forum.com/u/stonebreaker)\
**Replies:** 0\
**Last updated:** [July 10, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/helper-method/109008 "2007-07-10T16:40:52Z")

</div>

Hi! I hade to move some functions, as is\_admin? etc into applcation.rb instead of the applicationhelper and give it helper\_method :is\_admin?. Is there a function for the other way so in my helper say that it’s a norm…

---

## [Question regarding select\_tag](https://www.ruby-forum.com/t/question-regarding-select-tag/108966)

<div class="topic-metadata">

**Author:** [@Chris\_Johnston](https://www.ruby-forum.com/u/Chris_Johnston)\
**Replies:** 2\
**Last updated:** [July 10, 2007, 4:08pm UTC](https://www.ruby-forum.com/t/question-regarding-select-tag/108966 "2007-07-10T16:08:48Z")

</div>

Hello, I have the following code in the little application that I am writing. It is basically taken directly out of the Agile Web D. with Rails book. In the controller: @exercises = Exercise.find(:all).map { |f| \[f…

---

## [Rescue problem and attachment\_fu](https://www.ruby-forum.com/t/rescue-problem-and-attachment-fu/109005)

<div class="topic-metadata">

**Author:** [@pabloz](https://www.ruby-forum.com/u/pabloz)\
**Replies:** 0\
**Last updated:** [July 10, 2007, 4:01pm UTC](https://www.ruby-forum.com/t/rescue-problem-and-attachment-fu/109005 "2007-07-10T16:01:10Z")

</div>

Hello I have a following method in my image controller. It should add images to existing gallery. def create Image.transaction do begin params\[:images\].collect { |image| @gallery.images \<\< Image.new(:uploaded\_data…

---

## [Trying tpo do complex finds with ActiveRecord](https://www.ruby-forum.com/t/trying-tpo-do-complex-finds-with-activerecord/108827)

<div class="topic-metadata">

**Author:** [@Chinmay\_K](https://www.ruby-forum.com/u/Chinmay_K)\
**Replies:** 8\
**Last updated:** [July 10, 2007, 3:24pm UTC](https://www.ruby-forum.com/t/trying-tpo-do-complex-finds-with-activerecord/108827 "2007-07-10T15:24:36Z")

</div>

HI all! Well, actually, “complex finds” to me because I can’t figure how. I have this app where I have two basic models: user and post. There is also a model ‘friendship’. This basically belongs\_to :user, and belongs…

---

## [RSpecing a plugin](https://www.ruby-forum.com/t/rspecing-a-plugin/108994)

<div class="topic-metadata">

**Author:** [@awarberg](https://www.ruby-forum.com/u/awarberg)\
**Replies:** 0\
**Last updated:** [July 10, 2007, 2:10pm UTC](https://www.ruby-forum.com/t/rspecing-a-plugin/108994 "2007-07-10T14:10:23Z")

</div>

Hi. I’m trying to write a simple acts\_as plugin. It wasn’t to difficult to get that working. But now I’m trying to write specs for my plugin. I’m not sure how to integrate the “acts\_as\_myplugin” call into my mock. I’…

---

## [Error\_messages\_for](https://www.ruby-forum.com/t/error-messages-for/108991)

<div class="topic-metadata">

**Author:** [@verifier](https://www.ruby-forum.com/u/verifier)\
**Replies:** 3\
**Last updated:** [July 10, 2007, 1:26pm UTC](https://www.ruby-forum.com/t/error-messages-for/108991 "2007-07-10T13:26:14Z")

</div>

I have a database table called “hvd\_codes”, the model is called HvdCode. In my form partial, what should I enter as a parameter to error\_messages\_for? I’ve tried \<%= error\_messages\_for ‘interception\_codes’ %\> but noth…

---

## [Need help!--Revieing a book](https://www.ruby-forum.com/t/need-help-revieing-a-book/108990)

<div class="topic-metadata">

**Author:** [@mithil](https://www.ruby-forum.com/u/mithil)\
**Replies:** 0\
**Last updated:** [July 10, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/need-help-revieing-a-book/108990 "2007-07-10T12:34:34Z")

</div>

Hello, We are in the process of publishing a book on Beginning Websites with Ruby on Rails. I am in need of a technical reviewer who will have a look at the technical content of the book. If anyone is interested ple…

---

## [How to render a .builder template](https://www.ruby-forum.com/t/how-to-render-a-builder-template/108811)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 3\
**Last updated:** [July 10, 2007, 12:14pm UTC](https://www.ruby-forum.com/t/how-to-render-a-builder-template/108811 "2007-07-10T12:14:10Z")

</div>

Hi, How can I get rails to render a .builder template from within a respond\_to block? thanks Mark

---

## [YAML wtf](https://www.ruby-forum.com/t/yaml-wtf/108988)

<div class="topic-metadata">

**Author:** [@fero](https://www.ruby-forum.com/u/fero)\
**Replies:** 0\
**Last updated:** [July 10, 2007, 11:55am UTC](https://www.ruby-forum.com/t/yaml-wtf/108988 "2007-07-10T11:55:29Z")

</div>

I want to import and export something from a database, i use following code: EXPORT: objects\['plans'\] = Plan.find :all, :conditions=\>\['do \< ?', @date\] result = objects.to\_yaml IMPORT: objects = YAML::load file.read …

---

## [Display only selected columns](https://www.ruby-forum.com/t/display-only-selected-columns/108987)

<div class="topic-metadata">

**Author:** [@verifier](https://www.ruby-forum.com/u/verifier)\
**Replies:** 0\
**Last updated:** [July 10, 2007, 11:13am UTC](https://www.ruby-forum.com/t/display-only-selected-columns/108987 "2007-07-10T11:13:22Z")

</div>

The code below is from my user model which have a FK called extension\_id. The visible\_columns array are used to display all columns (that should be visible) and their values. What should I do to get the ‘extension.ad…

---

## [Validations of "type" when using Single Table Inheritance](https://www.ruby-forum.com/t/validations-of-type-when-using-single-table-inheritance/108709)

<div class="topic-metadata">

**Author:** [@Jaime\_Cham](https://www.ruby-forum.com/u/Jaime_Cham)\
**Replies:** 2\
**Last updated:** [July 10, 2007, 10:03am UTC](https://www.ruby-forum.com/t/validations-of-type-when-using-single-table-inheritance/108709 "2007-07-10T10:03:53Z")

</div>

Sorry if I’m just dumbing out, but is there a reason that when using Single Table Inheritance Rails doesn’t really validate the “type” field or provide some mechanism to do so? seems like a good way to corrupt a datab…

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

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