# Rails

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

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

---

## [Implementing a dashboard-style controller, (think iGoogle)](https://www.ruby-forum.com/t/implementing-a-dashboard-style-controller-think-igoogle/162501)

<div class="topic-metadata">

**Author:** [@Lasertoast](https://www.ruby-forum.com/u/Lasertoast)\
**Replies:** 4\
**Last updated:** [March 10, 2009, 7:03pm UTC](https://www.ruby-forum.com/t/implementing-a-dashboard-style-controller-think-igoogle/162501 "2009-03-10T19:03:44Z")

</div>

I’m a relatively new Rails developer, but I think I have a good grasp on the paradigm and I’m trying my best to adhere to RESTful standards. First, let me describe the basic structure of my Rails app (only the pieces …

---

## [Chained search](https://www.ruby-forum.com/t/chained-search/162375)

<div class="topic-metadata">

**Author:** [@pesho318i](https://www.ruby-forum.com/u/pesho318i)\
**Replies:** 3\
**Last updated:** [March 10, 2009, 6:00pm UTC](https://www.ruby-forum.com/t/chained-search/162375 "2009-03-10T18:00:49Z")

</div>

Hello, I have: Messages table with membership\_id column Memberships table with member\_id column Members table with name column Having a single message m, how do I get the name of the member of the membership of thi…

---

## [Post request from controller](https://www.ruby-forum.com/t/post-request-from-controller/162439)

<div class="topic-metadata">

**Author:** [@bbtosurf](https://www.ruby-forum.com/u/bbtosurf)\
**Replies:** 4\
**Last updated:** [March 10, 2009, 5:44pm UTC](https://www.ruby-forum.com/t/post-request-from-controller/162439 "2009-03-10T17:44:59Z")

</div>

Hello guys, I’m working on an app that posts a file to another rails application who is in charge of running some scripts over it, create a build and send it back again. Right now I have a form where the user selects …

---

## ['unknow column error' when using include and associated table condition in find](https://www.ruby-forum.com/t/unknow-column-error-when-using-include-and-associated-table-condition-in-find/162473)

<div class="topic-metadata">

**Author:** [@boblu](https://www.ruby-forum.com/u/boblu)\
**Replies:** 5\
**Last updated:** [March 10, 2009, 5:34pm UTC](https://www.ruby-forum.com/t/unknow-column-error-when-using-include-and-associated-table-condition-in-find/162473 "2009-03-10T17:34:57Z")

</div>

Here is my weird problem. Two models like following: Lexeme id:int name:string Structure id:int ref\_id:string meta\_id:int Lexeme can have many structure records through foreign key ‘ref\_id’ in the structures ta…

---

## [Any body please help me](https://www.ruby-forum.com/t/any-body-please-help-me/162506)

<div class="topic-metadata">

**Author:** [@hamidraza](https://www.ruby-forum.com/u/hamidraza)\
**Replies:** 1\
**Last updated:** [March 10, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/any-body-please-help-me/162506 "2009-03-10T17:02:34Z")

</div>

High Priority Problem , when uploading image Posted by Hamid R. (hamidraza) on 10.03.2009 15:55 i m uploading an image and found following error , plz n e buddi help me out , thxxxxxx in advace , my rails version i…

---

## [adzap-AR\_Mailer sending email error](https://www.ruby-forum.com/t/adzap-ar-mailer-sending-email-error/162417)

<div class="topic-metadata">

**Author:** [@Sean\_McGilvray](https://www.ruby-forum.com/u/Sean_McGilvray)\
**Replies:** 2\
**Last updated:** [March 10, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/adzap-ar-mailer-sending-email-error/162417 "2009-03-10T16:40:11Z")

</div>

I am getting the following error when I try to send an email using the ar\_mailer: Unhandled exception wrong number of arguments (7 for 6) (ArgumentError): I found an article that stated the following "My problem is …

---

## [Finding and deleting in activerecord array](https://www.ruby-forum.com/t/finding-and-deleting-in-activerecord-array/162485)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 3\
**Last updated:** [March 10, 2009, 4:28pm UTC](https://www.ruby-forum.com/t/finding-and-deleting-in-activerecord-array/162485 "2009-03-10T16:28:23Z")

</div>

Hi all, Groups has\_ many users. I have 2 activerecord arrays: groups = containing groups with its users. users = containing users attending an event. I start by iterating over the groups. Then I iterate over the use…

---

## [Annoying pop up window with restful\_authentication](https://www.ruby-forum.com/t/annoying-pop-up-window-with-restful-authentication/162462)

<div class="topic-metadata">

**Author:** [@semyou](https://www.ruby-forum.com/u/semyou)\
**Replies:** 6\
**Last updated:** [March 10, 2009, 4:08pm UTC](https://www.ruby-forum.com/t/annoying-pop-up-window-with-restful-authentication/162462 "2009-03-10T16:08:36Z")

</div>

Hi, I have this annoying popup window for Web Password whenever a click on a javascript action which require authentication. I have the problem for FF, IE and Chrome. The problem isn’t seen for non javascript action …

---

## [Validations on parent and accepts\_nested\_attributes\_for don't comply?](https://www.ruby-forum.com/t/validations-on-parent-and-accepts-nested-attributes-for-dont-comply/162502)

<div class="topic-metadata">

**Author:** [@Ronald\_Wind](https://www.ruby-forum.com/u/Ronald_Wind)\
**Replies:** 0\
**Last updated:** [March 10, 2009, 4:07pm UTC](https://www.ruby-forum.com/t/validations-on-parent-and-accepts-nested-attributes-for-dont-comply/162502 "2009-03-10T16:07:40Z")

</div>

Hello, I’ve got two models: class ProductGroup \< ActiveRecord::Base has\_many :fields, :dependent =\> :destroy accepts\_nested\_attributes\_for :fields end class Field \< ActiveRecord::Base belongs\_to :product\_group va…

---

## [Nested content\_tag link, span, image](https://www.ruby-forum.com/t/nested-content-tag-link-span-image/162441)

<div class="topic-metadata">

**Author:** [@mdeering](https://www.ruby-forum.com/u/mdeering)\
**Replies:** 2\
**Last updated:** [March 10, 2009, 3:38pm UTC](https://www.ruby-forum.com/t/nested-content-tag-link-span-image/162441 "2009-03-10T15:38:02Z")

</div>

hi, i’m trying to render this html: clear cart ! the best i can do is: \<%= link\_to content\_tag(:span, image\_tag(“img/clear.png”, :alt =\> ‘arrow’)), clear\_cart\_path, :class =\> “big\_button”, :title =\> “clear” -%\> …

---

## [If else not working?](https://www.ruby-forum.com/t/if-else-not-working/162457)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 2\
**Last updated:** [March 10, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/if-else-not-working/162457 "2009-03-10T15:28:47Z")

</div>

I get the following error when I try to login into my admin back end: NoMethodError in MemberController#index You have a nil object when you didn’t expect it! The error occurred while evaluating nil.login RAILS\_ROOT:…

---

## [How to test for a Null or empty object?](https://www.ruby-forum.com/t/how-to-test-for-a-null-or-empty-object/162463)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 4\
**Last updated:** [March 10, 2009, 3:14pm UTC](https://www.ruby-forum.com/t/how-to-test-for-a-null-or-empty-object/162463 "2009-03-10T15:14:03Z")

</div>

I have the following action that is supposed to test whether a username exists or not. It seems that the first condition never fails. I have put nothing in the params\[:l\] hash and the first condition executes. Any ide…

---

## [ActiveRecord with \*\*some\*\* columns mapped to database?](https://www.ruby-forum.com/t/activerecord-with-some-columns-mapped-to-database/162464)

<div class="topic-metadata">

**Author:** [@kretch](https://www.ruby-forum.com/u/kretch)\
**Replies:** 2\
**Last updated:** [March 10, 2009, 3:00pm UTC](https://www.ruby-forum.com/t/activerecord-with-some-columns-mapped-to-database/162464 "2009-03-10T15:00:09Z")

</div>

Hi There. I’m involved in creating a bridge between ROR and an open-source database (OpenAccess, or OA for short) used for EDA (Electronic Design Automation). OA is a great database for capturing properties of hardwa…

---

## [Rspec dependencies](https://www.ruby-forum.com/t/rspec-dependencies/161152)

<div class="topic-metadata">

**Author:** [@arshak](https://www.ruby-forum.com/u/arshak)\
**Replies:** 5\
**Last updated:** [March 10, 2009, 1:08pm UTC](https://www.ruby-forum.com/t/rspec-dependencies/161152 "2009-03-10T13:08:18Z")

</div>

Hello, I followed this http://cheat.errtheblog.com/s/rspec/ to try to get rspec working with rails 2.2.2 and installed rspec and rack gems but I’m still getting the following messages c:/ruby/lib/ruby/site\_ruby/1.8…

---

## [How can I know if a mailer has already been generated?](https://www.ruby-forum.com/t/how-can-i-know-if-a-mailer-has-already-been-generated/162409)

<div class="topic-metadata">

**Author:** [@loader](https://www.ruby-forum.com/u/loader)\
**Replies:** 1\
**Last updated:** [March 10, 2009, 12:22pm UTC](https://www.ruby-forum.com/t/how-can-i-know-if-a-mailer-has-already-been-generated/162409 "2009-03-10T12:22:32Z")

</div>

Hello everyone! I’m working on a project which has been started by someone else. I’m wondering : is it possible to know wether a mailer has already been generated or not? Is there a special command? Thank for your h…

---

## [Creating a form\_for with field values?](https://www.ruby-forum.com/t/creating-a-form-for-with-field-values/162181)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 1\
**Last updated:** [March 10, 2009, 11:29am UTC](https://www.ruby-forum.com/t/creating-a-form-for-with-field-values/162181 "2009-03-10T11:29:21Z")

</div>

Hey guys, I’m having a problem creating a form with field values. I’m using form\_for and don’t really know how to access the field values. I’ve got a table character\_attributes and character\_attribute\_types. characte…

---

## [Making a backend-centric application](https://www.ruby-forum.com/t/making-a-backend-centric-application/162475)

<div class="topic-metadata">

**Author:** [@Christian\_WattengSS](https://www.ruby-forum.com/u/Christian_WattengSS)\
**Replies:** 1\
**Last updated:** [March 10, 2009, 10:35am UTC](https://www.ruby-forum.com/t/making-a-backend-centric-application/162475 "2009-03-10T10:35:14Z")

</div>

Is Rails usable for a backend/server-centric application? The application is supposed to just sit there and grab data from various sources at certain times, process them, stuff them in a database. These data will then…

---

## [Undefined method issue in file\_column temp object](https://www.ruby-forum.com/t/undefined-method-issue-in-file-column-temp-object/197088)

<div class="topic-metadata">

**Author:** [@viswanathan](https://www.ruby-forum.com/u/viswanathan)\
**Replies:** 0\
**Last updated:** [March 10, 2009, 7:39am UTC](https://www.ruby-forum.com/t/undefined-method-issue-in-file-column-temp-object/197088 "2009-03-10T07:39:12Z")

</div>

Hi All, I’m using file\_column\_field for uploading the images it’s working fine.But it throws random error as shown below. eg., \<%= file\_column\_field(“ad”,“ad\_picture”)%\> I’m using like this,but while uploading or ed…

---

## [File Column issue](https://www.ruby-forum.com/t/file-column-issue/196912)

<div class="topic-metadata">

**Author:** [@viswanathan](https://www.ruby-forum.com/u/viswanathan)\
**Replies:** 0\
**Last updated:** [March 10, 2009, 7:38am UTC](https://www.ruby-forum.com/t/file-column-issue/196912 "2009-03-10T07:38:20Z")

</div>

Hi All, I’m using file\_column\_field for uploading the images it’s working fine.But it throws random error as shown below. eg., \<%= file\_column\_field(“ad”,“ad\_picture”)%\> I’m using like this,but while uploading or ed…

---

## [File Column Field Major issue](https://www.ruby-forum.com/t/file-column-field-major-issue/162470)

<div class="topic-metadata">

**Author:** [@viswanathan](https://www.ruby-forum.com/u/viswanathan)\
**Replies:** 0\
**Last updated:** [March 10, 2009, 7:29am UTC](https://www.ruby-forum.com/t/file-column-field-major-issue/162470 "2009-03-10T07:29:15Z")

</div>

Hi All, I’m using file\_column\_field for uploading the images it’s working fine.But it throws random error as shown below. eg., \<%= file\_column\_field(“ad”,“ad\_picture”)%\> I’m using like this,but while uploading or ed…

---

## [Different database for different domains](https://www.ruby-forum.com/t/different-database-for-different-domains/162255)

<div class="topic-metadata">

**Author:** [@konstantin](https://www.ruby-forum.com/u/konstantin)\
**Replies:** 4\
**Last updated:** [March 10, 2009, 7:01am UTC](https://www.ruby-forum.com/t/different-database-for-different-domains/162255 "2009-03-10T07:01:33Z")

</div>

Hello! 1. I have 2 domains site1.com and site2.com. The same application is installed on both, but I need it to use different database: db1 for site1.com and db2 for site2.com How can I do this? 2. And another que…

---

## [Jason King's inline\_attachment probs](https://www.ruby-forum.com/t/jason-kings-inline-attachment-probs/162467)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 0\
**Last updated:** [March 10, 2009, 6:56am UTC](https://www.ruby-forum.com/t/jason-kings-inline-attachment-probs/162467 "2009-03-10T06:56:52Z")

</div>

I recently added the inline\_attachment gem (http://github.com/ JasonKing/inline\_attachment/tree/master) to enable the use of image\_tag in html emails. It’s ~kinda~ working, but I have a problem… It works in that I do…

---

## [How to customize (\<item\> tags representing Array types) soap response XML with Web services impleme](https://www.ruby-forum.com/t/how-to-customize-item-tags-representing-array-types-soap-response-xml-with-web-services-impleme/162461)

<div class="topic-metadata">

**Author:** [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Replies:** 0\
**Last updated:** [March 10, 2009, 5:29am UTC](https://www.ruby-forum.com/t/how-to-customize-item-tags-representing-array-types-soap-response-xml-with-web-services-impleme/162461 "2009-03-10T05:29:12Z")

</div>

Hi All, I want to know that how can we customize the soap xml response xml format that we get by implementing APIs using AWS in rails. As an specification for array types Soap creates set of tags. so how can we repl…

---

## [How can I set default order in Model.rb?](https://www.ruby-forum.com/t/how-can-i-set-default-order-in-model-rb/162458)

<div class="topic-metadata">

**Author:** [@cfc](https://www.ruby-forum.com/u/cfc)\
**Replies:** 2\
**Last updated:** [March 10, 2009, 4:42am UTC](https://www.ruby-forum.com/t/how-can-i-set-default-order-in-model-rb/162458 "2009-03-10T04:42:28Z")

</div>

Hi, all How can I set a default order in a model.rb? For an instance, I have a model called “Bulletin” I want all query with ‘find’ method return records by ordered. Bulletin.all #=\> Same as: Bulletin.find(:all, {:or…

---

## [Where to put rescue clause](https://www.ruby-forum.com/t/where-to-put-rescue-clause/162427)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [March 10, 2009, 3:20am UTC](https://www.ruby-forum.com/t/where-to-put-rescue-clause/162427 "2009-03-10T03:20:07Z")

</div>

I have a unique index constraint that throws an ActiveRecord::StatementInvalid exception when triggered. In my application this causes a stack trace in the client browser. I want to rescue this error and handle it i…

---

## [New version of TurnKey Rails appliance](https://www.ruby-forum.com/t/new-version-of-turnkey-rails-appliance/162447)

<div class="topic-metadata">

**Author:** [@Liraz](https://www.ruby-forum.com/u/Liraz)\
**Replies:** 0\
**Last updated:** [March 10, 2009, 1:53am UTC](https://www.ruby-forum.com/t/new-version-of-turnkey-rails-appliance/162447 "2009-03-10T01:53:23Z")

</div>

Hello everyone, I am one of the developers for TurnKey Linux, an open source project which recently released a new version of our Ruby on Rails appliance: http://www.turnkeylinux.org/appliances/rails In a nutshell, t…

---

## [Newb question...get info from the db](https://www.ruby-forum.com/t/newb-question-get-info-from-the-db/162438)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 7\
**Last updated:** [March 10, 2009, 12:59am UTC](https://www.ruby-forum.com/t/newb-question-get-info-from-the-db/162438 "2009-03-10T00:59:36Z")

</div>

I am using a mysql db and I want to pull some info from the db. I think my problem is that I am trying to get the data from an object that doesn’t exist in my MemberController. My code: class MemberController \< Applic…

---

## [No error but mail not sent?](https://www.ruby-forum.com/t/no-error-but-mail-not-sent/162419)

<div class="topic-metadata">

**Author:** [@loader](https://www.ruby-forum.com/u/loader)\
**Replies:** 6\
**Last updated:** [March 10, 2009, 12:29am UTC](https://www.ruby-forum.com/t/no-error-but-mail-not-sent/162419 "2009-03-10T00:29:06Z")

</div>

Hello everyone! In the console, it says “Email sent” with all informations. But when I check my inbox I got nothing. Any help? Thank you!

---

## [One SELECT, multiple sorts](https://www.ruby-forum.com/t/one-select-multiple-sorts/162435)

<div class="topic-metadata">

**Author:** [@partydrone](https://www.ruby-forum.com/u/partydrone)\
**Replies:** 3\
**Last updated:** [March 10, 2009, 12:02am UTC](https://www.ruby-forum.com/t/one-select-multiple-sorts/162435 "2009-03-10T00:02:45Z")

</div>

I want to pull data from the database once, but do multiple sorts on different columns. I’m pulling a list of products from the database. In my view, I want to create two select lists: one sorted by the product name; …

---

## [Application access for non-Rails developers](https://www.ruby-forum.com/t/application-access-for-non-rails-developers/162424)

<div class="topic-metadata">

**Author:** [@ian](https://www.ruby-forum.com/u/ian)\
**Replies:** 2\
**Last updated:** [March 9, 2009, 11:45pm UTC](https://www.ruby-forum.com/t/application-access-for-non-rails-developers/162424 "2009-03-09T23:45:12Z")

</div>

I was wondering if anyone gives non-developers access to their Rails applications (like say a tech-savvy content manager or designer) and if so, how? What software? etc.

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

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