# Rails

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

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

---

## [REST web service clarification](https://www.ruby-forum.com/t/rest-web-service-clarification/138636)

<div class="topic-metadata">

**Author:** [@sameera](https://www.ruby-forum.com/u/sameera)\
**Replies:** 2\
**Last updated:** [May 28, 2008, 9:12am UTC](https://www.ruby-forum.com/t/rest-web-service-clarification/138636 "2008-05-28T09:12:13Z")

</div>

Hi All, I’m new to REST and RESTFul web services. Looking forward for a clarification, My question is, Are the only REST methods GET POST PUT DELETE or can we have a method name like getUserFullName in REST ? pl…

---

## [Using params in a comparison](https://www.ruby-forum.com/t/using-params-in-a-comparison/138820)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 6\
**Last updated:** [May 28, 2008, 8:23am UTC](https://www.ruby-forum.com/t/using-params-in-a-comparison/138820 "2008-05-28T08:23:22Z")

</div>

Hi, i will keep this short: \<% for photo in @photos -%\> \<% if photo.other == params\[:id\] %\> \<%= link\_to image\_tag(photo.public\_filename(:thumb)) %\> \<% end %\> \<% end %\> This is the code Im using and it is not displa…

---

## [Modifying the default to\_xml](https://www.ruby-forum.com/t/modifying-the-default-to-xml/138779)

<div class="topic-metadata">

**Author:** [@AdamV](https://www.ruby-forum.com/u/AdamV)\
**Replies:** 5\
**Last updated:** [May 28, 2008, 7:57am UTC](https://www.ruby-forum.com/t/modifying-the-default-to-xml/138779 "2008-05-28T07:57:30Z")

</div>

Hey all, I’ve been struggling with the default way that rails generates XML representations of things. Specifically, I have a tableless model that I use to handle my searches (they return more than simply a collection …

---

## [Meet up at RailsConf?](https://www.ruby-forum.com/t/meet-up-at-railsconf/138839)

<div class="topic-metadata">

**Author:** [@eeby](https://www.ruby-forum.com/u/eeby)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 7:51am UTC](https://www.ruby-forum.com/t/meet-up-at-railsconf/138839 "2008-05-28T07:51:04Z")

</div>

Hey what’s up. I’m going to RailConf this year. I would be interested in meeting up for a coffee or beer with like-minded developers. I’m very interested in creating a business based on a Web app along the lines of Li…

---

## [Validates\_presence\_of](https://www.ruby-forum.com/t/validates-presence-of/138838)

<div class="topic-metadata">

**Author:** [@asetzler](https://www.ruby-forum.com/u/asetzler)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 7:49am UTC](https://www.ruby-forum.com/t/validates-presence-of/138838 "2008-05-28T07:49:08Z")

</div>

Hi everyone, I am a total novice with Ruby on Rails and I’m having a problem using validates\_presence\_of. I’m following a tutorial from a book called “Ruby on rails: up and running” and I’m not getting the result I e…

---

## [Control.modal](https://www.ruby-forum.com/t/control-modal/138835)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 7:21am UTC](https://www.ruby-forum.com/t/control-modal/138835 "2008-05-28T07:21:15Z")

</div>

Hi Hi is there anyone using control.modal http://livepipe.net/projects/control\_modal/ I have the code like select Here my question is how can i specify width and height to the modal window and also how can I …

---

## [Javascripts Controller Not working](https://www.ruby-forum.com/t/javascripts-controller-not-working/138832)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 6:12am UTC](https://www.ruby-forum.com/t/javascripts-controller-not-working/138832 "2008-05-28T06:12:47Z")

</div>

I am trying to make a javascripts controller work. The only resource I can find on this is here : #88 Dynamic Select Menus - RailsCasts I have tried everything in the tutorial and the comments including May 22 08 comm…

---

## [Nil Object](https://www.ruby-forum.com/t/nil-object/138833)

<div class="topic-metadata">

**Author:** [@wawa88](https://www.ruby-forum.com/u/wawa88)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 6:09am UTC](https://www.ruby-forum.com/t/nil-object/138833 "2008-05-28T06:09:39Z")

</div>

Hi everyone I’m new to ROR. I am receiving email using ActionMailer. I need some help about the error nil object i got. Anyway i am doing rails on window platform. At first I generate the code ruby script/generate mi…

---

## [V.map(&:to\_s)](https://www.ruby-forum.com/t/v-map-to-s/138830)

<div class="topic-metadata">

**Author:** [@Eric\_Archangel](https://www.ruby-forum.com/u/Eric_Archangel)\
**Replies:** 1\
**Last updated:** [May 28, 2008, 5:27am UTC](https://www.ruby-forum.com/t/v-map-to-s/138830 "2008-05-28T05:27:44Z")

</div>

How &: works? if it is a method, and where is it defined? It is rails addition to ruby obviously. – Nibirutech CTO Eric.Archangel MSN: removed\_email\_address@domain.invalid QQ: 996252 GMAIL: removed\_email\_address@do…

---

## [Can I use ERB templates securely](https://www.ruby-forum.com/t/can-i-use-erb-templates-securely/138798)

<div class="topic-metadata">

**Author:** [@nateleavitt](https://www.ruby-forum.com/u/nateleavitt)\
**Replies:** 3\
**Last updated:** [May 28, 2008, 4:55am UTC](https://www.ruby-forum.com/t/can-i-use-erb-templates-securely/138798 "2008-05-28T04:55:00Z")

</div>

Hello, I’m building a system that will allow users to modify layouts. Is there a way to securely use ERB, or will I need to use a different template engine such as Liquid? I would prefer to use ERB, but haven’t foun…

---

## [Tapping into routing helpers](https://www.ruby-forum.com/t/tapping-into-routing-helpers/138691)

<div class="topic-metadata">

**Author:** [@pkoebbe](https://www.ruby-forum.com/u/pkoebbe)\
**Replies:** 18\
**Last updated:** [May 28, 2008, 4:54am UTC](https://www.ruby-forum.com/t/tapping-into-routing-helpers/138691 "2008-05-28T04:54:57Z")

</div>

I’ve been trying to find an answer to this question via Google, but am having a terrible time coming up with the correct search terms. I would like to use the routing helpers (person\_path, new\_person\_path, etc) in fil…

---

## [Javascript/RJS question](https://www.ruby-forum.com/t/javascript-rjs-question/138826)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 4:28am UTC](https://www.ruby-forum.com/t/javascript-rjs-question/138826 "2008-05-28T04:28:30Z")

</div>

So, I have a number of partials, each has a “expand story” button in it. Each partial has the local variable “link” which contains the content to be displayed in the partial (link.content). At the top I have a butt…

---

## [\[ANN\] CCRedit released!](https://www.ruby-forum.com/t/ann-ccredit-released/138786)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 2\
**Last updated:** [May 28, 2008, 3:32am UTC](https://www.ruby-forum.com/t/ann-ccredit-released/138786 "2008-05-28T03:32:48Z")

</div>

Greetings! I’ve finally finished up the initial release of my first Healthcare on Rails app; hereinafter known as CCRedit. The application, including all the source code, is available on RubyForge at http://rubyforge…

---

## [Dumb rake test:functionals question](https://www.ruby-forum.com/t/dumb-rake-test-functionals-question/138822)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 3:20am UTC](https://www.ruby-forum.com/t/dumb-rake-test-functionals-question/138822 "2008-05-28T03:20:31Z")

</div>

I have all my test/functionals/\*\_test.rb in order and they work fine run by themselves…so I went for the whole enchilada. $ rake test:functionals (in /home/craig/svn-new/th-db/branches/phase5) dropdb: could not conne…

---

## [Help with drop\_receiving\_element helper](https://www.ruby-forum.com/t/help-with-drop-receiving-element-helper/138808)

<div class="topic-metadata">

**Author:** [@ncancelliere](https://www.ruby-forum.com/u/ncancelliere)\
**Replies:** 2\
**Last updated:** [May 28, 2008, 3:19am UTC](https://www.ruby-forum.com/t/help-with-drop-receiving-element-helper/138808 "2008-05-28T03:19:21Z")

</div>

I have an application that has a list of patient names and then a grid representing appointment slots (time). Each patient has a unique ID and draggable\_element tag: \<%= draggable\_element “#{rx\_ready\_patient.id}”, :re…

---

## [How conditionally allow Session :off](https://www.ruby-forum.com/t/how-conditionally-allow-session-off/138428)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 8\
**Last updated:** [May 28, 2008, 2:17am UTC](https://www.ruby-forum.com/t/how-conditionally-allow-session-off/138428 "2008-05-28T02:17:53Z")

</div>

I need to enable/disable sessions based on the incoming IP address. Any request coming from the IP that Rails is running from needs to have session :off, other IPs can create a session. Right now I’m just using a hard…

---

## [Attachment\_fu with hidden\_field](https://www.ruby-forum.com/t/attachment-fu-with-hidden-field/138817)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 2\
**Last updated:** [May 28, 2008, 1:55am UTC](https://www.ruby-forum.com/t/attachment-fu-with-hidden-field/138817 "2008-05-28T01:55:39Z")

</div>

hey i am using attachment\_fu for photo purposes and i am trying to pass a hidden value to be stored when a photo is uploaded. i am not sure how to pass this value. this is my intuitive attempt, but its not working: …

---

## [Cannot launch IRB on Mac OS X Leopard](https://www.ruby-forum.com/t/cannot-launch-irb-on-mac-os-x-leopard/138811)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 2\
**Last updated:** [May 28, 2008, 12:40am UTC](https://www.ruby-forum.com/t/cannot-launch-irb-on-mac-os-x-leopard/138811 "2008-05-28T00:40:29Z")

</div>

I successfully installed Ruby 1.8.6 and Rails 2.0.2 and RubyGems 1.0.1. Launched ruby script/server. Got successful Welcome Aboard ROR page in browser. Opened second Terminal window and tried to launch irb. Got this…

---

## [Update multiple rows](https://www.ruby-forum.com/t/update-multiple-rows/138792)

<div class="topic-metadata">

**Author:** [@devxpert](https://www.ruby-forum.com/u/devxpert)\
**Replies:** 5\
**Last updated:** [May 28, 2008, 12:37am UTC](https://www.ruby-forum.com/t/update-multiple-rows/138792 "2008-05-28T00:37:44Z")

</div>

my query look like this; “update table\_a set field\_1=‘ABCD’ where field\_2=‘A’;” it doesn’t work with this: @arr = table\_a.find(\["field\_1 = ? ", “ABCD”\]) for item in arr item.field\_2 = “A” item.save end

---

## [Collection\_select](https://www.ruby-forum.com/t/collection-select/137585)

<div class="topic-metadata">

**Author:** [@martinevans](https://www.ruby-forum.com/u/martinevans)\
**Replies:** 3\
**Last updated:** [May 28, 2008, 12:20am UTC](https://www.ruby-forum.com/t/collection-select/137585 "2008-05-28T00:20:43Z")

</div>

Hi is it possible to manually add an option to collection\_select I have the following code and want to add “Add Customer” to the bottom of the options list. \<% @customers = Customer.find(:all, :order =\> “company”)%\> \<…

---

## [Powerfull XML Deserialization of ActiveRecord object](https://www.ruby-forum.com/t/powerfull-xml-deserialization-of-activerecord-object/138762)

<div class="topic-metadata">

**Author:** [@differenthink](https://www.ruby-forum.com/u/differenthink)\
**Replies:** 2\
**Last updated:** [May 28, 2008, 12:17am UTC](https://www.ruby-forum.com/t/powerfull-xml-deserialization-of-activerecord-object/138762 "2008-05-28T00:17:11Z")

</div>

Hi, i m trying to deserialize XML that came from a model class. To serialize i use “to\_xml” method like : Foo.find(:all).to\_xml(:include=\>\[:foo2\]) Now i m trying to deserialize it. I tried to use “Hash.from\_xml” but…

---

## [Sessions wont work with IE7 with 2.0.2?](https://www.ruby-forum.com/t/sessions-wont-work-with-ie7-with-2-0-2/138809)

<div class="topic-metadata">

**Author:** [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 12:08am UTC](https://www.ruby-forum.com/t/sessions-wont-work-with-ie7-with-2-0-2/138809 "2008-05-28T00:08:43Z")

</div>

I have an odd problem I don’t ever remember having before. If I access my app with Safari or Firefox, I can login and maintain a consistent session. Tailing the log file, I see the same session ID evertime I hit my a…

---

## [Need help with remote\_form\_for using onSelect instead of onSubmit](https://www.ruby-forum.com/t/need-help-with-remote-form-for-using-onselect-instead-of-onsubmit/138223)

<div class="topic-metadata">

**Author:** [@ncancelliere](https://www.ruby-forum.com/u/ncancelliere)\
**Replies:** 2\
**Last updated:** [May 28, 2008, 12:03am UTC](https://www.ruby-forum.com/t/need-help-with-remote-form-for-using-onselect-instead-of-onsubmit/138223 "2008-05-28T00:03:43Z")

</div>

I’m building a calendar/scheduling application that has a bunch of little pulldowns to let doctors note appointment status for a given timeslot. I got the ajax call working with a submitbutton - but I really want it …

---

## [Making plugins reloadable](https://www.ruby-forum.com/t/making-plugins-reloadable/138795)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 1\
**Last updated:** [May 27, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/making-plugins-reloadable/138795 "2008-05-27T21:41:40Z")

</div>

So is there a complete example anywhere of the best way to make plugins reloadable? Specifically we have a number of models in our plugins that need to be reloaded on each request in development. I do not want to us…

---

## [Photos at RailsConf 2008](https://www.ruby-forum.com/t/photos-at-railsconf-2008/138799)

<div class="topic-metadata">

**Author:** [@robby247365](https://www.ruby-forum.com/u/robby247365)\
**Replies:** 0\
**Last updated:** [May 27, 2008, 9:32pm UTC](https://www.ruby-forum.com/t/photos-at-railsconf-2008/138799 "2008-05-27T21:32:07Z")

</div>

Hey all, In anticipation for RailsConf later this week… I’ve created a Flickr group and invite you all to join. Be sure to share your photos… :slight\_smile: Flickr: The RailsConf 2008 Pool Looking forward to meetin…

---

## [Debug session](https://www.ruby-forum.com/t/debug-session/138796)

<div class="topic-metadata">

**Author:** [@northwind](https://www.ruby-forum.com/u/northwind)\
**Replies:** 0\
**Last updated:** [May 27, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/debug-session/138796 "2008-05-27T21:14:22Z")

</div>

I am new to rails and ruby – it’s all beautiful. The documentation and community are helpful and clear. I thought I’d drop an e-mail to the group so it’s here for any other noobs that search for this: I was searchin…

---

## [Workflow Controller for Ruby on Rails?](https://www.ruby-forum.com/t/workflow-controller-for-ruby-on-rails/138737)

<div class="topic-metadata">

**Author:** [@rsoika](https://www.ruby-forum.com/u/rsoika)\
**Replies:** 1\
**Last updated:** [May 27, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/workflow-controller-for-ruby-on-rails/138737 "2008-05-27T21:01:52Z")

</div>

Hi, I want to ask if anybody can help us implementing a Workflow Controller for Ruby on Rails? We are provider of a open source workflow engine based on JEE specification. The engine is licensed under GPL and is very…

---

## [Session question - unique identifier in cookie store?](https://www.ruby-forum.com/t/session-question-unique-identifier-in-cookie-store/138774)

<div class="topic-metadata">

**Author:** [@Sean\_OSHara](https://www.ruby-forum.com/u/Sean_OSHara)\
**Replies:** 1\
**Last updated:** [May 27, 2008, 7:17pm UTC](https://www.ruby-forum.com/t/session-question-unique-identifier-in-cookie-store/138774 "2008-05-27T19:17:19Z")

</div>

Hi, I recently switched to the cookie session store for my rails app, and I am wondering how I can access some kind of unique identifier for each session between requests. It used to be (when I was using active reco…

---

## [Questions about Rails Conf](https://www.ruby-forum.com/t/questions-about-rails-conf/137627)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 3\
**Last updated:** [May 27, 2008, 6:54pm UTC](https://www.ruby-forum.com/t/questions-about-rails-conf/137627 "2008-05-27T18:54:11Z")

</div>

Hi, I am going to my first Rails Conf and I had a few questions that I can’t find answers for: Do you have to decide which seminars you are taking and like sign up or can I sporadically change my mind, even 10 minute…

---

## [Case...when statement bug when using openid\_authentication?](https://www.ruby-forum.com/t/case-when-statement-bug-when-using-openid-authentication/138730)

<div class="topic-metadata">

**Author:** [@marzapower](https://www.ruby-forum.com/u/marzapower)\
**Replies:** 6\
**Last updated:** [May 27, 2008, 6:13pm UTC](https://www.ruby-forum.com/t/case-when-statement-bug-when-using-openid-authentication/138730 "2008-05-27T18:13:03Z")

</div>

Hello people! I’m asking for help to solve a little problem concerning the usage of the openid\_authentication plugin. I’m following the README file included by DHH, so I wrote this method in my SessionsController: de…

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

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