# Rails

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

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

---

## [Validations not working - model mixup?](https://www.ruby-forum.com/t/validations-not-working-model-mixup/129281)

<div class="topic-metadata">

**Author:** [@daveamos](https://www.ruby-forum.com/u/daveamos)\
**Replies:** 2\
**Last updated:** [February 16, 2008, 4:53am UTC](https://www.ruby-forum.com/t/validations-not-working-model-mixup/129281 "2008-02-16T04:53:35Z")

</div>

Hi there, I’ve got a list of games, and users can guess the score of each game. The guesses are appropriately sent to guesses\_controller.rb, but I can’t get any of the validations in guess.rb to work. Here’s what I ha…

---

## [Some questions about attachment\_fu and image\_science](https://www.ruby-forum.com/t/some-questions-about-attachment-fu-and-image-science/129280)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 0\
**Last updated:** [February 16, 2008, 3:04am UTC](https://www.ruby-forum.com/t/some-questions-about-attachment-fu-and-image-science/129280 "2008-02-16T03:04:49Z")

</div>

It took me some hours, but i finally managed to have attachment\_fu running with image\_science - that’s an achievement for me :slight\_smile: I have a few questions about how to use it properly: In the attachment\_fu…

---

## [Route not found with auth\_generator](https://www.ruby-forum.com/t/route-not-found-with-auth-generator/129029)

<div class="topic-metadata">

**Author:** [@tranquiliste](https://www.ruby-forum.com/u/tranquiliste)\
**Replies:** 2\
**Last updated:** [February 15, 2008, 11:28pm UTC](https://www.ruby-forum.com/t/route-not-found-with-auth-generator/129029 "2008-02-15T23:28:54Z")

</div>

Hello I am quite new with rails and I am currently facing a problem with a no route found to match … Here is the context : I have installed auth\_generator to manage users & access when a user create an account or ask…

---

## [Sharing Sessions between Ruby on Rails and PHP](https://www.ruby-forum.com/t/sharing-sessions-between-ruby-on-rails-and-php/128445)

<div class="topic-metadata">

**Author:** [@Adil\_M](https://www.ruby-forum.com/u/Adil_M)\
**Replies:** 3\
**Last updated:** [February 15, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/sharing-sessions-between-ruby-on-rails-and-php/128445 "2008-02-15T21:47:55Z")

</div>

Hi there, I have a RoR app but for one of the funcationality (photo uploads) I am using PHP. I need to know how I can share/access session information from RoR in PHP since the PHP also updates the database and the e…

---

## [Windows or Linux for RoR Development](https://www.ruby-forum.com/t/windows-or-linux-for-ror-development/196596)

<div class="topic-metadata">

**Author:** [@liquidrails](https://www.ruby-forum.com/u/liquidrails)\
**Replies:** 2\
**Last updated:** [February 15, 2008, 9:42pm UTC](https://www.ruby-forum.com/t/windows-or-linux-for-ror-development/196596 "2008-02-15T21:42:39Z")

</div>

Any thoughts on this? I am contemplating a switch from a Windows platform to Linux. Thanks!

---

## [Validates\_each](https://www.ruby-forum.com/t/validates-each/128787)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 7\
**Last updated:** [February 15, 2008, 9:36pm UTC](https://www.ruby-forum.com/t/validates-each/128787 "2008-02-15T21:36:15Z")

</div>

Hi all, I am trying to do a little checking before a user profile is created and see if some fields are blank. If they, that’s OK, I just need to set them to a dummy value if they are, not blank. The reason for this i…

---

## [Errors.add](https://www.ruby-forum.com/t/errors-add/129252)

<div class="topic-metadata">

**Author:** [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Replies:** 4\
**Last updated:** [February 15, 2008, 8:41pm UTC](https://www.ruby-forum.com/t/errors-add/129252 "2008-02-15T20:41:28Z")

</div>

how do i add errors manually to an object so they show up in the same list as the validations? i tried errors.add - and it adds the error, but it doesn’t stop the object from being saved like a validates\_presence\_of w…

---

## [LoadError with UserMailer in Production Mode?](https://www.ruby-forum.com/t/loaderror-with-usermailer-in-production-mode/129197)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 1\
**Last updated:** [February 15, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/loaderror-with-usermailer-in-production-mode/129197 "2008-02-15T20:25:55Z")

</div>

Getting this error everytime i try to use the UserMailer to send an email, works in development mode, but not in production. LoadError (Expected /app/models/user\_mailer.rb to define UserMailer): Any ideas? Using Rail…

---

## [Model validates against system values table](https://www.ruby-forum.com/t/model-validates-against-system-values-table/129128)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [February 15, 2008, 8:15pm UTC](https://www.ruby-forum.com/t/model-validates-against-system-values-table/129128 "2008-02-15T20:15:43Z")

</div>

Assume that model/table “party” contains a column “party\_type” and consider that “party\_type” is value constrained to those values in model/table “system\_values” having EAV columns of table\_name, table\_column\_name, va…

---

## [SyslogLogger issues](https://www.ruby-forum.com/t/sysloglogger-issues/129254)

<div class="topic-metadata">

**Author:** [@heimdull](https://www.ruby-forum.com/u/heimdull)\
**Replies:** 0\
**Last updated:** [February 15, 2008, 8:14pm UTC](https://www.ruby-forum.com/t/sysloglogger-issues/129254 "2008-02-15T20:14:38Z")

</div>

Hi guys, I’m using syslogLogger to log to syslog in my project. There was issues getting this to work, but I found a workaround that has worked until now. Here is my setup: environment.rb config.logger = RAILS\_DEFAU…

---

## [\_create method doesn't seem to be writing to DB](https://www.ruby-forum.com/t/create-method-doesnt-seem-to-be-writing-to-db/129171)

<div class="topic-metadata">

**Author:** [@nahabed](https://www.ruby-forum.com/u/nahabed)\
**Replies:** 2\
**Last updated:** [February 15, 2008, 7:58pm UTC](https://www.ruby-forum.com/t/create-method-doesnt-seem-to-be-writing-to-db/129171 "2008-02-15T19:58:04Z")

</div>

I have two models, A and B where B blongs\_to A and A has\_many B. I have a view that does “new” on B and then I call a create method on B which then makes the call @B.create\_A(params\[:wanted\_offer\]) All runtime indicat…

---

## [Dependency between tests using partials and locals](https://www.ruby-forum.com/t/dependency-between-tests-using-partials-and-locals/129234)

<div class="topic-metadata">

**Author:** [@donv](https://www.ruby-forum.com/u/donv)\
**Replies:** 2\
**Last updated:** [February 15, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/dependency-between-tests-using-partials-and-locals/129234 "2008-02-15T19:35:43Z")

</div>

Hi all! I have a couple of tests that should fail, but don’t. They involve rendering of templates using partials with locals. If I run one test alone, it fails because I have forgotten to pass the locals in that tes…

---

## [Rendering partials within controller failing on js requests](https://www.ruby-forum.com/t/rendering-partials-within-controller-failing-on-js-requests/129246)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 0\
**Last updated:** [February 15, 2008, 7:04pm UTC](https://www.ruby-forum.com/t/rendering-partials-within-controller-failing-on-js-requests/129246 "2008-02-15T19:04:24Z")

</div>

I am wondering if this is just me or…? I have a partial contacts/\_contact\_details.html.erb that works fine when rendering for a html request. When I make a js request and have the render :partial within the controlle…

---

## [What is the right way to name my local variable in my partial?](https://www.ruby-forum.com/t/what-is-the-right-way-to-name-my-local-variable-in-my-partial/129168)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [February 15, 2008, 6:55pm UTC](https://www.ruby-forum.com/t/what-is-the-right-way-to-name-my-local-variable-in-my-partial/129168 "2008-02-15T18:55:01Z")

</div>

Hi, I have this invocation of a partial: \<%= render :partial =\> ‘summary\_line\_item’, @collection =\> @ec\_order.ec\_line\_items %\> I thought just by naming the partial “summary\_line\_item”, each item from the collection …

---

## [Rad Rails/Aptana plugin for haml - site down anyone know if it hosted elsewhere](https://www.ruby-forum.com/t/rad-rails-aptana-plugin-for-haml-site-down-anyone-know-if-it-hosted-elsewhere/129201)

<div class="topic-metadata">

**Author:** [@tonypm](https://www.ruby-forum.com/u/tonypm)\
**Replies:** 1\
**Last updated:** [February 15, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/rad-rails-aptana-plugin-for-haml-site-down-anyone-know-if-it-hosted-elsewhere/129201 "2008-02-15T18:45:52Z")

</div>

I have been using the Haml plugin for RadRails, it works well, but after rebuilding my laptop from windows to fedora, I re-installed Aptana (after some sweat and toil) but the site seems to have vanished. Wonder if …

---

## [Rails Admin system plugin reviews](https://www.ruby-forum.com/t/rails-admin-system-plugin-reviews/129243)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 15, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/rails-admin-system-plugin-reviews/129243 "2008-02-15T18:40:54Z")

</div>

Hello, I’ve been reviewing most of the admin plugins for rails. I’ve jotted down my notes if anyone is interested: http://www.joesniff.co.uk/critique/rails-admins-plugins-review.html Joseph W., http://www.joesniff.c…

---

## [Attachment\_fu and filenames on a linux machine](https://www.ruby-forum.com/t/attachment-fu-and-filenames-on-a-linux-machine/129172)

<div class="topic-metadata">

**Author:** [@sikanrong](https://www.ruby-forum.com/u/sikanrong)\
**Replies:** 1\
**Last updated:** [February 15, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/attachment-fu-and-filenames-on-a-linux-machine/129172 "2008-02-15T17:57:46Z")

</div>

So, I’m seeing something fully weird trying to use attachment\_fu on a linux server, and I know Rick O. is chilling somewhere on this forum so I’m hoping he can poke his head out to help me here (although honestly any…

---

## [I want to specify the exact root to play video files in my r](https://www.ruby-forum.com/t/i-want-to-specify-the-exact-root-to-play-video-files-in-my-r/129213)

<div class="topic-metadata">

**Author:** [@barakathullah](https://www.ruby-forum.com/u/barakathullah)\
**Replies:** 4\
**Last updated:** [February 15, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/i-want-to-specify-the-exact-root-to-play-video-files-in-my-r/129213 "2008-02-15T17:50:19Z")

</div>

Hi all, can anyone please get me a solution for the problem i am facing in my project… i am using this path VALUE="#{RAILS\_ROOT}/\<%=@f.content\_path%\>" to display and play a video in my project where @f.content\_path …

---

## [Script/console Stack Trace](https://www.ruby-forum.com/t/script-console-stack-trace/129236)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 0\
**Last updated:** [February 15, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/script-console-stack-trace/129236 "2008-02-15T17:49:09Z")

</div>

I’m getting an error when I try to run script/console in the production environment, but it cuts 23 levels out of the stack trace that might contain information I need to debug it. How can I display the entire stack t…

---

## [Drag and drop?](https://www.ruby-forum.com/t/drag-and-drop/129233)

<div class="topic-metadata">

**Author:** [@balavrscse](https://www.ruby-forum.com/u/balavrscse)\
**Replies:** 1\
**Last updated:** [February 15, 2008, 5:33pm UTC](https://www.ruby-forum.com/t/drag-and-drop/129233 "2008-02-15T17:33:48Z")

</div>

how can i enable drag and drop in my rails application without using unordered list items?

---

## [Acts\_as\_reportable](https://www.ruby-forum.com/t/acts-as-reportable/129232)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 0\
**Last updated:** [February 15, 2008, 5:23pm UTC](https://www.ruby-forum.com/t/acts-as-reportable/129232 "2008-02-15T17:23:11Z")

</div>

Hi, I posted this on the Ruby Reports forum as well, but this may be more of a Rails How-To… I’m using acts\_as\_reportable to generate a simple html table. I am using a form for the user to select the model of which …

---

## [Simple date\_select question](https://www.ruby-forum.com/t/simple-date-select-question/129154)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 2\
**Last updated:** [February 15, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/simple-date-select-question/129154 "2008-02-15T16:28:53Z")

</div>

Hi- Using date select for a query and when I try and print the result to make sure I am getting the right date, I get this: start\_year2007ordermonthdayyear(2i)2start\_year2007ordermonthdayyear(3i)14start\_year2007orderm…

---

## [Still having this problem](https://www.ruby-forum.com/t/still-having-this-problem/129219)

<div class="topic-metadata">

**Author:** [@Jeremy\_Mayhew](https://www.ruby-forum.com/u/Jeremy_Mayhew)\
**Replies:** 0\
**Last updated:** [February 15, 2008, 4:08pm UTC](https://www.ruby-forum.com/t/still-having-this-problem/129219 "2008-02-15T16:08:06Z")

</div>

I am having an identical problem with my first rails app. Everything is fine on my local machine (Mac) but when I put it on my shared host, I am getting this problem.

---

## [HAML question - conditional multiple classes on a div](https://www.ruby-forum.com/t/haml-question-conditional-multiple-classes-on-a-div/129181)

<div class="topic-metadata">

**Author:** [@apswartz](https://www.ruby-forum.com/u/apswartz)\
**Replies:** 2\
**Last updated:** [February 15, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/haml-question-conditional-multiple-classes-on-a-div/129181 "2008-02-15T15:59:09Z")

</div>

I am looking into HAML and am trying to convert one of my ERB templates to see what I think of it. Everything was going pretty well until I got to the following snippet: "\> \<%= h(t.description)%\> How would yo…

---

## [Ruby on AIX?](https://www.ruby-forum.com/t/ruby-on-aix/97446)

<div class="topic-metadata">

**Author:** [@Karthik\_Krishnan](https://www.ruby-forum.com/u/Karthik_Krishnan)\
**Replies:** 1\
**Last updated:** [February 15, 2008, 3:55pm UTC](https://www.ruby-forum.com/t/ruby-on-aix/97446 "2008-02-15T15:55:05Z")

</div>

I have managed to compile Ruby on AIX 5.3 and have run my application successfully on it. I have to go thru some series of simple steps to achieve the same. I have tried to document the same for the benefit of other…

---

## [ActiveScaffold behavior modification](https://www.ruby-forum.com/t/activescaffold-behavior-modification/128950)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 2\
**Last updated:** [February 15, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/activescaffold-behavior-modification/128950 "2008-02-15T15:50:54Z")

</div>

I have a small project running using ActiveScaffold sucesfully. As my next step I would like to modify things such that after a search is executed if the result is one record skip directly to the show of the record (…

---

## [Complex form issue](https://www.ruby-forum.com/t/complex-form-issue/129217)

<div class="topic-metadata">

**Author:** [@buddhi](https://www.ruby-forum.com/u/buddhi)\
**Replies:** 0\
**Last updated:** [February 15, 2008, 3:16pm UTC](https://www.ruby-forum.com/t/complex-form-issue/129217 "2008-02-15T15:16:11Z")

</div>

I’m designing an application that has products and suppliers. Single product has\_many suppliers and each supplier has unique supplier code for each product. The form would facilitate something like Select supplier f…

---

## [Is there a 64 bit version of Rails?](https://www.ruby-forum.com/t/is-there-a-64-bit-version-of-rails/129215)

<div class="topic-metadata">

**Author:** [@wtbrowne](https://www.ruby-forum.com/u/wtbrowne)\
**Replies:** 1\
**Last updated:** [February 15, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/is-there-a-64-bit-version-of-rails/129215 "2008-02-15T15:15:28Z")

</div>

Hello, I’m new here and I’m looking at using Rails for web development. Is there a 64 bit version of Rails or does one version run on 32 bit and 64 bit platforms. by the way, I did a search on this subject and was un…

---

## [STI Problems](https://www.ruby-forum.com/t/sti-problems/125987)

<div class="topic-metadata">

**Author:** [@adish](https://www.ruby-forum.com/u/adish)\
**Replies:** 1\
**Last updated:** [February 15, 2008, 2:34pm UTC](https://www.ruby-forum.com/t/sti-problems/125987 "2008-02-15T14:34:11Z")

</div>

Hi, I’ve been trying to figure out STI and I’m having some trouble getting things to work smoothly. I can generate the STI hierarchy with no problem but then things get strange. I ran an experiment to try and figure …

---

## [Creating hash and putting form content into it](https://www.ruby-forum.com/t/creating-hash-and-putting-form-content-into-it/129147)

<div class="topic-metadata">

**Author:** [@jack](https://www.ruby-forum.com/u/jack)\
**Replies:** 4\
**Last updated:** [February 15, 2008, 2:22pm UTC](https://www.ruby-forum.com/t/creating-hash-and-putting-form-content-into-it/129147 "2008-02-15T14:22:20Z")

</div>

I’ve got a form with fields of this naming convention: First Name: \<input type=“text” name=“customer\[first\_name\]” … Last Name: \<input type=“text” name=“customer\[last\_name\]” … Address: \<input type=“text” name=“custom…

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

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