# Rails

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

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

---

## [Association extend rails 2 feature](https://www.ruby-forum.com/t/association-extend-rails-2-feature/148446)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 2\
**Last updated:** [September 13, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/association-extend-rails-2-feature/148446 "2008-09-13T19:35:03Z")

</div>

I’ve been looking on the internet for the feature in rails where you can specify an association extend module on the actual class. So for example class Printer \< AR::Base some\_association\_extend\_method\_that\_i\_cant\_fi…

---

## [Restful\_authentication rspec failures "Mysql::Error: Incorrect datetime value:"](https://www.ruby-forum.com/t/restful-authentication-rspec-failures-mysql-incorrect-datetime-value/148449)

<div class="topic-metadata">

**Author:** [@scottnj](https://www.ruby-forum.com/u/scottnj)\
**Replies:** 1\
**Last updated:** [September 13, 2008, 7:33pm UTC](https://www.ruby-forum.com/t/restful-authentication-rspec-failures-mysql-incorrect-datetime-value/148449 "2008-09-13T19:33:09Z")

</div>

I am getting 193 failures that all have “Mysql::Error: Incorrect datetime value:” how do i fix this??? i am new to rspec and restful\_auth, so if i am doing something wrong, let me know!!! windows xp rails 2.1.1 rai…

---

## [REST & Routing: namespaces within resources](https://www.ruby-forum.com/t/rest-routing-namespaces-within-resources/148382)

<div class="topic-metadata">

**Author:** [@mattwynne](https://www.ruby-forum.com/u/mattwynne)\
**Replies:** 1\
**Last updated:** [September 13, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/rest-routing-namespaces-within-resources/148382 "2008-09-13T19:10:50Z")

</div>

I know I can use a namespace on the map passed into the block for ActionController::Routing::Routes.draw because I’ve done that with some Admin:: controllers. What I want to do is something similar with controllers fo…

---

## [Getting a list of models, AND custom model directory](https://www.ruby-forum.com/t/getting-a-list-of-models-and-custom-model-directory/148339)

<div class="topic-metadata">

**Author:** [@Mozmonkey](https://www.ruby-forum.com/u/Mozmonkey)\
**Replies:** 6\
**Last updated:** [September 13, 2008, 6:56pm UTC](https://www.ruby-forum.com/t/getting-a-list-of-models-and-custom-model-directory/148339 "2008-09-13T18:56:10Z")

</div>

I’m building an a client/web application that will rely on custom, simple plugins that will be written as models with single table inheritance to a Widget class. Ideally somebody would just need to create a simple mo…

---

## [MySQL Gem](https://www.ruby-forum.com/t/mysql-gem/148492)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 3\
**Last updated:** [September 13, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/mysql-gem/148492 "2008-09-13T17:57:36Z")

</div>

The RoR app that I have inherited was running without MySQL native drivers on Ubuntu. I just installed MySQL gems to get the benifit of using Native drivers. However: How do I know that the app has switched to usi…

---

## [Generating XML in a model](https://www.ruby-forum.com/t/generating-xml-in-a-model/148495)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 2\
**Last updated:** [September 13, 2008, 5:20pm UTC](https://www.ruby-forum.com/t/generating-xml-in-a-model/148495 "2008-09-13T17:20:05Z")

</div>

Hi all, I have an application that produces an RSS feed of blog posts. To do this, I have a file rss.rxml that contains code like this: @blogs.each do |blog| xml.item do xml.title blog.subject xml.link …

---

## [Problem with find\_by\_sql()](https://www.ruby-forum.com/t/problem-with-find-by-sql/148421)

<div class="topic-metadata">

**Author:** [@gismosio](https://www.ruby-forum.com/u/gismosio)\
**Replies:** 2\
**Last updated:** [September 13, 2008, 4:37pm UTC](https://www.ruby-forum.com/t/problem-with-find-by-sql/148421 "2008-09-13T16:37:14Z")

</div>

hi… I have a question concerning the method find\_by\_sql()… i wonna to make a query like this: “SELECT category, COUNT(\*) FROM tables1” but cannot return anything… I want to know the correct procedure for the output …

---

## [Send email](https://www.ruby-forum.com/t/send-email/148484)

<div class="topic-metadata">

**Author:** [@fRAnKEnSTEin](https://www.ruby-forum.com/u/fRAnKEnSTEin)\
**Replies:** 4\
**Last updated:** [September 13, 2008, 2:53pm UTC](https://www.ruby-forum.com/t/send-email/148484 "2008-09-13T14:53:02Z")

</div>

Hi, i am trying to send an email using RoR version 2.1.0 but i get some errors. I have this configuration: 1- In config/eviroment.rb, at the very end of my file: ActionMailer::Base.delivery\_method = :smtp ActionMaile…

---

## [Data type of MySQL result fields is always string](https://www.ruby-forum.com/t/data-type-of-mysql-result-fields-is-always-string/148489)

<div class="topic-metadata">

**Author:** [@nixon](https://www.ruby-forum.com/u/nixon)\
**Replies:** 3\
**Last updated:** [September 13, 2008, 2:05pm UTC](https://www.ruby-forum.com/t/data-type-of-mysql-result-fields-is-always-string/148489 "2008-09-13T14:05:02Z")

</div>

I have a trouble with MySQL select result fields’ data type definition - all fields’ type is always string. For example, I call this code: ActiveRecord::Base.connection.select\_all(‘SELECT COUNT(\*) count FROM table’).f…

---

## [Prototype & scriptaculous js lib loading error](https://www.ruby-forum.com/t/prototype-scriptaculous-js-lib-loading-error/148482)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [September 13, 2008, 11:56am UTC](https://www.ruby-forum.com/t/prototype-scriptaculous-js-lib-loading-error/148482 "2008-09-13T11:56:48Z")

</div>

I am trying to incorporate a js widget into my webapp… the html file widget is running fine in my browsers (FF3, Safari 3…) , the js lib loading is defined as folloing : I tried to run it into my Rails app as it …

---

## [Tzinfo\_timezone](https://www.ruby-forum.com/t/tzinfo-timezone/148373)

<div class="topic-metadata">

**Author:** [@Ricky](https://www.ruby-forum.com/u/Ricky)\
**Replies:** 2\
**Last updated:** [September 13, 2008, 10:33am UTC](https://www.ruby-forum.com/t/tzinfo-timezone/148373 "2008-09-13T10:33:42Z")

</div>

Hi, I tried installing the tzinfo\_timezone plugin (and the tzinfo gem) in my rails 2.1 application. Now calls to date\_select fail with: wrong number of arguments (3 for 2). Removing the tzinfo\_timezone plugin fixes e…

---

## [Getting controller, action, and params for a given path](https://www.ruby-forum.com/t/getting-controller-action-and-params-for-a-given-path/148453)

<div class="topic-metadata">

**Author:** [@Darrik\_Mazey](https://www.ruby-forum.com/u/Darrik_Mazey)\
**Replies:** 2\
**Last updated:** [September 13, 2008, 9:23am UTC](https://www.ruby-forum.com/t/getting-controller-action-and-params-for-a-given-path/148453 "2008-09-13T09:23:29Z")

</div>

Hello, I’m trying to find a programmatic way to get access to the routing table such that I can discover what controller, action, etc., a given path would map to. I could parse the path string myself, but I’d like to…

---

## [Ruby Pages Not Updating](https://www.ruby-forum.com/t/ruby-pages-not-updating/148467)

<div class="topic-metadata">

**Author:** [@Andrew\_Krause](https://www.ruby-forum.com/u/Andrew_Krause)\
**Replies:** 1\
**Last updated:** [September 13, 2008, 3:18am UTC](https://www.ruby-forum.com/t/ruby-pages-not-updating/148467 "2008-09-13T03:18:23Z")

</div>

I am a complete beginner to Ruby. I followed the tutorial to create my own scaffold called Books. My problem is that, when I make changes to its index.html.erb, the http://url/books page does not update for a few minu…

---

## [\[ANN\] New release Lockdown 0.5.21](https://www.ruby-forum.com/t/ann-new-release-lockdown-0-5-21/148461)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 0\
**Last updated:** [September 13, 2008, 1:26am UTC](https://www.ruby-forum.com/t/ann-new-release-lockdown-0-5-21/148461 "2008-09-13T01:26:04Z")

</div>

About: http://stonean.com/wiki/lockdown Lockdown is a authentication/authorization system for RubyOnRails (ver 2.x). Lockdown operates on the principal of restrict all access unless access has been defined. Anothe…

---

## [Tracking Users in a Rails App](https://www.ruby-forum.com/t/tracking-users-in-a-rails-app/148442)

<div class="topic-metadata">

**Author:** [@Avishai](https://www.ruby-forum.com/u/Avishai)\
**Replies:** 1\
**Last updated:** [September 13, 2008, 12:27am UTC](https://www.ruby-forum.com/t/tracking-users-in-a-rails-app/148442 "2008-09-13T00:27:01Z")

</div>

Hey everyone, I’m looking to track what my users do in my Rails app. I know that for pageviews, etc. there’s Google Analytics, and that’s fine, but I’m looking to implement a more robust, user specific way to know wha…

---

## [Cyrillic letters](https://www.ruby-forum.com/t/cyrillic-letters/148455)

<div class="topic-metadata">

**Author:** [@blueshadow](https://www.ruby-forum.com/u/blueshadow)\
**Replies:** 0\
**Last updated:** [September 13, 2008, 12:23am UTC](https://www.ruby-forum.com/t/cyrillic-letters/148455 "2008-09-13T00:23:55Z")

</div>

Hello ! I have a simple search form. If i pass the Cyrillic letters true form i can’t read them! i’m geting something like q:0LTQuNGa0LA Cyrillic letters from database or directly on html.erb are ok! Please help! T…

---

## [Template paths and view paths with namespaced controllers?](https://www.ruby-forum.com/t/template-paths-and-view-paths-with-namespaced-controllers/148451)

<div class="topic-metadata">

**Author:** [@Danimal](https://www.ruby-forum.com/u/Danimal)\
**Replies:** 1\
**Last updated:** [September 13, 2008, 12:23am UTC](https://www.ruby-forum.com/t/template-paths-and-view-paths-with-namespaced-controllers/148451 "2008-09-13T00:23:31Z")

</div>

Hello! So I’ve got a confusing situation… I’ve got some controllers namespaced by account types, for example “Buyer” and “Seller”. I want to have some controllers in either namespace look in a common directory first …

---

## [How to track down never-ending requests](https://www.ruby-forum.com/t/how-to-track-down-never-ending-requests/148345)

<div class="topic-metadata">

**Author:** [@giaco](https://www.ruby-forum.com/u/giaco)\
**Replies:** 5\
**Last updated:** [September 13, 2008, 12:06am UTC](https://www.ruby-forum.com/t/how-to-track-down-never-ending-requests/148345 "2008-09-13T00:06:32Z")

</div>

Occasionally, my server gets nearly completely unresponsive. Nearly the entire CPU usage is spent in IO wait. I’m forced to kill the ruby processes to get the server back up. The log files are not very useful because …

---

## [Nested XML using REST](https://www.ruby-forum.com/t/nested-xml-using-rest/226025)

<div class="topic-metadata">

**Author:** [@rainyglade](https://www.ruby-forum.com/u/rainyglade)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 11:57pm UTC](https://www.ruby-forum.com/t/nested-xml-using-rest/226025 "2008-09-12T23:57:59Z")

</div>

My Simulation model looks like this: class Simulation \< ActiveRecord::Base belongs\_to :user has\_many :resources has\_many :loads has\_many :distributions has\_many :buffers… My Load model: class Load \< ActiveRecord:…

---

## [Utf 8 or something else?](https://www.ruby-forum.com/t/utf-8-or-something-else/148281)

<div class="topic-metadata">

**Author:** [@blueshadow](https://www.ruby-forum.com/u/blueshadow)\
**Replies:** 1\
**Last updated:** [September 12, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/utf-8-or-something-else/148281 "2008-09-12T23:55:46Z")

</div>

Hello! If i perform the search with Cyrillic letters i’m getting this params. --- !map:HashWithIndifferentAccess \<b\>search: !binary | 0YHQsNGa0LTRgdGZ0Zo=?\</b\> authenticity\_token: ada7888510dacc744af93f6a5f3d058d942…

---

## [Help - mongrel not running on windows, MissingSourceFile](https://www.ruby-forum.com/t/help-mongrel-not-running-on-windows-missingsourcefile/148062)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 2\
**Last updated:** [September 12, 2008, 9:15pm UTC](https://www.ruby-forum.com/t/help-mongrel-not-running-on-windows-missingsourcefile/148062 "2008-09-12T21:15:33Z")

</div>

I’m relatively new to RoR. I’m using InstantRails2.0 on WinXP. My app was working fine, until I started trying to get RMagick to work. During that process I updated rubygem. At that point, mongrel was still starting…

---

## [How can i add download functionality](https://www.ruby-forum.com/t/how-can-i-add-download-functionality/138647)

<div class="topic-metadata">

**Author:** [@djdon11](https://www.ruby-forum.com/u/djdon11)\
**Replies:** 3\
**Last updated:** [September 12, 2008, 8:34pm UTC](https://www.ruby-forum.com/t/how-can-i-add-download-functionality/138647 "2008-09-12T20:34:57Z")

</div>

Hello friends i have to generate a text file when clicked on a button and when this file got generated than i have to show a download dialog box so that user can download this text file on his computer, can any body g…

---

## [Java's long-term problem](https://www.ruby-forum.com/t/javas-long-term-problem/148432)

<div class="topic-metadata">

**Author:** [@coldtone](https://www.ruby-forum.com/u/coldtone)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/javas-long-term-problem/148432 "2008-09-12T19:42:35Z")

</div>

java’s biggest long-term problem, thought you might like this blog post:

---

## [Conditional RJS for :create action](https://www.ruby-forum.com/t/conditional-rjs-for-create-action/145023)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 5\
**Last updated:** [September 12, 2008, 7:41pm UTC](https://www.ruby-forum.com/t/conditional-rjs-for-create-action/145023 "2008-09-12T19:41:18Z")

</div>

I need to create Replies to Comments using RJS. The interface has determined two different ways of creating replies. One could be seen as a ‘inline reply’ approach (once posted, the reply pops in to view, in place of …

---

## [Toronto Ruby on Rails Project Night Returns Sept. 19th (Seaside, WebVelocity, and ActiveRecord)](https://www.ruby-forum.com/t/toronto-ruby-on-rails-project-night-returns-sept-19th-seaside-webvelocity-and-activerecord/148433)

<div class="topic-metadata">

**Author:** [@Corina](https://www.ruby-forum.com/u/Corina)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/toronto-ruby-on-rails-project-night-returns-sept-19th-seaside-webvelocity-and-activerecord/148433 "2008-09-12T19:40:14Z")

</div>

After a much needed summer hiatus, the Toronto Ruby on Rails Project Night ‘community’ is set to gather again on Friday September 19th at a NEW location: the Rich Media Institute! As some of you may realize, this is a…

---

## [Senior Technical Architect â€“ Minimum 8 â€“ 10 years experience](https://www.ruby-forum.com/t/senior-technical-architect-a-minimum-8-a-10-years-experience/148403)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [September 12, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/senior-technical-architect-a-minimum-8-a-10-years-experience/148403 "2008-09-12T19:29:31Z")

</div>

We have Senior Technical Architect requirements for one of our client in Bangalore. Details are given below. We are looking for candidates with 8-10 years of experience. Experience in designing and developing Social N…

---

## [Exclude globalize from action](https://www.ruby-forum.com/t/exclude-globalize-from-action/148428)

<div class="topic-metadata">

**Author:** [@PanosJee](https://www.ruby-forum.com/u/PanosJee)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/exclude-globalize-from-action/148428 "2008-09-12T19:24:50Z")

</div>

Hi everyone, I would like to know if it possible not to load globalize for a specific actions. I try to convert a view to pdf but there are some conflicts in the render\_to\_string function. So I would like to render t…

---

## [Ruby-odbc and OpenEdger 10.1C](https://www.ruby-forum.com/t/ruby-odbc-and-openedger-10-1c/148304)

<div class="topic-metadata">

**Author:** [@wtn12049](https://www.ruby-forum.com/u/wtn12049)\
**Replies:** 1\
**Last updated:** [September 12, 2008, 6:32pm UTC](https://www.ruby-forum.com/t/ruby-odbc-and-openedger-10-1c/148304 "2008-09-12T18:32:59Z")

</div>

Hi everyone, I am trying to build a rails app with a progress openedge 10.1c backend db. I installed ruby-odbc and tested it with a DSN for mysql and everythign works great, however when i use ODBC.connect(dsn\_name)…

---

## [Sort\_by issue on multi criterias](https://www.ruby-forum.com/t/sort-by-issue-on-multi-criterias/148424)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [September 12, 2008, 6:30pm UTC](https://www.ruby-forum.com/t/sort-by-issue-on-multi-criterias/148424 "2008-09-12T18:30:03Z")

</div>

HI mates I am trying to sort an array on 2 criterias , one is just in memory accessor, other is a record attribute : I have the following User model : class User \< ActiveRecord::Base name is an attribute in the tabl…

---

## [Login system not loading](https://www.ruby-forum.com/t/login-system-not-loading/148310)

<div class="topic-metadata">

**Author:** [@Gig\_gift](https://www.ruby-forum.com/u/Gig_gift)\
**Replies:** 1\
**Last updated:** [September 12, 2008, 6:27pm UTC](https://www.ruby-forum.com/t/login-system-not-loading/148310 "2008-09-12T18:27:43Z")

</div>

Hey guys I am new to ruby and programming in general. I tried to create a login system using ruby gems and got this message. Some body help. Here is the error message. NoMethodError in Account#signup Showing app/vie…

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

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