# Rails

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

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

---

## [Database agnostic sql possible?](https://www.ruby-forum.com/t/database-agnostic-sql-possible/132160)

<div class="topic-metadata">

**Author:** [@gsterndale](https://www.ruby-forum.com/u/gsterndale)\
**Replies:** 5\
**Last updated:** [March 18, 2008, 8:50pm UTC](https://www.ruby-forum.com/t/database-agnostic-sql-possible/132160 "2008-03-18T20:50:06Z")

</div>

I’d like to have database agnostic code, however I have been unsuccessful writing conditions that work for both postgres and mysql for the following: postgres only conditions = \[“curtain\_at + CAST (CAST (duration AS V…

---

## [Stylesheet link causing routing error](https://www.ruby-forum.com/t/stylesheet-link-causing-routing-error/132264)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 5\
**Last updated:** [March 18, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/stylesheet-link-causing-routing-error/132264 "2008-03-18T19:40:59Z")

</div>

Hi - I think this is a simple 2.0 conversion issue. In my application layout, I have a simple stylesheet link tag: \<%= stylesheet\_link\_tag 'application' %\> In my public/stylesheets directory, I have application.css W…

---

## [Modeling Groups with Admins, Notables, and Members](https://www.ruby-forum.com/t/modeling-groups-with-admins-notables-and-members/132286)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 0\
**Last updated:** [March 18, 2008, 7:34pm UTC](https://www.ruby-forum.com/t/modeling-groups-with-admins-notables-and-members/132286 "2008-03-18T19:34:40Z")

</div>

My app has Groups, and Groups have an Admin, Notables (people with additional permissions), and Members (people with standard permissions). I need help with modeling these, as I have lot’s of ideas but don’t really kn…

---

## [SSL Not working](https://www.ruby-forum.com/t/ssl-not-working/132280)

<div class="topic-metadata">

**Author:** [@jasonmorrison](https://www.ruby-forum.com/u/jasonmorrison)\
**Replies:** 3\
**Last updated:** [March 18, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/ssl-not-working/132280 "2008-03-18T19:07:54Z")

</div>

I am using a mongel cluster with apache. My setup is identical to this http://wiki.slicehost.com/doku.php?id=automated\_rails\_install\_and\_deployment\_with\_deprec\_capistrano I am trying to use ssl on part of my site but n…

---

## [THE CHALLENGE: How would you do this: has\_many :through & polymorphic associations](https://www.ruby-forum.com/t/the-challenge-how-would-you-do-this-has-many-through-polymorphic-associations/132150)

<div class="topic-metadata">

**Author:** [@Feurio](https://www.ruby-forum.com/u/Feurio)\
**Replies:** 6\
**Last updated:** [March 18, 2008, 6:27pm UTC](https://www.ruby-forum.com/t/the-challenge-how-would-you-do-this-has-many-through-polymorphic-associations/132150 "2008-03-18T18:27:36Z")

</div>

Hi, I have a category model and several other models that I want to categorize. Categories are organised in a hierarchy. class Category \< ActiveRecord::Base acts\_as\_tree end class User \< ActiveRecord::Base end c…

---

## [Consuming .Net Web Services?](https://www.ruby-forum.com/t/consuming-net-web-services/132273)

<div class="topic-metadata">

**Author:** [@sw0rdfish](https://www.ruby-forum.com/u/sw0rdfish)\
**Replies:** 3\
**Last updated:** [March 18, 2008, 6:20pm UTC](https://www.ruby-forum.com/t/consuming-net-web-services/132273 "2008-03-18T18:20:28Z")

</div>

Ok… Anyone have any experience with .NET webservices? We have a site that we’re re-doing in Rails, that was done in .NET, and there’s a desktop application to it that we want to keep using for awhile during the switc…

---

## [Facebooker - user](https://www.ruby-forum.com/t/facebooker-user/132282)

<div class="topic-metadata">

**Author:** [@gadys](https://www.ruby-forum.com/u/gadys)\
**Replies:** 0\
**Last updated:** [March 18, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/facebooker-user/132282 "2008-03-18T18:09:35Z")

</div>

Hi i’m new to facebooker. I want to wrap my user model around facebooker user. how do i do it ? does facebooker @user has it’s own model ? can i inherit it ? how do i make user.display\_name access @user.name ?

---

## [Simple ajax guides or tutorials](https://www.ruby-forum.com/t/simple-ajax-guides-or-tutorials/132181)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 4\
**Last updated:** [March 18, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/simple-ajax-guides-or-tutorials/132181 "2008-03-18T17:43:05Z")

</div>

Im looking to add ajax to my website and wanted to start off small, I was wondering if anyone knew some ajax guides/tutorials or had there own tips on the use of some simple ajax. I looking for anything that can make …

---

## [New Komodo Edit 4.3.0](https://www.ruby-forum.com/t/new-komodo-edit-4-3-0/132276)

<div class="topic-metadata">

**Author:** [@namealreadytaken](https://www.ruby-forum.com/u/namealreadytaken)\
**Replies:** 0\
**Last updated:** [March 18, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/new-komodo-edit-4-3-0/132276 "2008-03-18T17:35:59Z")

</div>

The new Komode Edit 4.3.0 was just released and so far it seems very nice. It apparently has find and replace in files or in project. I haven’t tried but a fraction of it but it seems just fine so far. Possibly the…

---

## [About the sql injection](https://www.ruby-forum.com/t/about-the-sql-injection/132070)

<div class="topic-metadata">

**Author:** [@Vincent.Z](https://www.ruby-forum.com/u/Vincent.Z)\
**Replies:** 2\
**Last updated:** [March 18, 2008, 5:33pm UTC](https://www.ruby-forum.com/t/about-the-sql-injection/132070 "2008-03-18T17:33:00Z")

</div>

the “agile web development with rails” book advocate the bind variable facility, that is : subject = params\[:subject\] Email.find(:all, :conditions =\> \[ “owner\_id = 123 AND subject = ?” , subject \]) i have some ques…

---

## [Make ur search ends here about system tweaks & tricks & much more funs](https://www.ruby-forum.com/t/make-ur-search-ends-here-about-system-tweaks-tricks-much-more-funs/132277)

<div class="topic-metadata">

**Author:** [@urs\_need](https://www.ruby-forum.com/u/urs_need)\
**Replies:** 0\
**Last updated:** [March 18, 2008, 5:20pm UTC](https://www.ruby-forum.com/t/make-ur-search-ends-here-about-system-tweaks-tricks-much-more-funs/132277 "2008-03-18T17:20:38Z")

</div>

hi… You can get the tricks, tweaks, flash games, … and more… here the links are goes here… http://ursneed…googlepages.com/home http://ursneed.googlepages.com/home http://ursneed.googlepages.com/coolneeds http://urs…

---

## [Simple ruby question](https://www.ruby-forum.com/t/simple-ruby-question/132237)

<div class="topic-metadata">

**Author:** [@ramu](https://www.ruby-forum.com/u/ramu)\
**Replies:** 6\
**Last updated:** [March 18, 2008, 5:08pm UTC](https://www.ruby-forum.com/t/simple-ruby-question/132237 "2008-03-18T17:08:16Z")

</div>

I am learning Ruby and when I am trying to work on some sample examples I got some strange (may be to me) output can you please explain me why it is ?? (1 \*\* 2).to\_s \*2 is giving output as “1” but (1 \*\* 2).to\_s \* …

---

## [To\_ary removed from ActiveRecord](https://www.ruby-forum.com/t/to-ary-removed-from-activerecord/132272)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [March 18, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/to-ary-removed-from-activerecord/132272 "2008-03-18T16:50:04Z")

</div>

I was experiment in the console and I did this: c = Client.new a = c.to\_a which gave this: (irb):14: warning: default \`to\_a’ will be obsolete so, since to\_a is depreciated then I will use to\_ary, right? No. you can…

---

## [How does one get a tar.gz file in Amazon S3 to restore a server database?](https://www.ruby-forum.com/t/how-does-one-get-a-tar-gz-file-in-amazon-s3-to-restore-a-server-database/132159)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 18, 2008, 3:47pm UTC](https://www.ruby-forum.com/t/how-does-one-get-a-tar-gz-file-in-amazon-s3-to-restore-a-server-database/132159 "2008-03-18T15:47:44Z")

</div>

I expect the guys on this forum will laugh…but I have no clue about how I’d ever restore my backups on Amazon S3 if I ever had to? I’ve got phpAdmin loaded upon my server and can access it except I get this error mess…

---

## [Styles using the if-less if statement if it worked](https://www.ruby-forum.com/t/styles-using-the-if-less-if-statement-if-it-worked/132267)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [March 18, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/styles-using-the-if-less-if-statement-if-it-worked/132267 "2008-03-18T15:31:47Z")

</div>

I have this in\_place\_editor\_field that I have the text showing up as red if it contains a certain string such as ‘Click to Edit’ \<%= in\_place\_editor\_field ‘user’,‘w\_cell’,{ :style =\> @user.w\_cell == ‘Click to Edit’ ?…

---

## [Need to hire RoR programmers](https://www.ruby-forum.com/t/need-to-hire-ror-programmers/131438)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 10\
**Last updated:** [March 18, 2008, 3:27pm UTC](https://www.ruby-forum.com/t/need-to-hire-ror-programmers/131438 "2008-03-18T15:27:01Z")

</div>

I have 2 decently large projects that I need to hire someone for. I need to find competent/experienced programmers in RoR. Any idea where I can start with this? Thanks for your help!

---

## [Capistrano::ConnectionError](https://www.ruby-forum.com/t/capistrano-connectionerror/132265)

<div class="topic-metadata">

**Author:** [@wolfmanjm](https://www.ruby-forum.com/u/wolfmanjm)\
**Replies:** 1\
**Last updated:** [March 18, 2008, 2:45pm UTC](https://www.ruby-forum.com/t/capistrano-connectionerror/132265 "2008-03-18T14:45:20Z")

</div>

Hi. Wondering if anyone can help me with this error meassage i receive when running cap deploy on my project… executing \`deploy’ executing \`deploy:update’ \*\* transaction: start executing \`deploy:update\_code’ executin…

---

## [No marshal\_dump is defined for class StringIO](https://www.ruby-forum.com/t/no-marshal-dump-is-defined-for-class-stringio/132263)

<div class="topic-metadata">

**Author:** [@shuja](https://www.ruby-forum.com/u/shuja)\
**Replies:** 0\
**Last updated:** [March 18, 2008, 2:29pm UTC](https://www.ruby-forum.com/t/no-marshal-dump-is-defined-for-class-stringio/132263 "2008-03-18T14:29:25Z")

</div>

Hi all, I’m newbie to ROR, anybody know why I would be getting the following error when I use paginating\_find with memcache “no marshal\_dump is defined for class StringIO” Im just using the plugin straight out with v…

---

## [HTTP response code when DELETE request is not permitted](https://www.ruby-forum.com/t/http-response-code-when-delete-request-is-not-permitted/132180)

<div class="topic-metadata">

**Author:** [@Olly\_L](https://www.ruby-forum.com/u/Olly_L)\
**Replies:** 2\
**Last updated:** [March 18, 2008, 1:41pm UTC](https://www.ruby-forum.com/t/http-response-code-when-delete-request-is-not-permitted/132180 "2008-03-18T13:41:07Z")

</div>

Hi there, If a DELETE request on a resource fails because constraints prevent the resource from being deleted, what should the correct HTTP response code be? There appears to be a lot of contention about this on the …

---

## [Simple question](https://www.ruby-forum.com/t/simple-question/132256)

<div class="topic-metadata">

**Author:** [@gadys](https://www.ruby-forum.com/u/gadys)\
**Replies:** 5\
**Last updated:** [March 18, 2008, 1:15pm UTC](https://www.ruby-forum.com/t/simple-question/132256 "2008-03-18T13:15:11Z")

</div>

Hi i recive the error "undefined method \`admin?’ for #ActionView::Base:0x484acd4 " from this line : forums/index.html.erb 46: 47: \<%= link\_to ‘Edit’\[:edit\_title\], edit\_forum\_path(forum), :class =\> “t…

---

## [How: obj-class-A = A.new(obj-class-B) ? suppose class A is subset of class B](https://www.ruby-forum.com/t/how-obj-class-a-a-new-obj-class-b-suppose-class-a-is-subset-of-class-b/132236)

<div class="topic-metadata">

**Author:** [@hei](https://www.ruby-forum.com/u/hei)\
**Replies:** 1\
**Last updated:** [March 18, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/how-obj-class-a-a-new-obj-class-b-suppose-class-a-is-subset-of-class-b/132236 "2008-03-18T13:05:19Z")

</div>

RT~ I mean create an object a-A by another object b-B. a-A is object of class A, b-B is object of class B. suppose A is ‘subset’ of B, em, I mean, all the attributes A have, you can find attributes with the same name…

---

## [Mongrel Crashes in Production](https://www.ruby-forum.com/t/mongrel-crashes-in-production/132258)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [March 18, 2008, 1:03pm UTC](https://www.ruby-forum.com/t/mongrel-crashes-in-production/132258 "2008-03-18T13:03:58Z")

</div>

I have been getting this error on the production server after rails was updated to 2.0.2 and moreover this worked perfectly in the development mode. This crash occurs when no one is using the app for an hour or so. Th…

---

## [\[ANN\] Ebb 0.1.0](https://www.ruby-forum.com/t/ann-ebb-0-1-0/197060)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 18, 2008, 12:08pm UTC](https://www.ruby-forum.com/t/ann-ebb-0-1-0/197060 "2008-03-18T12:08:18Z")

</div>

Hello Ruby People! Ebb aims to be a small and fast web server specifically for hosting dynamic web applications. It is not meant to be a full featured web server like Lighttpd, Apache, or Nginx. Rather it should be us…

---

## [\[ANN\] Ebb 0.1.0](https://www.ruby-forum.com/t/ann-ebb-0-1-0/132253)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 18, 2008, 12:06pm UTC](https://www.ruby-forum.com/t/ann-ebb-0-1-0/132253 "2008-03-18T12:06:32Z")

</div>

Hello Ruby People! Ebb aims to be a small and fast web server specifically for hosting dynamic web applications. It is not meant to be a full featured web server like Lighttpd, Apache, or Nginx. Rather it should be us…

---

## [Webcam with bdsm-chat contact](https://www.ruby-forum.com/t/webcam-with-bdsm-chat-contact/132251)

<div class="topic-metadata">

**Author:** [@Verona\_dsm](https://www.ruby-forum.com/u/Verona_dsm)\
**Replies:** 0\
**Last updated:** [March 18, 2008, 11:25am UTC](https://www.ruby-forum.com/t/webcam-with-bdsm-chat-contact/132251 "2008-03-18T11:25:39Z")

</div>

WEbcam-chat with BDSM Lifestyle contact http://golddating.servik.com/webcamchat.htm

---

## [How to handle collection\_select](https://www.ruby-forum.com/t/how-to-handle-collection-select/132249)

<div class="topic-metadata">

**Author:** [@hemantaray](https://www.ruby-forum.com/u/hemantaray)\
**Replies:** 0\
**Last updated:** [March 18, 2008, 10:21am UTC](https://www.ruby-forum.com/t/how-to-handle-collection-select/132249 "2008-03-18T10:21:59Z")

</div>

i have already used ‘collection\_select’ select helper for drop down box. it works properly and retrieve data from database(mysql).Bt I did’t not select any particular data from database and did’t fire the quary for d…

---

## [Can an object obj-arbitrary respond to a method with arbitary name?](https://www.ruby-forum.com/t/can-an-object-obj-arbitrary-respond-to-a-method-with-arbitary-name/132235)

<div class="topic-metadata">

**Author:** [@hei](https://www.ruby-forum.com/u/hei)\
**Replies:** 4\
**Last updated:** [March 18, 2008, 9:58am UTC](https://www.ruby-forum.com/t/can-an-object-obj-arbitrary-respond-to-a-method-with-arbitary-name/132235 "2008-03-18T09:58:12Z")

</div>

For example: I create an object c. Now, if I call c.xxx, ruby just raise an exception ‘method missing’ But, I want it return nil, for each method which is not pre-defined. Is there a way I can gain this ? Thanks!

---

## [Cache.get 'reponses' return nil help! help!](https://www.ruby-forum.com/t/cache-get-reponses-return-nil-help-help/132243)

<div class="topic-metadata">

**Author:** [@shuja](https://www.ruby-forum.com/u/shuja)\
**Replies:** 0\
**Last updated:** [March 18, 2008, 8:47am UTC](https://www.ruby-forum.com/t/cache-get-reponses-return-nil-help-help/132243 "2008-03-18T08:47:36Z")

</div>

Hi all, I want to cache some objects (models) in memcache, it stores the data successfully using (Cache.put statement) but while retriving the stored data from memory using (Cache.get statement) it return nil value. I…

---

## [Date\_select](https://www.ruby-forum.com/t/date-select/132241)

<div class="topic-metadata">

**Author:** [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Replies:** 1\
**Last updated:** [March 18, 2008, 8:26am UTC](https://www.ruby-forum.com/t/date-select/132241 "2008-03-18T08:26:27Z")

</div>

i have one date\_select tag.the code is: \<%=date\_select(:from, ‘’, :start\_year =\> 1950, :include\_blank =\> true)%\> in controller i wrote:: @result =params\[:from\] which show date: (3i)4(1i)1969(2i)8 but i want to show…

---

## [Creating tables with variable number of columns](https://www.ruby-forum.com/t/creating-tables-with-variable-number-of-columns/132112)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 18, 2008, 7:22am UTC](https://www.ruby-forum.com/t/creating-tables-with-variable-number-of-columns/132112 "2008-03-18T07:22:26Z")

</div>

to put this question as simply as possible… spreadsheet functionality without a spreadsheet - ive tried a few different approaches to this problem without success… giving the user a way to create tables to store triv…

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

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