# Rails

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

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

---

## [Layout :except](https://www.ruby-forum.com/t/layout-except/131311)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 2\
**Last updated:** [March 8, 2008, 12:59am UTC](https://www.ruby-forum.com/t/layout-except/131311 "2008-03-08T00:59:15Z")

</div>

Hello, I have a controller that has a layout for the view, but I don’t want it to use the layout for two actions - “exportflagged” and “fullreport”. I tried to use: layout ‘standard’, :except =\> :fullreport, :except …

---

## [Image field (binary), MS SQL Server](https://www.ruby-forum.com/t/image-field-binary-ms-sql-server/80046)

<div class="topic-metadata">

**Author:** [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Replies:** 8\
**Last updated:** [March 8, 2008, 12:56am UTC](https://www.ruby-forum.com/t/image-field-binary-ms-sql-server/80046 "2008-03-08T00:56:17Z")

</div>

Using ActionWebServices, I am returning an ArtifactRevision model that has a Image column (binary). Here is the webservice code: def get\_revision(revision\_id) begin return ArtifactRevision.find(revision\_id) rescue …

---

## [Another really elementary question](https://www.ruby-forum.com/t/another-really-elementary-question/131310)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 4\
**Last updated:** [March 8, 2008, 12:22am UTC](https://www.ruby-forum.com/t/another-really-elementary-question/131310 "2008-03-08T00:22:12Z")

</div>

Hi, So I’m still trying to work through a tutorial on building a CMS and blog. I have a blog\_controller.rb with post and comments. In my show action, I’m trying to get it to pull the post with the given id and then…

---

## [ActiveRecordStore: cleanup & avoiding duplication](https://www.ruby-forum.com/t/activerecordstore-cleanup-avoiding-duplication/131315)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 0\
**Last updated:** [March 8, 2008, 12:11am UTC](https://www.ruby-forum.com/t/activerecordstore-cleanup-avoiding-duplication/131315 "2008-03-08T00:11:50Z")

</div>

Hi, I’m using ActiveRecordStore to track user sessions. I’ve used as a base the next sources: http://blog.levicole.com/articles/category/ror http://matt-beedle.com/2006/12/13/rails-how-to-find-out-who-is-online/ http…

---

## [Active Record associations question](https://www.ruby-forum.com/t/active-record-associations-question/131188)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 11:04pm UTC](https://www.ruby-forum.com/t/active-record-associations-question/131188 "2008-03-07T23:04:04Z")

</div>

Hi Something I’m doing works magically in Rails and I’m trying to figure out how :slight\_smile: Lets say I have a Post model which has many Comments Within my Comment model I have this: def foo(title) self.create(:…

---

## [Value\_before\_type\_cast](https://www.ruby-forum.com/t/value-before-type-cast/131314)

<div class="topic-metadata">

**Author:** [@BensPop](https://www.ruby-forum.com/u/BensPop)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 10:55pm UTC](https://www.ruby-forum.com/t/value-before-type-cast/131314 "2008-03-07T22:55:14Z")

</div>

I have created a plugin that returns a Flash text editor and a hidden input field. I’m using an instance of the InstanceTag class to create a custom form helper for the hidden field. I need to be able to manipulate th…

---

## [Captchator: A simpler Captcha](https://www.ruby-forum.com/t/captchator-a-simpler-captcha/72153)

<div class="topic-metadata">

**Author:** [@andreas](https://www.ruby-forum.com/u/andreas)\
**Replies:** 1\
**Last updated:** [March 7, 2008, 9:57pm UTC](https://www.ruby-forum.com/t/captchator-a-simpler-captcha/72153 "2008-03-07T21:57:44Z")

</div>

Being annoyed with the complexity of existing captcha implementations (PStore, temporary files - wtf?), I rolled my own and turned it into an easy-to-use webservice: http://captchator.ruby-forum.com/ I only have an ex…

---

## [VTD-XML 2.3 released](https://www.ruby-forum.com/t/vtd-xml-2-3-released/196605)

<div class="topic-metadata">

**Author:** [@jzhang](https://www.ruby-forum.com/u/jzhang)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 9:52pm UTC](https://www.ruby-forum.com/t/vtd-xml-2-3-released/196605 "2008-03-07T21:52:51Z")

</div>

Version 2.3 of VTD-XML (http://vtd-xml.sf.net), the next generation document-centric XML processing model, is now released. To download the latest version please visit http://sourceforge.net/project/showfiles.php?grou…

---

## [VTD-XML 2.3 released](https://www.ruby-forum.com/t/vtd-xml-2-3-released/131307)

<div class="topic-metadata">

**Author:** [@jzhang](https://www.ruby-forum.com/u/jzhang)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 9:50pm UTC](https://www.ruby-forum.com/t/vtd-xml-2-3-released/131307 "2008-03-07T21:50:30Z")

</div>

Version 2.3 of VTD-XML (http://vtd-xml.sf.net), the next generation document-centric XML processing model, is now released. To download the latest version please visit VTD-XML: The Future of XML Processing - Browse Fi…

---

## [Concatenated fields in a model](https://www.ruby-forum.com/t/concatenated-fields-in-a-model/131298)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/concatenated-fields-in-a-model/131298 "2008-03-07T21:41:38Z")

</div>

Hello RoR community from a newbie! I have a document number “database” in which each document number consists of 3 parts: a 2 digit “document category” prefix, a 5 digit document number, and a 3 digit “document variat…

---

## [Has\_many and validates\_associated](https://www.ruby-forum.com/t/has-many-and-validates-associated/131027)

<div class="topic-metadata">

**Author:** [@grey-lantern](https://www.ruby-forum.com/u/grey-lantern)\
**Replies:** 3\
**Last updated:** [March 7, 2008, 8:59pm UTC](https://www.ruby-forum.com/t/has-many-and-validates-associated/131027 "2008-03-07T20:59:16Z")

</div>

Given the following code: class MyClass \< ActiveRecord::Base has\_many :technical\_contacts has\_many :schedule\_contacts validates\_associated :technical\_contacts, :schedule\_contacts protected def validate validate\_co…

---

## [Acts\_as\_ferret searching id](https://www.ruby-forum.com/t/acts-as-ferret-searching-id/131231)

<div class="topic-metadata">

**Author:** [@jfaulkenberry](https://www.ruby-forum.com/u/jfaulkenberry)\
**Replies:** 3\
**Last updated:** [March 7, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-searching-id/131231 "2008-03-07T20:47:29Z")

</div>

Hi there, I’m using acts\_as\_ferret, and I’d like to search by ID. Apparently aaf automatically adds id to the search index, and I noticed that if you try to manually add it you get an error, but if I search by ID it …

---

## [Ruby on Rails - Senior Software Engineer: Bend, OR](https://www.ruby-forum.com/t/ruby-on-rails-senior-software-engineer-bend-or/131302)

<div class="topic-metadata">

**Author:** [@anne](https://www.ruby-forum.com/u/anne)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 8:32pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-senior-software-engineer-bend-or/131302 "2008-03-07T20:32:10Z")

</div>

SENIOR SOFTWARE ENGINEER - RUBY ON RAILS Overview: Enterprise Architects looking for that dream job in Bend, Oregon? Our client has developed a Version 1.0 software release of an exciting new web based monitoring pla…

---

## [Using Array.each in a helper](https://www.ruby-forum.com/t/using-array-each-in-a-helper/131288)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 1\
**Last updated:** [March 7, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/using-array-each-in-a-helper/131288 "2008-03-07T20:25:07Z")

</div>

hi all, I’m trying to do a each on an array the droppable element \<%= draggable\_element “user\_” + create\_drop\_zone(zone), :revert =\> true, :onStart =\> “function(){” %\> \<% drop\_zone\_ids.each do | zone| %\> Element.…

---

## [Ruby on Rails job NYC](https://www.ruby-forum.com/t/ruby-on-rails-job-nyc/130480)

<div class="topic-metadata">

**Author:** [@RubyRecruiter](https://www.ruby-forum.com/u/RubyRecruiter)\
**Replies:** 11\
**Last updated:** [March 7, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-job-nyc/130480 "2008-03-07T20:02:30Z")

</div>

I hope you don’t mind me posting on the site. I am a recruiter who recently has been working with a few companies requiring ruby on Rails. Presently I have an advertising firm in NYC that needs 4 Ruby on Rails Develop…

---

## [Create\_spec fails INSERT INTO](https://www.ruby-forum.com/t/create-spec-fails-insert-into/131296)

<div class="topic-metadata">

**Author:** [@kaizerkaizer](https://www.ruby-forum.com/u/kaizerkaizer)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 7:37pm UTC](https://www.ruby-forum.com/t/create-spec-fails-insert-into/131296 "2008-03-07T19:37:57Z")

</div>

\###USER CONTROLLER### ##################### @spec = current\_user.spec @spec = current\_user.create\_spec unless @spec ################################################### class User \< ActiveRecord::Base #class definiti…

---

## [Looking for Ruby developer to set up simple forum](https://www.ruby-forum.com/t/looking-for-ruby-developer-to-set-up-simple-forum/131295)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 7:20pm UTC](https://www.ruby-forum.com/t/looking-for-ruby-developer-to-set-up-simple-forum/131295 "2008-03-07T19:20:39Z")

</div>

Hi I am looking for someone to do really simple project and set up this forum for me http://beast.caboo.se/ Thanks Jakub Zielinski removed\_email\_address@domain.invalid

---

## [Time\_zone\_select() Trouble](https://www.ruby-forum.com/t/time-zone-select-trouble/131294)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 7:04pm UTC](https://www.ruby-forum.com/t/time-zone-select-trouble/131294 "2008-03-07T19:04:39Z")

</div>

I am having a lot of trouble getting my time zone select to default to the user’s previously selected time zone. Here’s my code: \<%= time\_zone\_select :other, :time\_zone, TimeZone.us\_zones, :selected =\> cookies\[:time\_…

---

## [Trouble using RESTful helper](https://www.ruby-forum.com/t/trouble-using-restful-helper/131284)

<div class="topic-metadata">

**Author:** [@Fredrik\_K](https://www.ruby-forum.com/u/Fredrik_K)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 7:04pm UTC](https://www.ruby-forum.com/t/trouble-using-restful-helper/131284 "2008-03-07T19:04:39Z")

</div>

Hi, I am trying to get into this REST thing, I have a nested resource whith the following route: ActionController::Routing::Routes.draw do |map| map.resources :members map.resources :clubs do |club| club.resources …

---

## [Handling default values in models](https://www.ruby-forum.com/t/handling-default-values-in-models/131286)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 7:02pm UTC](https://www.ruby-forum.com/t/handling-default-values-in-models/131286 "2008-03-07T19:02:01Z")

</div>

I have been searching for articles and code relating to setting default values inside the model and I have found several different approaches to this issue. I am therefore inquiring if the community has formed any con…

---

## [Restful Authentication - which users are logged in](https://www.ruby-forum.com/t/restful-authentication-which-users-are-logged-in/131147)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 4\
**Last updated:** [March 7, 2008, 6:16pm UTC](https://www.ruby-forum.com/t/restful-authentication-which-users-are-logged-in/131147 "2008-03-07T18:16:17Z")

</div>

Hi, I’m using Restful Authentication plugin to provide credentials to users to my service. I’d like to be able to list which users are logged into the system. What would be the best approach. At least in the session…

---

## [Swarmpolls.com - New product Launched in ROR](https://www.ruby-forum.com/t/swarmpolls-com-new-product-launched-in-ror/131290)

<div class="topic-metadata">

**Author:** [@Manoj\_Samuel](https://www.ruby-forum.com/u/Manoj_Samuel)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/swarmpolls-com-new-product-launched-in-ror/131290 "2008-03-07T18:09:13Z")

</div>

Friends, Check out and see the new product launched in ROR. www.swarmpolls.com Any any one having questions can post in this forum or wish to get a product developed can reply to this email. Regards, Manoj Samuel …

---

## [How to determine remote IP address in ActionWebService API's](https://www.ruby-forum.com/t/how-to-determine-remote-ip-address-in-actionwebservice-apis/131289)

<div class="topic-metadata">

**Author:** [@rf-vsv](https://www.ruby-forum.com/u/rf-vsv)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 6:06pm UTC](https://www.ruby-forum.com/t/how-to-determine-remote-ip-address-in-actionwebservice-apis/131289 "2008-03-07T18:06:52Z")

</div>

Hello all! I trying to create XMLRPC service with ActionWebService plugin and Rails 2.0.2. I use conventional layered based API. This is my controller: class RpcController \< ApplicationController skip\_before\_filter …

---

## [\[ANN\] GateKeeper, Model Level Permissions Management](https://www.ruby-forum.com/t/ann-gatekeeper-model-level-permissions-management/131170)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/ann-gatekeeper-model-level-permissions-management/131170 "2008-03-07T17:48:31Z")

</div>

I’m pleased to announce the official release of “GateKeeper”. GateKeeper is a Rails plugin that provides easy to use methods to declare access permissions to instances of ActiveRecord classes at the model level. Permi…

---

## [Sending Warning message to user?](https://www.ruby-forum.com/t/sending-warning-message-to-user/131013)

<div class="topic-metadata">

**Author:** [@casid](https://www.ruby-forum.com/u/casid)\
**Replies:** 11\
**Last updated:** [March 7, 2008, 5:46pm UTC](https://www.ruby-forum.com/t/sending-warning-message-to-user/131013 "2008-03-07T17:46:45Z")

</div>

Hello RoR Developers, I was wondering that can we send warning message like “alert” from controller. can I write something like flash\[:message\]=“message” alert(\<%flash\[:message\]%\>) warn.message(“or something like t…

---

## [Pagination for an object array](https://www.ruby-forum.com/t/pagination-for-an-object-array/131122)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [March 7, 2008, 5:33pm UTC](https://www.ruby-forum.com/t/pagination-for-an-object-array/131122 "2008-03-07T17:33:22Z")

</div>

def show\_details @sd\_ticket = ServiceDeskTicket.find(params\[:id\]) @servicedesk\_cis = @sd\_ticket.service\_desk\_cis end What I need is a pagination for @servicedesk\_cis using the custom pagination…How can i give offset…

---

## [Monit trumps mongrel\_cluster?](https://www.ruby-forum.com/t/monit-trumps-mongrel-cluster/131105)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 5\
**Last updated:** [March 7, 2008, 5:23pm UTC](https://www.ruby-forum.com/t/monit-trumps-mongrel-cluster/131105 "2008-03-07T17:23:07Z")

</div>

I’ve been reading through the book “Deploying Rails Applications,” studing a setup done by someone els, and creating my own new setup. In the end it appears that mongrel\_cluster (deemed “required” by these setups) act…

---

## [Vendor Everything & Rake](https://www.ruby-forum.com/t/vendor-everything-rake/131281)

<div class="topic-metadata">

**Author:** [@fuzzy66](https://www.ruby-forum.com/u/fuzzy66)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 4:44pm UTC](https://www.ruby-forum.com/t/vendor-everything-rake/131281 "2008-03-07T16:44:50Z")

</div>

We are considering moving our app to a “vendor everything” model: I’m able to get the application to work fine this way, but, rake tasks don’t work unless I have the gems installed. Some of our rake tasks use the sam…

---

## [Pagination\_find outside of find?](https://www.ruby-forum.com/t/pagination-find-outside-of-find/131271)

<div class="topic-metadata">

**Author:** [@Eva](https://www.ruby-forum.com/u/Eva)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 4:41pm UTC](https://www.ruby-forum.com/t/pagination-find-outside-of-find/131271 "2008-03-07T16:41:53Z")

</div>

I am selecting records from the database using find. Then I delete records out of the array, that I don’t want. That means I have fewer records in my array then after the find. Therefore I cannot put the :page =\> {:si…

---

## [Using Erb inside SQL fiields](https://www.ruby-forum.com/t/using-erb-inside-sql-fiields/131237)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 4:37pm UTC](https://www.ruby-forum.com/t/using-erb-inside-sql-fiields/131237 "2008-03-07T16:37:43Z")

</div>

Hi, So I have a basic CMS I’m working on where a page has a title and a body field. The body field is just plain html stored as text in the SQL database. I have two questions/concerns: how do I get erb to work fr…

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

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